Arduino UNO-Based Battery-Powered Robotic System with Servo and Stepper Motors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various components including a servo motor, an IR sensor, two stepper motors, and two ULN 2003 driver ICs. The circuit is powered by multiple 5V batteries. The Arduino UNO controls the servo motor, IR sensor, and stepper motors through the ULN 2003 driver ICs.
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
Servo
- Description: A small motor with a feedback sensor to control angular position.
- Pins: gnd, vcc, pulse
IR Sensor
- Description: An infrared sensor used for detecting objects.
- Pins: out, gnd, vcc
28BYJ-48 Stepper Motor
- Description: A small stepper motor used for precise control of angular position.
- Pins: BLUE, PINK, YELLOW, ORANGE, RED
ULN 2003
- Description: A Darlington transistor array used to drive the stepper motors.
- Pins: IN1, IN2, IN3, IN4, IN5, IN6, IN7, GND, +, COIL1, COIL2, COIL3, COIL4, COIL5
5V Battery
- Description: A power source providing 5V.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V connected to + of 5V Battery
- GND connected to:
- gnd of Servo
- gnd of IR Sensor
- GND of ULN 2003 (both instances)
- - of 5V Battery (all instances)
- D12 connected to IN4 of ULN 2003
- D11 connected to IN3 of ULN 2003
- D10 connected to IN2 of ULN 2003
- D9 connected to pulse of Servo
- D8 connected to IN1 of ULN 2003
- D7 connected to IN4 of ULN 2003
- D6 connected to IN3 of ULN 2003
- D5 connected to IN2 of ULN 2003
- D4 connected to IN1 of ULN 2003
- D3 connected to out of IR Sensor
Servo
- gnd connected to GND of Arduino UNO
- vcc connected to + of 5V Battery
- pulse connected to D9 of Arduino UNO
IR Sensor
- gnd connected to GND of Arduino UNO
- vcc connected to + of 5V Battery
- out connected to D3 of Arduino UNO
28BYJ-48 Stepper Motor
- RED connected to + of 5V Battery
- BLUE connected to COIL4 of ULN 2003
- PINK connected to COIL3 of ULN 2003
- YELLOW connected to COIL2 of ULN 2003
- ORANGE connected to COIL1 of ULN 2003
ULN 2003
- GND connected to GND of Arduino UNO
- + connected to + of 5V Battery
- IN1 connected to D8 of Arduino UNO
- IN2 connected to D10 of Arduino UNO
- IN3 connected to D11 of Arduino UNO
- IN4 connected to D12 of Arduino UNO
- COIL1 connected to ORANGE of Stepper Motor
- COIL2 connected to YELLOW of Stepper Motor
- COIL3 connected to PINK of Stepper Motor
- COIL4 connected to BLUE of Stepper Motor
5V Battery
- + connected to:
- 5V of Arduino UNO
- vcc of Servo
- vcc of IR Sensor
- + of ULN 2003 (both instances)
- RED of Stepper Motor (both instances)
- - connected to GND of Arduino UNO
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.