Control a Relay with Arduino

Control a Relay

In this quick Arduino tutorial I will explain how you can control a relay using the Arduino Board, one 1K and one 10K resistors, 1 BC547 transistor, one 6V or 12V relay, one 1N4007 diode and a 12V fan. When the button is pressed the fan will turn ON and will remain in this state until the button is pressed again.

Arduino Control Relay Schematic

Control a Relay

How does the circuit works

When the button is pressed the Arduino board will put pin 2 in HIGH state, meaning 5V on pin 2. This voltage is used to drive the transistor that will switch ON the relay and the load (in our case the fan) will be powered from the main power supply.

Read more: Control a Relay with Arduino

Leave a Comment

Your email address will not be published. Required fields are marked *