Arduino UNO and Motor Shield Controlled Bipolar Stepper Motor System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO with an Arduino Motor Shield (Rev3) to control two bipolar stepper motors. The system is powered by a 2x 18650 battery pack. The Arduino UNO serves as the central processing unit, running embedded code to manage the operation of the motors via the Motor Shield, which directly interfaces with the stepper motors.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- Digital I/O Pins: 14 (of which 6 provide PWM output)
- Analog Input Pins: 6
- Operating Voltage: 5V
Arduino Motor Shield (Rev3)
- Compatible with Arduino UNO
- Can drive up to 2 servo motors, 4 DC motors, or 2 stepper motors
- Operating Voltage: 5V to 12V
Stepper Motor (Bipolar)
- 4-wire bipolar stepper motor
- Used for precise motion control
2x 18650 Battery Pack
- Provides power to the Motor Shield and motors
- Voltage: 3.7V per cell in series
Wiring Details
Arduino UNO
- IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13 are connected to the corresponding pins on the Arduino Motor Shield (Rev3).
Arduino Motor Shield (Rev3)
- VMOT connected to the positive terminal (vcc) of the 2x 18650 battery pack.
- GND connected to the ground terminal (gnd) of the 2x 18650 battery pack.
- B-/B+ connected to the D/B pins of both Stepper Motors (Bipolar).
- A-/A+ connected to the C/A pins of both Stepper Motors (Bipolar).
Stepper Motor (Bipolar)
- Two stepper motors are connected in parallel to the Motor Shield with their respective A, B, C, D pins.
2x 18650 Battery Pack
- Provides power to the Motor Shield and through it to the Arduino UNO and stepper motors.
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 Notes
- The code provided for the Arduino UNO is a template with empty setup and loop functions. The actual implementation should include initialization of the Motor Shield and control logic for the stepper motors.
- The documentation file associated with the Arduino UNO code is empty and can be used to provide additional details and usage instructions for the code.
This documentation provides an overview of the circuit's components, their connections, and the initial code structure for the Arduino UNO. Further development of the code is required to achieve the desired functionality of the circuit.