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

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?

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

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

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 389 times

Post Reply