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

Arduino UNO-Based Dual Ultrasonic Sensor with Vibration Motor Feedback

Image of Arduino UNO-Based Dual Ultrasonic Sensor with Vibration Motor Feedback

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, two HC-SR04 Ultrasonic Sensors, and a Coreless Vibration Motor. The Arduino UNO serves as the central control unit, interfacing with the ultrasonic sensors to measure distance and controlling the vibration motor based on the sensor inputs.

Component List

Coreless Vibration Motor

  • Description: A small motor that provides vibration feedback.
  • Pins:
    • Negative
    • Positive

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

HC-SR04 Ultrasonic Sensor (Sensor 1)

  • Description: An ultrasonic sensor used for distance measurement.
  • Pins:
    • VCC
    • TRIG
    • ECHO
    • GND

HC-SR04 Ultrasonic Sensor (Sensor 2)

  • Description: An ultrasonic sensor used for distance measurement.
  • Pins:
    • VCC
    • TRIG
    • ECHO
    • GND

Wiring Details

Coreless Vibration Motor

  • Negative pin connected to GND on Arduino UNO.
  • Positive pin connected to D3 on Arduino UNO.

Arduino UNO

  • GND connected to:
    • Negative pin of Coreless Vibration Motor
    • GND pin of HC-SR04 Ultrasonic Sensor (Sensor 1)
    • GND pin of HC-SR04 Ultrasonic Sensor (Sensor 2)
  • 5V connected to:
    • VCC pin of HC-SR04 Ultrasonic Sensor (Sensor 1)
    • VCC pin of HC-SR04 Ultrasonic Sensor (Sensor 2)
  • D3 connected to Positive pin of Coreless Vibration Motor.
  • D4 connected to ECHO pin of HC-SR04 Ultrasonic Sensor (Sensor 1).
  • D5 connected to TRIG pin of HC-SR04 Ultrasonic Sensor (Sensor 1).
  • D6 connected to ECHO pin of HC-SR04 Ultrasonic Sensor (Sensor 2).
  • D7 connected to TRIG pin of HC-SR04 Ultrasonic Sensor (Sensor 2).

HC-SR04 Ultrasonic Sensor (Sensor 1)

  • VCC pin connected to 5V on Arduino UNO.
  • GND pin connected to GND on Arduino UNO.
  • TRIG pin connected to D5 on Arduino UNO.
  • ECHO pin connected to D4 on Arduino UNO.

HC-SR04 Ultrasonic Sensor (Sensor 2)

  • VCC pin connected to 5V on Arduino UNO.
  • GND pin connected to GND on Arduino UNO.
  • TRIG pin connected to D7 on Arduino UNO.
  • ECHO pin connected to D6 on Arduino UNO.

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:

}

Documentation (documentation.txt)


This documentation provides a comprehensive overview of the circuit, including a summary, detailed component descriptions, wiring details, and the code used in the Arduino UNO microcontroller.