Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Based Sound-Activated Smart Light with Relay Control

View and Edit Project In Cirkit DesignerImage of Arduino-Based Sound-Activated Smart Light with Relay Control

Circuit Documentation

Summary

This circuit is designed to control an AC bulb using a sound sensor and an Arduino UNO. The sound sensor detects sound levels and sends a signal to the Arduino, which then controls a relay to turn the AC bulb on or off. The circuit is powered by a 9V battery connected through a power jack.

Component List

  1. 9V Battery

    • Description: Provides power to the circuit.
    • Pins: -, +
  2. Power Jack

    • Description: Connects the 9V battery to the circuit.
    • Pins: POSITIF, NEGATIF
  3. AC Source

    • Description: Provides AC power to the AC bulb.
    • Pins: +, -
  4. Sound Sensor

    • Description: Detects sound levels and outputs a signal.
    • Pins: 5V +, OUT, GND
  5. Arduino UNO

    • Description: Microcontroller that processes the sound sensor signal and controls the relay.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  6. 12V Single Channel Relay

    • Description: Switches the AC bulb on or off based on the signal from the Arduino.
    • Pins: NC, COM, NO, IN, GND, VCC
  7. AC Bulb

    • Description: The load that is controlled by the relay.
    • Pins: P, N

Wiring Details

9V Battery

Power Jack

AC Source

Sound Sensor

Arduino UNO

12V Single Channel Relay

AC Bulb

Code Documentation

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your variables and settings, and the loop() function is where the main code runs repeatedly. In this circuit, you would add code to read the sound sensor and control the relay based on the sound levels detected.