Arduino UNO-Based Ultrasonic Sensor and Servo Motor System with AC to DC Conversion
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an HC-SR04 Ultrasonic Sensor, a Micro servo 9G, an AC Supply, a Bridge Rectifier, and a 7805 voltage regulator. The circuit is designed to power the components using an AC supply, convert the AC voltage to DC using a bridge rectifier, and regulate the voltage to 5V using the 7805 voltage regulator. The Arduino UNO controls the ultrasonic sensor and the servo motor.
Component List
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
- Description: An ultrasonic distance sensor.
- Pins: VCC, TRIG, ECHO, GND
Micro servo 9G
- Description: A small servo motor.
- Pins: GND, +5V, PWM
AC Supply
- Description: An AC power supply.
- Pins: +ve, -ve
Bridge Rectifier
- Description: A device that converts AC to DC.
- Pins: Source_in-, source_out-, source_out+, source_in+
7805 Voltage Regulator
- Description: A voltage regulator that outputs 5V.
- Pins: Vin, Gnd, Vout
Wiring Details
Arduino UNO
- 5V: Connected to +5V of Micro servo 9G and VCC of HC-SR04 Ultrasonic Sensor
- GND: Connected to GND of Micro servo 9G, GND of HC-SR04 Ultrasonic Sensor, GND of 7805, and source_out- of Bridge Rectifier
- Vin: Connected to Vout of 7805
- D11: Connected to TRIG of HC-SR04 Ultrasonic Sensor
- D10: Connected to ECHO of HC-SR04 Ultrasonic Sensor
- D9: Connected to PWM of Micro servo 9G
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V of Arduino UNO and +5V of Micro servo 9G
- GND: Connected to GND of Arduino UNO, GND of Micro servo 9G, GND of 7805, and source_out- of Bridge Rectifier
- TRIG: Connected to D11 of Arduino UNO
- ECHO: Connected to D10 of Arduino UNO
Micro servo 9G
- +5V: Connected to 5V of Arduino UNO and VCC of HC-SR04 Ultrasonic Sensor
- GND: Connected to GND of Arduino UNO, GND of HC-SR04 Ultrasonic Sensor, GND of 7805, and source_out- of Bridge Rectifier
- PWM: Connected to D9 of Arduino UNO
AC Supply
- +ve: Connected to Source_in- of Bridge Rectifier
- -ve: Connected to Source_in+ of Bridge Rectifier
Bridge Rectifier
- Source_in-: Connected to +ve of AC Supply
- Source_in+: Connected to -ve of AC Supply
- Source_out+: Connected to Vin of 7805
- Source_out-: Connected to GND of Arduino UNO, GND of HC-SR04 Ultrasonic Sensor, GND of Micro servo 9G, and GND of 7805
7805 Voltage Regulator
- Vin: Connected to Source_out+ of Bridge Rectifier
- Gnd: Connected to GND of Arduino UNO, GND of HC-SR04 Ultrasonic Sensor, GND of Micro servo 9G, and source_out- of Bridge Rectifier
- Vout: Connected to Vin of 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:
}
Additional Documentation (documentation.txt)