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

Arduino UNO Based Ultrasonic Distance Measurement with Relay-Controlled AC Lighting and I2C LCD Display

View and Edit Project In Cirkit DesignerImage of Arduino UNO Based Ultrasonic Distance Measurement with Relay-Controlled AC Lighting and I2C LCD Display

Circuit Documentation

Summary

This circuit is designed to interface an Arduino UNO with multiple peripherals including two HC-SR04 Ultrasonic Distance Sensors, a 2-channel Relay Module, a 20x4 LCD Display with I2C interface, and an LED bulb AC. The Arduino UNO serves as the central processing unit, controlling the sensors, displaying information on the LCD, and switching the LED bulb using the relay module based on the inputs from the ultrasonic sensors. The circuit is powered by the Arduino UNO's 5V and GND pins, with the relay module additionally connected to the Vin for higher voltage requirements.

Component List

Arduino UNO

HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)

Relay Module 2 Channel

LCD Display 20x4 I2C

LED bulb AC / Bombillo AC

AC wall plug point

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Distance Sensor (Wokwi Compatible)

Relay Module 2 Channel

LCD Display 20x4 I2C

LED bulb AC / Bombillo AC

AC wall plug point

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:

}

Note: The provided code is a template and does not contain any functional code. It needs to be populated with the logic to control the ultrasonic sensors, relay module, and LCD display based on the specific requirements of the circuit's application.