/ /Introduction
A relay is an electrically controlled mechanical switch. Inside the plastic box is an electromagnet that, when energized, causes a switch to trip.Relays come in various sizes and are each capable of switching a certain amount of current.
/ /Exercise 1
- Wire up the following schematic
- Program the chip so that pin 2 is an output. You want to toggle pin 2 on and off
- Test the circuit
- Remove the red LED, and connect the motor in its place (bypass the 560 Ohm resistor). Change your code so the motor stays on longer
- Test the circuit/program