Connecting a 12V relay to Arduino
To connect a
12V relay to the Arduino you need the following things:
- 1 Arduino
- 1 diode for
example 1N4007
- 1 NPN
transistor for example 2N2222 (in the US) or BC548 (in Europe)
- 1 relay
for example one with coil voltage 12V and switching voltage 125VAC/10 A
- 1
multimeter