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

Arduino UNO-Based Ultrasonic Sensor and LCD Display Controlled DC Motor System

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Ultrasonic Sensor and LCD Display Controlled DC Motor System

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfacing with an HC-SR04 Ultrasonic Sensor, a 16x2 I2C LCD, a DC Motor, and an L298N 2A Dual Motor Driver Module. The circuit is powered by a 12V battery. The Arduino UNO controls the motor driver and reads data from the ultrasonic sensor, displaying the information on the LCD.

Component List

  1. Arduino UNO

    • Description: A 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
  2. HC-SR04 Ultrasonic Sensor

    • Description: A sensor used for measuring distance using ultrasonic waves.
    • Pins: VCC, TRIG, ECHO, GND
  3. 16x2 I2C LCD

    • Description: A 16x2 character LCD display with I2C interface.
    • Pins: GND, VCC, SDA, SCL
  4. DC Motor

    • Description: A simple DC motor.
    • Pins: pin 1, pin 2
  5. Battery 12V

    • Description: A 12V battery used to power the circuit.
    • Pins: +, -
  6. L298N 2A Dual Motor Driver Module with PWM Control

    • Description: A motor driver module capable of controlling two DC motors with PWM control.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT4, OUT3, ENA, IN1, IN2, IN3, ENB, IN4

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

16x2 I2C LCD

DC Motor

Battery 12V

L298N 2A Dual Motor Driver Module with PWM Control

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)