flowcode program

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
stefan
Posts: 5
Joined: Thu Apr 23, 2009 11:51 am
Contact:

flowcode program

Post 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
Last edited by stefan on Thu Apr 23, 2009 4:21 pm, edited 1 time in total.

User avatar
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

Post 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

stefan
Posts: 5
Joined: Thu Apr 23, 2009 11:51 am
Contact:

Re: flowcode program

Post by stefan »

I adjusted the first post.

User avatar
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

Post 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.

stefan
Posts: 5
Joined: Thu Apr 23, 2009 11:51 am
Contact:

Re: flowcode program

Post 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.

User avatar
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

Post 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.

stefan
Posts: 5
Joined: Thu Apr 23, 2009 11:51 am
Contact:

Re: flowcode program

Post by stefan »

I know
I'd like to learn more about flowcode

stefan
Posts: 5
Joined: Thu Apr 23, 2009 11:51 am
Contact:

Re: flowcode program

Post by stefan »

this maybe closed & deleted

Post Reply