Generate 0 to 5 DC volt

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
bonjovi_ly
Posts: 3
Joined: Mon Jun 25, 2012 9:18 pm
Contact:

Generate 0 to 5 DC volt

Post by bonjovi_ly »

my project how to use pic16f877 to get 0-5V dc volt output.any can help me or good idea?

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9015
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Generate 0 to 5 DC volt

Post by medelec35 »

One method is to generate a PWM signal, then feed PWM into a low pass RC filter. If time constant of filter is too high, then there will be a pure DC voltage but response time will be too slow.

If time constant is too low then waveform will be a triangular.

PWM frequency will not be to critical perhaps 5KHz to10 KHz

If you require any further help then can you please state what version of Flowcode your using including free, student or professional?
Since you have posted in Flowcode V2 & V3 and just joined?

Martin
Martin

bonjovi_ly
Posts: 3
Joined: Mon Jun 25, 2012 9:18 pm
Contact:

Re: Generate 0 to 5 DC volt

Post by bonjovi_ly »

Hello

its work thank you.

I attached the program.

Regards
Attachments
ADC Controlled PWM_LCD.fcf
(7 KiB) Downloaded 249 times

Post Reply