Arduino UNO Battery-Powered Dual Servo Control with Proximity Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a 5V battery, two Micro servo 9G motors, and an LJC18A3-B-Z/BY Capacitive Proximity Sensor. The circuit is designed to control the servos based on the input from the proximity sensor, powered by the 5V battery.
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
5V Battery
- Description: A power source providing 5V.
- Pins: +, -
Micro servo 9G (Servo 1)
- Description: A small and lightweight servo motor.
- Pins: GND, +5V, PWM
Micro servo 9G (Servo 2)
- Description: A small and lightweight servo motor.
- Pins: GND, +5V, PWM
LJC18A3-B-Z/BY Capacitive Proximity Sensor
- Description: A sensor that detects the presence of nearby objects without physical contact.
- Pins: VO (BLU), VI (BRN), SIG (BLK)
Wiring Details
Arduino UNO
- D10: Connected to PWM pin of Micro servo 9G (Servo 1)
- D8: Connected to PWM pin of Micro servo 9G (Servo 2)
- D5: Connected to SIG (BLK) pin of LJC18A3-B-Z/BY Capacitive Proximity Sensor
5V Battery
- +: Connected to +5V pin of Micro servo 9G (Servo 2) and VI (BRN) pin of LJC18A3-B-Z/BY Capacitive Proximity Sensor
- -: Connected to GND pin of Micro servo 9G (Servo 2) and VO (BLU) pin of LJC18A3-B-Z/BY Capacitive Proximity Sensor
Micro servo 9G (Servo 1)
- GND: Not connected
- +5V: Not connected
- PWM: Connected to D10 pin of Arduino UNO
Micro servo 9G (Servo 2)
- GND: Connected to - pin of 5V Battery and VO (BLU) pin of LJC18A3-B-Z/BY Capacitive Proximity Sensor
- +5V: Connected to + pin of 5V Battery and VI (BRN) pin of LJC18A3-B-Z/BY Capacitive Proximity Sensor
- PWM: Connected to D8 pin of Arduino UNO
LJC18A3-B-Z/BY Capacitive Proximity Sensor
- VO (BLU): Connected to GND pin of Micro servo 9G (Servo 2) and - pin of 5V Battery
- VI (BRN): Connected to +5V pin of Micro servo 9G (Servo 2) and + pin of 5V Battery
- SIG (BLK): Connected to D5 pin 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)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.