Difference between revisions of "Stepper Motor HAT"

From Waveshare Wiki
Jump to: navigation, search
Line 9: Line 9:
 
|interface1 = RPi
 
|interface1 = RPi
 
}}
 
}}
== Introduction ==
+
= Introduction =
 
Stepper Motor HAT for Raspberry Pi, Drives Two Stepper Motors, Up to 1/32 Microstepping
 
Stepper Motor HAT for Raspberry Pi, Drives Two Stepper Motors, Up to 1/32 Microstepping
 +
== Features ==
 +
*Raspberry Pi connectivity, compatible with Raspberry Pi Zero/Zero W/Zero WH/2B/3B/3B+
 +
*Onboard dual DRV8825 motor controller IC with built-in microstepping indexer,drives two stepper motors, easy to use
 +
*6 available microstepping modes, configured with the DIP switches: full-step, halfstep, 1/4-step, 1/8-step, 1/16-step, and 1/32-step
 +
*Adjustable motor drive current via potentiometer, maximum 2.5A current output
 +
*Integrates 5V regulator, allows providing power to Raspberry Pi
 +
*Onboard multi connector options for stepper motors in different specifications
 +
== Parameter ==
 +
*Motor controller: DRV8825
 +
*Motor drive voltage: 8.2V~28V
 +
*Motor drive current: 2.5A
 +
*Dimension: 65mm × 56mm
 +
*Mounting hole size: 3.0mm
 +
== Onboard Resource ==
 +
[[File:Onboard resource.png]]<br/>
 +
{|class="wikitable" style="text-align:center"
 +
!Pin!!Description
 +
|-
 +
|VCC||8.2~28V Power Input
 +
|-
 +
|5V||5V Power
 +
|-
 +
|GND||Ground
 +
|-
 +
|A1||Output 1 of bipolar stepper motor M1 winding A
 +
|-
 +
|A2||Output 2 of bipolar stepper motor M1 winding A
 +
|-
 +
|B1||Output 1 of bipolar stepper motor M1 winding B
 +
|-
 +
|B2||Output 2 of bipolar stepper motor M1 winding B
 +
|-
 +
|A3||Output 3 of bipolar stepper motor M2 winding A
 +
|-
 +
|A4||Output 4 of bipolar stepper motor M2 winding A
 +
|-
 +
|B3||Output 3 of bipolar stepper motor M2 winding B
 +
|-
 +
|B4||Output 4 of bipolar stepper motor M2 winding B
 +
|}
  
 
== Resources ==
 
== Resources ==

Revision as of 10:47, 31 May 2022

Stepper Motor HAT
Stepper-Motor-HAT-1.jpg

Stepper Motor HAT for Raspberry Pi
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

Stepper Motor HAT for Raspberry Pi, Drives Two Stepper Motors, Up to 1/32 Microstepping

Features

  • Raspberry Pi connectivity, compatible with Raspberry Pi Zero/Zero W/Zero WH/2B/3B/3B+
  • Onboard dual DRV8825 motor controller IC with built-in microstepping indexer,drives two stepper motors, easy to use
  • 6 available microstepping modes, configured with the DIP switches: full-step, halfstep, 1/4-step, 1/8-step, 1/16-step, and 1/32-step
  • Adjustable motor drive current via potentiometer, maximum 2.5A current output
  • Integrates 5V regulator, allows providing power to Raspberry Pi
  • Onboard multi connector options for stepper motors in different specifications

Parameter

  • Motor controller: DRV8825
  • Motor drive voltage: 8.2V~28V
  • Motor drive current: 2.5A
  • Dimension: 65mm × 56mm
  • Mounting hole size: 3.0mm

Onboard Resource

Onboard resource.png

Pin Description
VCC 8.2~28V Power Input
5V 5V Power
GND Ground
A1 Output 1 of bipolar stepper motor M1 winding A
A2 Output 2 of bipolar stepper motor M1 winding A
B1 Output 1 of bipolar stepper motor M1 winding B
B2 Output 2 of bipolar stepper motor M1 winding B
A3 Output 3 of bipolar stepper motor M2 winding A
A4 Output 4 of bipolar stepper motor M2 winding A
B3 Output 3 of bipolar stepper motor M2 winding B
B4 Output 4 of bipolar stepper motor M2 winding B

Resources

Documents

Datasheet

Codes

FAQ

 Answer:
  • New version (the purchase date is later than 2021.01.05, the PCB board is printed with the word Rev2.1)

You can enter the following commands in the terminal to download the demo:

sudo apt-get install p7zip-full
wget https://www.waveshare.com/w/upload/1/1f/Stepper_Motor_HAT_V2_Code.7z
7z x Stepper_Motor_HAT_V2_Code.7z -r -o./Stepper_Motor_HAT_V2_Code
sudo chmod 777 -R Stepper_Motor_HAT_V2_Code
cd Stepper_Motor_HAT_V2_Code/Raspberry\ PI/
  • If your purchase date is earlier than 2021.01.05, please perform the following:
sudo apt-get install p7zip-full
wget https://www.waveshare.com/w/upload/8/8c/Stepper_Motor_HAT_Code.7z
7z x Stepper_Motor_HAT_Code.7z -r -o./Stepper_Motor_HAT_Code
sudo chmod 777 -R Stepper_Motor_HAT_Code
cd Stepper_Motor_HAT_Code/Raspberry\ PI/

The difference is that the new version uses high-level enable, so the motor will not work when the Raspberry Pi doesn't initialize the enable GPIO and let it output high-level.

{{{3}}}
{{{4}}}

{{{5}}}


Related Resources

Support

Support

If you require technical support, please go to the Support page and open a ticket.