Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Raspberry Pi 4B Controlled Stepper Motor with Magnetic Encoder

View and Edit Project In Cirkit DesignerImage of Raspberry Pi 4B Controlled Stepper Motor with Magnetic Encoder

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes a Raspberry Pi 4B, DRV8825 motor drivers, AS5600 magnetic encoders, power supplies, an AC source, an electrolytic capacitor, and a Nema 17 stepper motor. The circuit is designed to control a stepper motor using the Raspberry Pi, with feedback from the magnetic encoders. The power supplies provide the necessary voltages for the components.

Component List

  1. DRV8825 Motor Driver

    • Description: Motor driver for controlling stepper motors.
    • Pins: ENABLE, MS1, MS2, MS3, RESET, SLEEP, STEP, DIR, GND, FAULT, 1B, 1A, 2A, 2B, VMOT
  2. AS5600 Magnetic Encoder

    • Description: Magnetic encoder for position feedback.
    • Pins: DIR, SCL, SDA, GP0, VCC, OUT, GND
  3. POWER SUPPLY 12V 5AMP

    • Description: Power supply providing 12V DC at 5A.
    • Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
  4. POWER SUPPLY 5V 5AMP

    • Description: Power supply providing 5V DC at 5A.
    • Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
  5. Raspberry Pi 4B

    • Description: Single-board computer for controlling the circuit.
    • Pins: 3V3, 5V, GPIO2, GPIO3, GND, GPIO4, GPIO14, GPIO15, GPIO17, GPIO18, GPIO27, GPIO22, GPIO23, GPIO24, GPIO10, GPIO9, GPIO25, GPIO11, GPIO8, GPIO7, ID_SD, GPIO5, GPIO6, GPIO12, GPIO13, GPIO19, GPIO16, GPIO26, GPIO20, GPIO21, ID_SC, TR01_TAP, TR00_TAP, TR03_TAP, TR02_TAP, RUN, GLOBAL_EN
  6. AC Source

    • Description: AC power source.
    • Pins: +, -
  7. Nema 17 42-STH48

    • Description: Stepper motor.
    • Pins: A2 (black), A1 Green, B2 Red, B1 Blue
  8. Electrolytic Capacitor

    • Description: Capacitor for filtering.
    • Pins: -, +
    • Properties: Capacitance: 0.0001 Farads

Wiring Details

DRV8825 Motor Driver

AS5600 Magnetic Encoder

POWER SUPPLY 12V 5AMP

POWER SUPPLY 5V 5AMP

Raspberry Pi 4B

AC Source

Nema 17 42-STH48

Electrolytic Capacitor

Code

No code is provided for this circuit.


This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and code section. Each component is described, and the wiring details are provided to ensure proper connections.