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

Arduino-Controlled Ultrasonic Sensor with Servo Motor

Image of Arduino-Controlled Ultrasonic Sensor with Servo Motor

Circuit Documentation

Summary of the Circuit

This circuit integrates an HC-SR04 Ultrasonic Sensor, an ARDUINO UNO microcontroller board, and a Servomotor MG90S. The HC-SR04 sensor is used to measure distance through ultrasonic waves, and the Servomotor MG90S is used to actuate or move to a specific position based on the input signal. The ARDUINO UNO serves as the central processing unit, controlling the sensor and the servomotor based on the programmed logic. The circuit is powered by the ARDUINO UNO's 5V output, and the ground connections are shared among all components to complete the circuit.

Component List

HC-SR04 Ultrasonic Sensor

  • Pins: VCC, TRIG, ECHO, GND
  • Description: An ultrasonic distance sensor that can measure distances by emitting ultrasonic waves and measuring the time taken for the echo to return.

ARDUINO UNO

  • Pins: SCL, SDA, AREF, GND, Digital I/O (13-2), TX, RX, 5V, 3.3V, Analog Input (A5-A0), VIN, RESET
  • Description: A microcontroller board based on the ATmega328P, widely used for building digital devices and interactive objects that can sense and control objects in the physical world.

Servomotor MG90S

  • Pins: SIG, VCC, GND
  • Description: A small and lightweight servomotor capable of precise position control.

Comments

  • Description: Placeholder components for additional notes or documentation, not physically present in the circuit.

Wiring Details

HC-SR04 Ultrasonic Sensor

  • VCC: Connected to the 5V output of the ARDUINO UNO.
  • TRIG: Connected to digital pin 10 of the ARDUINO UNO.
  • ECHO: Connected to digital pin 11 of the ARDUINO UNO.
  • GND: Connected to the ground (GND) pin of the ARDUINO UNO.

ARDUINO UNO

  • 5V: Provides power to the HC-SR04 Ultrasonic Sensor and the Servomotor MG90S.
  • GND: Common ground for the circuit.
  • Digital Pin 10: Sends trigger signal to the HC-SR04 Ultrasonic Sensor.
  • Digital Pin 11: Receives echo signal from the HC-SR04 Ultrasonic Sensor.
  • Digital Pin 12: Sends control signal to the Servomotor MG90S.

Servomotor MG90S

  • SIG: Connected to digital pin 12 of the ARDUINO UNO.
  • VCC: Connected to the 5V output of the ARDUINO UNO.
  • GND: Connected to the ground (GND) pin of the ARDUINO UNO.

Documented Code

No code has been provided for the microcontrollers in the circuit. To fully utilize the circuit's capabilities, embedded code for the ARDUINO UNO is required to control the HC-SR04 Ultrasonic Sensor and the Servomotor MG90S. The code would typically initialize the sensor and servomotor, read distance measurements from the sensor, and then command the servomotor to move to a position based on those measurements.