Brussels
Offline
Newbie
Karma: 0
Posts: 20
OtherSounds
|
 |
« on: July 18, 2008, 06:39:18 am » |
Hi. I have an easy question
I want to use the arduino to control a 0-10V light system ( http://en.wikipedia.org/wiki/0-10V_lighting_control) so that I can dim fluorescent lights. Basically you control the system (the ballast, ej: Philips HF-regulator) with a DC signal between 0V (min) and 10V (max). I have to control independently 30 lights I imagine that the easiest way is to use PWM outputs to make a continuous analog signal between 0-5V, right?. How can I amplify that signal to a 0-10V range?. I imagine using transistors, but how? Any thoughts are welcome! Thanks! F pd: forget about dmx - dali or other systems, i need 0-10V
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 2
Posts: 849
Arduino rocks!
|
 |
« Reply #1 on: July 18, 2008, 07:51:39 am » |
Hi. I have an easy question
Those have a way to turn to to be the hardest. I imagine that the easiest way is to use PWM outputs to make a continuous analog signal between 0-5V, right?. How can I amplify that signal to a 0-10V range?. I imagine using transistors, but how?
PWM doesn't output a continuous analog signal, it output a series of full voltage pulses and varies the duty cycle. If you were to try to power a fluorescent bulb with a signal like that, it would be very bad. I think (and maybe someone can correct me or confirm this) the bulb would be very dim, flicker, and be so hot it's a real fire hazzard. What you can do is use a filtering circuit to smoth the PWM into an analog voltage. Are you trying to power the fluorescent bulb off this signal or is it a control signal? The arduino can only output 40mA on an IO line. As far as changing the 0-5V level to a 0-10V level, it's a fairly simple opamp circuit to linearly double the voltage.
|
|
|
|
|
Logged
|
|
|
|
|
Brussels
Offline
Newbie
Karma: 0
Posts: 20
OtherSounds
|
 |
« Reply #2 on: July 18, 2008, 08:04:53 am » |
Hi Oracle. I didn't explain myself correctly, the pwm is the control signal (I'm not trying to power the fluorescent bulb with this signal) which controls a 0-10V ballast who powers the fluorescent lamp . Can you send me info (schematics) about «simple opamp circuit to linearly double the voltage»?. Many Thanks, F
|
|
|
|
|
Logged
|
|
|
|
|
|
|
|
|
0
Offline
God Member
Karma: 2
Posts: 849
Arduino rocks!
|
 |
« Reply #5 on: July 18, 2008, 12:58:27 pm » |
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.htmBut remember, you're not applying your PWM signal directly to the op-amp, you need to smooth it into a true analog level first.
|
|
|
|
« Last Edit: July 18, 2008, 12:58:40 pm by Oracle »
|
Logged
|
|
|
|
|
Brussels
Offline
Newbie
Karma: 0
Posts: 20
OtherSounds
|
 |
« Reply #6 on: July 18, 2008, 02:05:46 pm » |
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
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 18
Arduino rocks
|
 |
« Reply #7 on: July 20, 2008, 01:00:34 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Perth, Australia
Offline
Newbie
Karma: 0
Posts: 21
DuinoStamp :)
|
 |
« Reply #8 on: July 21, 2008, 04:43:27 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 299
Posts: 26025
Solder is electric glue
|
 |
« Reply #9 on: July 21, 2008, 10:42:27 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Perth, Australia
Offline
Newbie
Karma: 0
Posts: 21
DuinoStamp :)
|
 |
« Reply #10 on: July 21, 2008, 11:31:46 am » |
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. In which case this will get you in the ball park 
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 207
Arduino rocks
|
 |
« Reply #11 on: July 22, 2008, 03:42:09 am » |
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? ... The schematics for a low pass filter are in the pdf I linked to: http://instruct1.cit.cornell.edu/courses/bionb440/datasheets/SingleSupply.pdf Regards, Mike
|
|
|
|
|
Logged
|
|
|
|
|
Brussels
Offline
Newbie
Karma: 0
Posts: 20
OtherSounds
|
 |
« Reply #12 on: July 25, 2008, 09:49:12 am » |
Hi, I'm going to try both schematics that Delta uploaded, they are very clear! Thanks! I can't find the LT1466 (single supply rail to rail op-amp) where I live (Brussels). There are tones of references for single supply rail to rail op-amps on the net; I'm a little bit lost. At the shop I use to go, they have the TL081 and LM741, but I don't know if they are rail to rail (I don't see any info about it in the datasheet). Could anyone tell me other “typical” single supply rail to rail op-amps to replace the LT1466 in this schematics? For the transistor's schematic I was going to use a tip 120, is it ok?
Sorry for my ignorance. Felix
|
|
|
|
|
Logged
|
|
|
|
|
Perth, Australia
Offline
Newbie
Karma: 0
Posts: 21
DuinoStamp :)
|
 |
« Reply #13 on: July 26, 2008, 12:01:08 am » |
Hi, I'm going to try both schematics that Delta uploaded, they are very clear! Thanks! I can't find the LT1466 (single supply rail to rail op-amp) where I live (Brussels). There are tones of references for single supply rail to rail op-amps on the net; I'm a little bit lost. At the shop I use to go, they have the TL081 and LM741, but I don't know if they are rail to rail (I don't see any info about it in the datasheet). Could anyone tell me other “typical” single supply rail to rail op-amps to replace the LT1466 in this schematics? For the transistor's schematic I was going to use a tip 120, is it ok?
Sorry for my ignorance. Felix
Ignorance is fine, not everyone is good with electronics. You really should use a single supply style op-amp but rail to rail is not necessary if you increase the V1 voltage to say 12V. You could use an LM124 (or LM324 they tend to be more common) which is single supply but only goes to about 1.5V of supply so at 12V it should be capable of 10.5V max. I don't know what type of lighting controller your using, or what it will do if you exceed 10V, so be careful. A TIP120 should be ok, also note that the transistor circuit will work in the reverse manner to expected. IE the op amp circuit will output high voltages for high duty cycle, but the transistor one will output low values for high duty cycle.
|
|
|
|
« Last Edit: July 26, 2008, 12:11:38 am by Delta »
|
Logged
|
|
|
|
|
SF Bay Area
Offline
Edison Member
Karma: 6
Posts: 1215
Arduino Ninja
|
 |
« Reply #14 on: July 26, 2008, 01:25:58 am » |
You might also take a look at a device like this: http://www.weedtech.com/wtdac-m.htmlI've used their ADC input modules before, it's pretty solid stuff. Of course it's much cheaper if you buy a DAC chip and make your own board. But this is a proven design, which counts for a lot if you actually want to finish projects.
|
|
|
|
|
Logged
|
|
|
|
|
|