I am using 2N2222 Transistor to switch a 12v relay on.
Upon checking my circuit my as I power my base on w my arduino it correctly allows continuity between the collector and the emitter. However, when I connect my 12vdc power source (a car battery), It seemingly ignores my transistor and powers on the relay with no power to the base. I am extremely new at building circuits. Is the problem my transistor. How would I know what transistor to use. Thank you for taking the time to read my post. All help is appreciated. Thanks
Upon checking my circuit my as I power my base on w my arduino it correctly allows continuity between the collector and the emitter. However, when I connect my 12vdc power source (a car battery), It seemingly ignores my transistor and powers on the relay with no power to the base. I am extremely new at building circuits. Is the problem my transistor. How would I know what transistor to use. Thank you for taking the time to read my post. All help is appreciated. Thanks
Code:
Diode 1N4007
-----------|---- >|-------|-------+12v-->
/ | |
C |---|Relay|----|
~5vdc 2.2kΩ /
--------------WW---B--|
\
E
\
=
Ground