This is probably a very simple question for someone who knows who they're talking about, but I don't.
I am looking to use an Arduino output pin from a MEGA 2560 via a transistor to switch a 12V Electromechanical Counter (http://www.esr.co.uk/manuals/c-8409.pdf).
As far as I am aware, the schematic for this output should be very simple, and I've drawn it as I think it ought to be below (the VIN at the top is 12V):
As with anyone new to things like this, my question is actually a series of questions, and I would be grateful if you could aid in any of them.
- Are there any problems with the schematic?
- Do I need the protective diode, or can I simply use a resistor?
- As a power supply for the 12V rail, I need to use something pretty small because it's all going to be housed in a small area; if I use 8 AA batteries or an A23 battery, is the battery life going to be incredibly short? Given that there's a transistor, I was hoping that current will only really be drawn when it's in use and will therefore allow quite a long battery life span.
- What are the calculations I need to make to work out the resistance of the resistor?
- Any particular NPN Transistor I should buy?
Thank you very much in advance for your help.
Stephen.