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

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

Generate 0 to 5 DC volt

Postby bonjovi_ly » Mon Jun 25, 2012 9:35 pm

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: 8482
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2437 times
Been thanked: 3495 times
Contact:

Re: Generate 0 to 5 DC volt

Postby medelec35 » Mon Jun 25, 2012 10:41 pm

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

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

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

Re: Generate 0 to 5 DC volt

Postby bonjovi_ly » Wed Jun 27, 2012 11:35 am

Hello

its work thank you.

I attached the program.

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