Offline
Jr. Member
Karma: 0
Posts: 58
|
 |
« on: December 21, 2012, 01:46:15 am » |
Hi All,
I need to control a dimmable e-ballast with a voltage varying from 0 - 10VDC using an Arduino Uno. My Uno is connected to Xbee and therefore can be control wirelessly. The voltage will vary depends on the control input from the xbee and therefore lights will turn ON/OFF and dim accordingly.
Currently I am using KA317 with a AD5290 to vary the resistance at the ADJ pin of the KA317. However the limitation to this method is that the KA317 cannot go below 2V which means that my dimmable e-ballast cannot switch off totally.
I am checking whether anyone had any idea of any SOC voltage regulator that can be connected to Arduino digital pins, I2C or SPI to vary the voltage from 0 to 10VDC?
Thanks a lot
|
|
|
|
|
Logged
|
|
|
|
|
the land of sun+snow
Offline
Edison Member
Karma: 80
Posts: 2111
|
 |
« Reply #1 on: December 21, 2012, 12:36:05 pm » |
Actually, I think LM317 type v.regs can go as low as 1.2V, with the reference pin grounded. If you want lower, try putting a 1N400x diode in series with the Vout pin.
|
|
|
|
|
Logged
|
Murphy's Corollary: the "real" problem is usually what they don't tell you about, which leads to endless second-guessing. m
|
|
|
|
Offline
Full Member
Karma: 3
Posts: 230
|
 |
« Reply #2 on: December 21, 2012, 01:17:29 pm » |
Dropping the voltage to turn off doesn't look like the best way. If your dimming looks good. I would use a extra pin to shut the power off with a power MOSFETs
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 58
|
 |
« Reply #3 on: December 23, 2012, 07:45:18 pm » |
Hi Thanks for the reply,
Will put an SSR to turn ON/OFF the live to dimmable ballast. But is there a chip that can do the voltage regulation from 0V to 10V or 1.2V to 10V interfacing with a UNO straight?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 3
Posts: 1712
|
 |
« Reply #4 on: December 23, 2012, 08:31:38 pm » |
You can use pwm , a npn transistor and a low pass filter to directly get0-10v
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 58
|
 |
« Reply #5 on: December 23, 2012, 11:45:20 pm » |
Hi all, any other option? Is there really a chip that does the job? Just curious and wanna find out
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3619
@ssh0le
|
 |
« Reply #6 on: December 23, 2012, 11:52:03 pm » |
winner10920 already told you the best way, is there a chip? maybe ... but its not going to get any easier than using the analog out function of the arduino to tickle a transistor and smoothing the output with a fat cap
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Offline
Edison Member
Karma: 3
Posts: 1712
|
 |
« Reply #7 on: December 24, 2012, 08:17:45 am » |
There's. A formula and many calculators online too that will tell you the ripple and response time of any RC lowpass filter at a particular frequency, less ripple makes it less responsive and vice versa
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 130
Posts: 4647
|
 |
« Reply #8 on: December 24, 2012, 08:38:17 am » |
Personally I'd use an R-C filter on one of the PWM pins followed by an op-amp to double the voltage. However, if the input resistance of the device you are driving with 0-10V is high enough, then you can use an NPN transistor followed by the R-C filter, as has already been suggested.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #9 on: December 24, 2012, 09:53:40 am » |
I2C or SPI to vary the voltage from 0 to 10VDC? Unless you tie the other end of the pot to a negative voltage source.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 15
Posts: 463
|
 |
« Reply #10 on: December 24, 2012, 08:50:20 pm » |
Actually, I think LM317 type v.regs can go as low as 1.2V, with the reference pin grounded. If you want lower, try putting a 1N400x diode in series with the Vout pin.
If you connect the reference (the resistor that goes between Vout and Adj) to the "output" end of the diode, the 317 will regulate out the diode drop and still give you minimum 1.2v. If you connect the reference BEFORE the diode, you will get approximately 1.2-0.7 volts minimum out, but the regulation will be poor due to the variance in forward drop of the diode at different currents.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 58
|
 |
« Reply #12 on: December 24, 2012, 10:07:35 pm » |
Hi Winner, Osgeld & dc42,
Do you have the connection schematic to share? So that I can try connecting and test on my e-ballast. Do I need 12V and 5VDC supply also? Thanks a lot
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 3
Posts: 1712
|
 |
« Reply #13 on: December 25, 2012, 01:47:01 am » |
I can't give you a shematic, right now anyway I'm on my phone, but yes a 10-12v supply would be neccesary although you could probably get away with a small booster circuit if the input impedance of the ballast is small But the circuit will be a simple transistor switching the 10v supply and passing that thru a lowpass filter
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 130
Posts: 4647
|
 |
« Reply #14 on: December 25, 2012, 05:36:31 am » |
The op amp solution needs a 12V supply. Is that a problem? If so, and the input resistance of the device is high enough, then you could instead use a small audio transformer to step up the PWM output to 10V. Post a link to the device you want to control.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
|