Outputting 0-12V Variable With Arduino PWM Out. - Interfacing

outputting 0-12V variable with Arduino PWM  out. Forum 2005-2010 (read only) Hardware Interfacing February 12, 2009, 8:32pm 1

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?

February 12, 2009, 8:53pm 2

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

Lefty

February 12, 2009, 8:57pm 3

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.

I'm getting 6v-12v.

How are you measuring this? You won't get an accurate reading on a voltmeter as it is PWM.

February 12, 2009, 9:37pm 4

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?

Topic Replies Views Activity
Reading PWM from 12v motor Programming 7 591 July 28, 2023
Voltage Sensor Fluctuations General Guidance 4 84 September 9, 2025
I cannot run motor below 10v with Arduino pwm Motors, Mechanics, Power and CNC 9 328 July 15, 2023
Generate 1kHz +-12v PWM General Guidance 8 4170 May 5, 2021
Problemas con las órdenes analogRead/Write Software 6 352 June 13, 2024
Unfortunately, your browser is unsupported. Please switch to a supported browser to view rich content, log in and reply.

Tag » Arduino Pwm 0-12v