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

Arduino UNO-Based Ultrasonic Sensor and Relay-Controlled Audio System

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Ultrasonic Sensor and Relay-Controlled Audio System

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with two HC-SR04 Ultrasonic Sensors, a 4-channel relay module, an EZ-SFX amplifier, and two loudspeakers. The circuit is powered by a Polymer Lithium Ion Battery. The Arduino UNO controls the relays and reads data from the ultrasonic sensors. The EZ-SFX amplifier drives the loudspeakers.

Component List

  1. HC-SR04 Ultrasonic Sensor

    • Description: Ultrasonic distance sensor
    • Pins: VCC, TRIG, ECHO, GND
  2. Arduino UNO

    • Description: Microcontroller board based on the ATmega328P
    • 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
  3. Polymer Lithium Ion Battery - Generic

    • Description: Rechargeable battery
    • Pins: GND, VCC
  4. EZ-SFX Amp

    • Description: Audio amplifier
    • Pins: VIN, GND, VBUS, PWRBUTTON, TX, RX, UG, VOL+, VOL-, CS, R, L, ACT, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, RST, L+, L-, R-, R+
  5. Loudspeaker

    • Description: Audio output device
    • Pins: pin1, pin2
  6. Relay 4 Channel 5v

    • Description: 4-channel relay module
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4

Wiring Details

HC-SR04 Ultrasonic Sensor 1

HC-SR04 Ultrasonic Sensor 2

Arduino UNO

Polymer Lithium Ion Battery

EZ-SFX Amp

Loudspeaker 1

Loudspeaker 2

Relay 4 Channel 5v

Documented Code

Arduino UNO Code (sketch.ino)

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

}

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

}

Additional Documentation (documentation.txt)