Unit B · Things that move, things that show
What we are making: a relay clicking on and off under program control — the bridge between your little circuit and the rest of the world.
An Arduino pin can supply about 40 milliamps. A desk lamp needs thousands. So the board can never switch a lamp directly, no matter how clever the program is.
A relay solves this by being two separate circuits in one box. Your board operates a small electromagnet on one side; the electromagnet pulls a metal switch closed on the other side. The two sides never touch. That is why a 5 volt board can control something far larger than itself — and why you can hear the click.
| What you see | Why | What to do |
|---|---|---|
| No click at all | No signal, or no power to the module. | Check IN is on pin 7, and that both VCC and GND are connected. |
| It clicks, but the bulb stays dark | The switched circuit is not complete. | A relay only closes a switch. The bulb needs its own battery through COM and NO. |
| It clicks constantly, very fast | The delays are missing or in setup(). | Both delay lines belong inside loop(). |
| The board resets whenever it clicks | The relay draws too much current. | Power the relay from its own battery, sharing GND with the board. |
In this session