Hello,
I am using an ATmega8 to open and close a solenoid valve.
The transistor I am using is a TIP120(https://www.electro-tech-online.com/custompdfs/2009/07/tip120.pdf), this is the most appropriate one I could find in the lab that I'm in.
The solenoid needs 12V and draws 500mA.
The ATmega8 port specs are IOH = -20 mA, VCC = 5V
1. Ive heard that I need a protection diode in parralell with the coil, however
I have never done anything like this before and have no idea what kind of diode will suite the job. Could anyone please assist?
2. What kind of base resistance do I need? And are any other resistors needed in the circuit?
3. I will be using a 12V supply. Will the transistor have a voltage drop?? If so, will the solenoid not function correctly? Hope thats not too much of a dumb question.
Thank you
I am using an ATmega8 to open and close a solenoid valve.
The transistor I am using is a TIP120(https://www.electro-tech-online.com/custompdfs/2009/07/tip120.pdf), this is the most appropriate one I could find in the lab that I'm in.
The solenoid needs 12V and draws 500mA.
The ATmega8 port specs are IOH = -20 mA, VCC = 5V
1. Ive heard that I need a protection diode in parralell with the coil, however
I have never done anything like this before and have no idea what kind of diode will suite the job. Could anyone please assist?
2. What kind of base resistance do I need? And are any other resistors needed in the circuit?
3. I will be using a 12V supply. Will the transistor have a voltage drop?? If so, will the solenoid not function correctly? Hope thats not too much of a dumb question.
Thank you