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

Arduino UNO Controlled LCD Display with Ultrasonic Sensors and Servomotor Interaction

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled LCD Display with Ultrasonic Sensors and Servomotor Interaction

Circuit Documentation

Summary

This circuit integrates various components with an Arduino UNO microcontroller to create a multifunctional system. The system includes an LCD display for user interface, a potentiometer for adjustable input, a servomotor for mechanical control, an LED for visual indication, resistors for current limiting, a piezo buzzer for audio output, and multiple HC-SR04 ultrasonic sensors for distance measurement.

Component List

Arduino UNO

LCD Display (16 pin)

Potentiometer

Servomotor SG90

LED: Two Pin (red)

Resistors (200 Ohms)

Piezo Buzzer

HC-SR04 Ultrasonic Sensors

Wiring Details

Arduino UNO

LCD Display (16 pin)

Potentiometer

Servomotor SG90

LED: Two Pin (red)

Resistors (200 Ohms)

Piezo Buzzer

HC-SR04 Ultrasonic Sensors

Documented Code

sketch.ino

#include <LiquidCrystal.h>

// Initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

void setup() {
  // Set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello");
}

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

}

This code initializes the LCD display and prints the message "hello" on it. The LiquidCrystal library is used to manage the LCD's interface pins and to set up the display's dimensions. The setup() function runs once when the program starts and sets up the LCD, while the loop() function runs continuously, allowing for repeated operations.