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

Dual Arduino Nano Controlled Ultrasonic Measurement System with LCD Interface

Image of Dual Arduino Nano Controlled Ultrasonic Measurement System with LCD Interface

Circuit Documentation

Summary

This circuit incorporates two Arduino Nano microcontrollers, two HC-SR04 Ultrasonic Sensors, a pushbutton, two 9V batteries, two rocker switches, an LCD display (16 pin), a trimmer potentiometer, and a resistor. The circuit is designed to interface with ultrasonic sensors for distance measurement, display data on an LCD, and receive user input through a pushbutton. Power management is handled through rocker switches and batteries.

Component List

Microcontrollers

  • Arduino Nano: A compact board based on the ATmega328 microcontroller, featuring digital and analog I/O pins.

Sensors

  • HC-SR04 Ultrasonic Sensor: An ultrasonic distance sensor that provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy of up to 3mm.

Input Devices

  • Pushbutton: A simple switch mechanism for controlling some aspect of a machine or a process.

Power Supply

  • 9V Battery: Provides a power source for the circuit.

Switches

  • Rocker Switch: An on-off switch that rocks (rather than trips) when pressed.

Display

  • LCD Display (16 pin): A liquid crystal display capable of displaying characters on a screen.

Passive Components

  • Trimmer Potentiometer: A small potentiometer used for adjustment, tuning, and calibration in circuits.
  • Resistor: A passive two-terminal electrical component that implements electrical resistance as a circuit element.

Wiring Details

Arduino Nano

  • GND: Connected to the ground of the circuit.
  • VIN: Connected to the positive terminal of the 9V battery through a rocker switch.
  • 5V: Provides power to the HC-SR04 Ultrasonic Sensor and the LCD Display.
  • Digital Pins (D2-D9): Interface with the HC-SR04 Ultrasonic Sensors and the LCD Display for control and data exchange.

HC-SR04 Ultrasonic Sensor

  • VCC: Connected to the 5V output from the Arduino Nano.
  • TRIG: Connected to a digital pin on the Arduino Nano for triggering distance measurement.
  • ECHO: Connected to a digital pin on the Arduino Nano to receive the distance measurement signal.
  • GND: Connected to the ground of the circuit.

Pushbutton

  • Pin 1 (in): Connected to a digital pin on the Arduino Nano to detect button presses.
  • Pin 2 (in): Connected to the TRIG pin of the second HC-SR04 Ultrasonic Sensor.

LCD Display (16 pin)

  • VSS, K, R_W: Connected to the ground of the circuit.
  • VDD: Connected to the 5V output from the Arduino Nano.
  • VO: Connected to the wiper of the trimmer potentiometer for contrast adjustment.
  • RS, E, DB4-DB7: Connected to digital pins on the Arduino Nano for data and control signals.
  • A: Connected to the 5V output from the Arduino Nano through a resistor for backlighting.

Trimmer Potentiometer

  • Leg1: Connected to the ground of the circuit.
  • Wiper: Connected to the VO pin of the LCD Display for contrast control.
  • Leg2: Connected to the 5V output from the Arduino Nano through a resistor.

Resistor

  • Pin1: Connected to the 5V output from the Arduino Nano.
  • Pin2: Connected to the A pin of the LCD Display for backlighting.

Rocker Switch

  • Pin 1: Connected to the VIN pin of the Arduino Nano.
  • Pin 2: Connected to the positive terminal of the 9V battery.

Documented Code

Arduino Nano (First Instance)

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

}

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

}

Arduino Nano (Second Instance)

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

}

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

}

Note: The actual functionality of the code is not provided in the input, hence the setup and loop functions are empty. The user should fill in the code according to the specific requirements of the circuit's operation.