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

Arduino UNO Controlled Ultrasonic Sensor with Servo and Vibration Feedback

Image of Arduino UNO Controlled Ultrasonic Sensor with Servo and Vibration Feedback

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an HC-SR04 Ultrasonic Sensor, a Micro servo 9G, a Piezo Speaker, a 9V battery, and a Vibration Motor. The circuit is designed to interface with various sensors and actuators, and it is powered by a 9V battery. The Arduino UNO serves as the central processing unit, controlling the operations of the ultrasonic sensor, servo motor, speaker, and vibration motor.

Component List

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.

HC-SR04 Ultrasonic Sensor

  • Description: An ultrasonic distance sensor that uses sonar to determine the distance to an object.
  • Pins: VCC, TRIG, ECHO, GND.

Micro servo 9G

  • Description: A small and lightweight servo motor suitable for a variety of applications.
  • Pins: GND, +5V, PWM.

Piezo Speaker

  • Description: An electronic device that can produce sound when an electrical signal is applied.
  • Pins: pin1, pin2.

9V Battery

  • Description: A standard 9V battery used to provide power to the circuit.
  • Pins: +, -.

Vibration Motor

  • Description: A small motor that vibrates when electricity is applied.
  • Pins: +, -.

Wiring Details

Arduino UNO

  • 5V connected to:
    • HC-SR04 Ultrasonic Sensor VCC
    • Micro servo 9G +5V
  • GND connected to:
    • HC-SR04 Ultrasonic Sensor GND
    • Micro servo 9G GND
    • Piezo Speaker pin1
    • Vibration Motor -
  • Vin connected to 9V battery +
  • D9 connected to HC-SR04 Ultrasonic Sensor TRIG
  • D8 connected to HC-SR04 Ultrasonic Sensor ECHO
  • D7 connected to Vibration Motor +
  • D5 connected to Micro servo 9G PWM
  • D4 connected to Piezo Speaker pin2

HC-SR04 Ultrasonic Sensor

  • VCC connected to Arduino UNO 5V
  • TRIG connected to Arduino UNO D9
  • ECHO connected to Arduino UNO D8
  • GND connected to Arduino UNO GND

Micro servo 9G

  • GND connected to Arduino UNO GND
  • +5V connected to Arduino UNO 5V
  • PWM connected to Arduino UNO D5

Piezo Speaker

  • pin1 connected to Arduino UNO GND
  • pin2 connected to Arduino UNO D4

9V Battery

  • + connected to Arduino UNO Vin
  • - connected to Arduino UNO GND

Vibration Motor

  • + connected to Arduino UNO D7
  • - connected to Arduino UNO GND

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:

}

Note: The code provided is a template and does not contain any functional code. It is expected that the user will add the necessary setup and loop code to control the components in the circuit.