In this section, we will simulate the usage of a relay device with an LED. Once we understand the basics of interfacing a relay device, we will move on to using an actual AC bulb with a relay.
For building the simulated prototype the following parts will be required:
- Arduino Uno R3
- USB connector
- Two pieces 1.5V AA batteries + holder case
- One sound detector sensor module
- One 5V 10A AC power relay
- One red LED
- One 100 Ohms resistor
- Jumper wires as required
Purchase the relay based on the AC mains rating in your country. For example, in some countries the voltage rating is 220V, whereas in other countries it may be 110V.
Before moving on, since we will also use a sound detector module with our prototype, let us quickly take a look at the basic pin out of a typical sound detector device:
Figure 3: Sound detector module...