Page 1 of 1

flowcode program

Posted: Thu Apr 23, 2009 3:41 pm
by stefan
Hello,

I'm trying to make a program from when the themperature rises an alarmsound goes louder and louder.
The problem is I don't have a lot of experience with flowcode.
Can somebody help me here with making this program?
Is this also the program that you download to the E-blocks?
I'm using the PIC 16f877A
I measure the themperature with an NTC

Thank You,

Stefan

Re: flowcode program

Posted: Thu Apr 23, 2009 4:11 pm
by Benj
Hello Stefan

You could do the volume control in one of two ways.

1) Control the volume digitally inside the microcontroller. Eg reduce your audio range from 8-bit to 4-bit and then apply a multiplier with a maximum gain of 2. This is not great as it reduces your dynamic range and does not give you much amplification.

2) You can use an external transconductance amplifier or similar to do the amplification outside of the chip. This will also give you a better dynamic range. The LM13700 seems to be a popular device and the datasheet includes information on a stereo volume control.

http://www.national.com/ds/LM/LM13700.pdf

Re: flowcode program

Posted: Thu Apr 23, 2009 4:22 pm
by stefan
I adjusted the first post.

Re: flowcode program

Posted: Fri Apr 24, 2009 8:34 am
by Benj
There is an article in the Knowledge exchange section of the Forums that deals with outputting audio from a chip.
http://www.matrixmultimedia.com/mmforum ... =26&t=4850

The volume control will be tricky to add but my previous post details a couple of options.

Re: flowcode program

Posted: Fri Apr 24, 2009 6:39 pm
by stefan
Ok I tried to make the program
But it didn't work.
I have ZERO experience with flowcode
I asked a few people but they don't know it.
So if somebody kan get me started that would be great.

Re: flowcode program

Posted: Mon Apr 27, 2009 8:36 am
by Benj
Hello

I suggest you have a look through this microcontroller course in Flowcode, it should get you started with using the software.

http://www.matrixmultimedia.com/Learnin ... Flowcourse

What you are trying to do is fairly tricky at best so dont be too discouraged if you fail at first. We all have to start somewhere.

Re: flowcode program

Posted: Mon Apr 27, 2009 3:08 pm
by stefan
I know
I'd like to learn more about flowcode

Re: flowcode program

Posted: Tue Apr 28, 2009 12:06 pm
by stefan
this maybe closed & deleted