Raspberry Pi 5 Controlled NEMA23 Stepper Motor Driver with DRV8825
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates a Raspberry Pi 5, a DRV 8825 motor driver, a NEMA23 stepper motor, a 7805 voltage regulator, electrolytic capacitors, and a power supply. The Raspberry Pi 5 serves as the main controller, interfacing with the DRV 8825 to control the NEMA23 stepper motor. The 7805 voltage regulator ensures a stable 5V supply, while the electrolytic capacitors provide necessary filtering.
Component List
Raspberry Pi 5
- Description: A single-board computer used as the main controller.
- Pins: Type-C, Micro HDMI 1, Micro HDMI 2, Camera 1, Camera 2, PoE, Fan, PCIe, USB 3.0, USB 2.0, Ethernet, 5V, GND, 3.3v, GPIO 14, GPIO 15, GPIO 18, GPIO 23, GPIO 24, GPIO 25, GPIO 8, GPIO 7, GPIO 1, GPIO 12, GPIO 16, GPIO 20, GPIO 21, GPIO 2, GPIO 3, GPIO 4, GPIO 17, GPIO 27, GPIO 22, GPIO 10, GPIO 9, GPIO 11, GPIO 0, GPIO 5, GPIO 6, GPIO 13, GPIO 19, GPIO 26
Power Supply
- Description: Provides power to the circuit.
- Pins: +, -
NEMA23 Stepper Motor
- Description: A stepper motor used for precise control of mechanical movements.
- Pins: A+, A-, B+, B-
DRV 8825 Motor Driver
- Description: A motor driver used to control the NEMA23 stepper motor.
- Pins: EN, M0, M1, M2, RST, SLP, STEP, DIR, VMOT, GND MOTOR, B2, B1, A1, A2, FAULT, GND LOGIC
Electrolytic Capacitor (10 µF)
- Description: Provides filtering in the power supply.
- Pins: -, +
- Properties: Capacitance: 10 µF
Electrolytic Capacitor (100 µF)
- Description: Provides filtering in the power supply.
- Pins: -, +
- Properties: Capacitance: 100 µF
7805 Voltage Regulator
- Description: Regulates the input voltage to a stable 5V output.
- Pins: Vin, Gnd, Vout
Wiring Details
Raspberry Pi 5
GND is connected to:
- DRV 8825 (GND LOGIC)
- 7805 (Gnd)
- Electrolytic Capacitor (10 µF) (-)
3.3v is connected to:
- DRV 8825 (RST)
- DRV 8825 (SLP)
- 7805 (Vout)
- Electrolytic Capacitor (10 µF) (+)
GPIO 14 is connected to:
- DRV 8825 (M0)
GPIO 15 is connected to:
- DRV 8825 (M1)
GPIO 18 is connected to:
- DRV 8825 (M2)
GPIO 20 is connected to:
- DRV 8825 (DIR)
GPIO 21 is connected to:
- DRV 8825 (STEP)
Power Supply
+ is connected to:
- Electrolytic Capacitor (100 µF) (-)
- DRV 8825 (VMOT)
- 7805 (Vin)
- is connected to:
- Electrolytic Capacitor (100 µF) (+)
- DRV 8825 (GND MOTOR)
NEMA23 Stepper Motor
A+ is connected to:
- DRV 8825 (A2)
A- is connected to:
- DRV 8825 (A1)
B+ is connected to:
- DRV 8825 (B1)
B- is connected to:
- DRV 8825 (B2)
DRV 8825 Motor Driver
GND LOGIC is connected to:
- Raspberry Pi 5 (GND)
- 7805 (Gnd)
- Electrolytic Capacitor (10 µF) (-)
RST is connected to:
- Raspberry Pi 5 (3.3v)
SLP is connected to:
- Raspberry Pi 5 (3.3v)
M0 is connected to:
- Raspberry Pi 5 (GPIO 14)
M1 is connected to:
- Raspberry Pi 5 (GPIO 15)
M2 is connected to:
- Raspberry Pi 5 (GPIO 18)
DIR is connected to:
- Raspberry Pi 5 (GPIO 20)
STEP is connected to:
- Raspberry Pi 5 (GPIO 21)
VMOT is connected to:
- Electrolytic Capacitor (100 µF) (-)
- Power Supply (+)
- 7805 (Vin)
GND MOTOR is connected to:
- Electrolytic Capacitor (100 µF) (+)
- Power Supply (-)
A2 is connected to:
- NEMA23 (A+)
A1 is connected to:
- NEMA23 (A-)
B1 is connected to:
- NEMA23 (B+)
B2 is connected to:
- NEMA23 (B-)
Electrolytic Capacitor (10 µF)
- is connected to:
- DRV 8825 (GND LOGIC)
- Raspberry Pi 5 (GND)
- 7805 (Gnd)
+ is connected to:
- DRV 8825 (RST)
- DRV 8825 (SLP)
- Raspberry Pi 5 (3.3v)
- 7805 (Vout)
Electrolytic Capacitor (100 µF)
- is connected to:
- DRV 8825 (VMOT)
- Power Supply (+)
- 7805 (Vin)
+ is connected to:
- DRV 8825 (GND MOTOR)
- Power Supply (-)
7805 Voltage Regulator
Vin is connected to:
- Electrolytic Capacitor (100 µF) (-)
- Power Supply (+)
- DRV 8825 (VMOT)
Gnd is connected to:
- DRV 8825 (GND LOGIC)
- Raspberry Pi 5 (GND)
- Electrolytic Capacitor (10 µF) (-)
Vout is connected to:
- DRV 8825 (RST)
- DRV 8825 (SLP)
- Raspberry Pi 5 (3.3v)
- Electrolytic Capacitor (10 µF) (+)
Code
No code is provided for this circuit.