I want to use old 12V lights as status indicators instead of suggested LED’s.
What I found in the manual is dat the status connections pull to ground when active, am I right about this?
After some research I found that I should connect the 12v light with a P-channel MOSFET to be controlled with the 3.3v from the board. I’ve been doing some test but i can’t seem to get it working.
Any general purpose NPN transistor will do e.g BC184, BC337 and for the the N-channel FET e.g. 2N7002. Vgs on switch on is about 10V so find a FET with this in mind. if you’re just switching an LED, use a 1K2 resistor. This will limit the LED current to 10mA (12/1200) = 10mA
Had a little succes trying with some parts I had laying around, a BC337 and P16nf06 FET.
The 12v flashes a bit when the LED on the board flashes. However it doesn’t turn off all the way when the LED is off. Is this a matter of trying different resistors?
A super simple circuit is to use an OptoDarlington such as a TIL 197. It’s a 4 pin chip so all you need to do is to take the LED output from the board and feed it via a suitable resistor into Pins 1 & 2 (which is essentially an LED) then attach Pin 3 to the lamp supply ground and pin 4 to the lamp negative and the lamp positive to the +12 supply. The chips also come in a 2 way and 4 way package - TIL 198 & TIL 199.
This has the advantage of completely isolating your Arylic board from the lamp circuit so could reduce potential supply interference from the 12v side.
PC817, PC827 or PC847 optocouplers with transistor outputs may be better suited as I don’t know the spec of the lamps you have but they are pin to pin compatible with the TIL197 types. If you need more power then these optocouplers will replace the transistor stage in stewc’s circuit quite nicely and give the benefit of isolation.
ULN2803A is a also a pretty useful chip for these applications but are not opto-isolated and you may need to invert the logic going in with some NOT gates but again, very simple to use.
This is awesome, thank you very much! This is actually kind of what i’m looking for.
What i’ve found in my region to try is LTV-847, would that also work?
Having 4 channels is perfect.
I like to use TLP592AF-ND. The only external component you need is a 330 ohm resistor on the input of the Opto led. These also provide isolation from the 12v.