Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled LCD Display with Ultrasonic Sensors and Servomotor Interaction

Image 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

  • Microcontroller board based on the ATmega328P
  • Provides digital and analog I/O pins for interfacing with other components

LCD Display (16 pin)

  • A 16x2 character LCD display for showing information to the user

Potentiometer

  • A variable resistor used to adjust the contrast of the LCD display

Servomotor SG90

  • A small and lightweight servo for precise control of mechanical movement

LED: Two Pin (red)

  • A red LED used as a visual indicator

Resistors (200 Ohms)

  • Three resistors with a resistance of 200 Ohms, used for current limiting

Piezo Buzzer

  • An electronic device that produces sound when voltage is applied

HC-SR04 Ultrasonic Sensors

  • Three ultrasonic ranging modules used for measuring distances

Wiring Details

Arduino UNO

  • 5V and GND are used to power the circuit
  • A0, A1, A2 are connected to the TRIG pins of the HC-SR04 sensors
  • D13 is connected to the SIG pin of the Servomotor SG90
  • D12 is connected to the pin 1 of the Piezo Buzzer
  • D9 is connected to the anode of the LED
  • D7, D6, D5, D4, D3, D2 are connected to the RS, E, DB4, DB5, DB6, DB7 pins of the LCD Display respectively

LCD Display (16 pin)

  • VDD connected to 5V power
  • VSS and R_W connected to GND
  • VO connected to the Output of the Potentiometer
  • RS, E, DB4, DB5, DB6, DB7 connected to Arduino UNO pins D7, D6, D5, D4, D3, D2 respectively
  • K connected to GND through a 200 Ohm resistor

Potentiometer

  • GND connected to GND
  • Output connected to VO of the LCD Display
  • VCC connected to 5V power

Servomotor SG90

  • SIG connected to D13 on the Arduino UNO
  • VCC connected to 5V power
  • GND connected to GND

LED: Two Pin (red)

  • anode connected to D9 on the Arduino UNO
  • cathode connected to GND through a 200 Ohm resistor

Resistors (200 Ohms)

  • One resistor connected between the cathode of the LED and GND
  • One resistor connected between K of the LCD Display and GND
  • One resistor connected between pin 2 of the Piezo Buzzer and GND

Piezo Buzzer

  • pin 1 connected to D12 on the Arduino UNO
  • pin 2 connected to GND through a 200 Ohm resistor

HC-SR04 Ultrasonic Sensors

  • VCC pins connected to 5V power
  • GND pins connected to GND
  • TRIG pins connected to A0, A1, A2 on the Arduino UNO respectively

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.