Go Down

Topic: analog out 0-10V With Arduino for lighting control (Read 15 times) previous topic - next topic

Oracle

#5
Jul 18, 2008, 07:58 pm Last Edit: Jul 18, 2008, 07:58 pm by Oracle Reason: 1
Quote
Ok, i suppose i have to apply a non-inverted amplifier to the 0-5v pwm signal,


Exactly, you need a non-inverting amp circuit.
I was going to give you http://www.ecircuitcenter.com/Circuits/opnon/opnon.htm

But remember, you're not applying your PWM signal directly to the op-amp, you need to smooth it into a true analog level first.  

Othersounds

And how should i «smooth it into a true analog level first»?.  
Mike sais that i need a low pass filter the circuit to smooth out the PWM pulses to DC.
Any Schematics? ...
Many Thanks
F
Felix Luque Sanchez
http://www.othersounds.net

xandar

Hard to say if it's right for you, but perhaps X10 would be a better choice for control?  I believe the arduino talks to it through serial, which would make it far easier to control 30 lights individually.  And not too expensive either from what I understand.  I haven't used it, but I've been considering it.

Arduino X10 tutorial:  http://www.arduino.cc/en/Tutorial/X10

Delta

This should get you in the ball park.



V1 is supply for the OP-AMP. V2 is the PWM output from the Arduino. The OP-AMP must be a single supply rail to rail type.

Grumpy_Mike

A simpler way to do it would be to take the output through a simple common emitter transistor stage with the collector load of the transistor connected to +10V. Then smooth that with an R & C or two. In that way you are already dealing with a 10V signal to start with and there is no need for a precise gain on the amplifier.

Go Up