Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

pwm to voltage

Status
Not open for further replies.

computer

New Member
hi,

just wondering if I can smooth out the PWM signal from a 5v pic output pin to create a stable 0-10v voltage for powering a disco light controller.

someone told me a simple capacitor, chargepump and resistor would do but I'm not sure how to and what to connect up?

any help?
 
computer said:
hi,

just wondering if I can smooth out the PWM signal from a 5v pic output pin to create a stable 0-10v voltage for powering a disco light controller.

someone told me a simple capacitor, chargepump and resistor would do but I'm not sure how to and what to connect up?

any help?

Just a resistor and capacitor, a simple low pass filter - you can download an application note from MicroChip which shows you how to do it.
 
The lowpass filter alone will only give 0 to 5V though, not 0 to 10.

The charge pump is remotely possible, but it's complicated and there are several problems you may not be able to fix.

First off, how much current does the disco light controller require? If it's more than a milliamp or so, you must buffer the signal since the resistance of the charge pump and lowpass filter is too high. If you're doing that, just use an op amp. You can use a charge pump to get a +10V supply out of +5V if you don't otherwise have a higher voltage available. Still, your op amp probably won't drive this close to the rail.

Second, is the signal grounded at the same point as the PIC will be?

Third, does the signal need to be analog, or can it actually use a PWM straight out? Lights can usually be controlled better with PWM sources than analog voltages.
 
Most of these lighting decks need a 0-10V analog signal. Usually the device than does the PWM for the lights. They do not use much current, but my experience has been buffering the signal seems to work reliably with more cable/light combinations.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top