Driving a dimmer
Scott M
Posts: 43
I have (well, I will) a light dimmer that takes 0·to +10v input, for off to full bright. I'd like to control this from a Javelin.
First, is it reasonable to take the output of a (PWM) Javelin pin, put it through a 1K resistor into the base of a 2n2222 with the collector tied to a +10v supply and the emitter leading to the dimmer? The dimmer claims an input impedience of 4.7k, so presumably this design doesn't stress anything too much. (Presumably I also need a small cap to smooth out the PWM - I don't know how dimmers respond to being jerked on and off hundreds of times a second...) Have people done equivalent things?
Secondly, since I have 4 of these to drive, does anyone know of a source of NPN transistor DIP arrays that are roughly equivalent to 2n2222's? I wouldn't have thought this hard to find, but web searches turn up obsolete parts...
Is there a better/smarter way to do this?
Scott M
First, is it reasonable to take the output of a (PWM) Javelin pin, put it through a 1K resistor into the base of a 2n2222 with the collector tied to a +10v supply and the emitter leading to the dimmer? The dimmer claims an input impedience of 4.7k, so presumably this design doesn't stress anything too much. (Presumably I also need a small cap to smooth out the PWM - I don't know how dimmers respond to being jerked on and off hundreds of times a second...) Have people done equivalent things?
Secondly, since I have 4 of these to drive, does anyone know of a source of NPN transistor DIP arrays that are roughly equivalent to 2n2222's? I wouldn't have thought this hard to find, but web searches turn up obsolete parts...
Is there a better/smarter way to do this?
Scott M
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Um.. ok. How is PWM different than PWM? And can you recommend a digital pot I can use to generate 0-10v?
(I've been using the Javelin to drive a (different) dimmer, which is less fussy about polarity, by putting it through a ULN2003. It's been working, more or less.)
·
The PWM from the Javelin is more traditional (like you'd use for motor control). It may well work as you've got it hooked up -- I've not tried. Forgive me if I sent you astray (many customers try to use the BASIC Stamp PWM to drive motors which it's really not designed for).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Newbie, using the NX-1000 24/40 Board with a BS2p40