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
flowcode program
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: flowcode program
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: flowcode program
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: flowcode program
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.
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.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: flowcode program
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel