Raspberry Pi Pico Controlled Nema 17 Stepper Motor with DRV8825 Driver
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves a Raspberry Pi Pico microcontroller, a DRV 8825 stepper motor driver, a Nema 17 stepper motor, a power supply, and an electrolytic capacitor. The Raspberry Pi Pico controls the DRV 8825, which in turn drives the Nema 17 stepper motor. The power supply provides the necessary voltage and current for the motor and driver, while the capacitor helps to stabilize the power supply.
Component List
Raspberry Pi Pico
- Description: A microcontroller board based on the RP2040 microcontroller chip.
- Pins: pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, pin 13, pin 14, pin 15, pin 16, pin 17, pin 18, pin 19, pin 20, pin 21, pin 22, pin 23, pin 24, pin 25, pin 26, pin 27, pin 28, pin 29, pin 30, pin 31, pin 32, pin 33, pin 34, pin 35, pin 36, pin 37, pin 38, pin 39, pin 40, pin 41, pin 42, pin 43
DRV 8825
- Description: A stepper motor driver capable of driving a bipolar stepper motor.
- Pins: EN, M0, M1, M2, RST, SLP, STEP, DIR, VMOT, GND MOTOR, B2, B1, A1, A2, FAULT, GND LOGIC
Nema 17 42-STH48
- Description: A bipolar stepper motor.
- Pins: A2 (black), A1 Green, B2 Red, B1 Blue
Power Supply
- Description: Provides the necessary voltage and current for the circuit.
- Pins: +, -, GND
Electrolytic Capacitor
- Description: A capacitor used to stabilize the power supply.
- Pins: +, -
- Properties:
- Capacitance: 0.0001 Farads
Comment
- Description: Placeholder for comments in the circuit.
- Pins: None
Wiring Details
Raspberry Pi Pico
- pin 18 is connected to DRV 8825 GND LOGIC
- pin 21 is connected to DRV 8825 DIR
- pin 22 is connected to DRV 8825 STEP
- pin 40 is connected to DRV 8825 RST and DRV 8825 SLP
DRV 8825
- GND LOGIC is connected to Raspberry Pi Pico pin 18
- DIR is connected to Raspberry Pi Pico pin 21
- STEP is connected to Raspberry Pi Pico pin 22
- RST is connected to Raspberry Pi Pico pin 40
- SLP is connected to Raspberry Pi Pico pin 40
- VMOT is connected to Electrolytic Capacitor + and Power Supply +
- GND MOTOR is connected to Electrolytic Capacitor - and Power Supply -
- B2 is connected to Nema 17 42-STH48 A2 (black)
- B1 is connected to Nema 17 42-STH48 A1 Green
- A1 is connected to Nema 17 42-STH48 B2 Red
- A2 is connected to Nema 17 42-STH48 B1 Blue
Nema 17 42-STH48
- A2 (black) is connected to DRV 8825 B2
- A1 Green is connected to DRV 8825 B1
- B2 Red is connected to DRV 8825 A1
- B1 Blue is connected to DRV 8825 A2
Power Supply
- + is connected to Electrolytic Capacitor + and DRV 8825 VMOT
- - is connected to Electrolytic Capacitor - and DRV 8825 GND MOTOR
Electrolytic Capacitor
- + is connected to Power Supply + and DRV 8825 VMOT
- - is connected to Power Supply - and DRV 8825 GND MOTOR
Documented Code
Raspberry Pi Pico Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)