Pages: [1]   Go Down
Author Topic: outputting 0-12V variable with Arduino PWM  out.  (Read 1025 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm using an Arduino to control a dimmer. The dimmer needs an analog out 0-12v. I'm using the following circuit to get 12v instead of 5v:

http://itp.nyu.edu/physcomp/Tutorials/HighCurrentLoads

Basically, this is just a TIP120 connected to the PWM out and to the 12v out. The problem is that instead of getting 0-12v with PWM from 0 to 255, I'm getting 6v-12v.

Hope I'm clear enough in my explainations. Any solution or cue to help me fix that? Or any other suggestions to get 0-12v from 0-5v?


Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Link to the site not loading, will check later if I remember  smiley

Lefty
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 634
Posts: 34554
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What are you using as a load?
In that link it was a motor.
You should replace the motor with a 470R resistor and connect your dimmer through a resistor to a capacitor down to ground. Then connect that to the dimmer.

By the way does any one else not seem to be able to see the schematics on this web site, I'm using Fire Fox and they never show up.

Quote
I'm getting 6v-12v.
How are you measuring this?
You won't get an accurate reading on a voltmeter as it is PWM.
« Last Edit: February 12, 2009, 04:05:05 pm by Grumpy_Mike » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, it seems much better now with the resistor and the condenser. Also, I know the dimmer doesn't like PWM. In my older circuit (the one who gave me 5v) I used a condenser to regulate the PWM. This is a real newbie question but I figure the condenser I'm using now will act the same?
« Last Edit: February 12, 2009, 04:41:03 pm by mlehmann » Logged

Pages: [1]   Go Up
Jump to: