Difference between revisions of "Stepper Motor HAT"

From Waveshare Wiki
Jump to: navigation, search
Line 34: Line 34:
 
sudo apt-get install p7zip-full
 
sudo apt-get install p7zip-full
 
wget https://www.waveshare.com/w/upload/1/1f/Stepper_Motor_HAT_V2_Code.7z
 
wget https://www.waveshare.com/w/upload/1/1f/Stepper_Motor_HAT_V2_Code.7z
7z x Stepper_Motor_HAT_Code.7z -r -o./Stepper_Motor_HAT_Code
+
7z x Stepper_Motor_HAT_V2_Code.7z -r -o./Stepper_Motor_HAT_V2_Code
sudo chmod 777 -R Stepper_Motor_HAT_Code
+
sudo chmod 777 -R Stepper_Motor_HAT_V2_Code
cd Stepper_Motor_HAT_Code/Raspberry\ PI/
+
cd Stepper_Motor_HAT_V2_Code/Raspberry\ PI/
 
</pre>
 
</pre>
  
Line 43: Line 43:
 
sudo apt-get install p7zip-full
 
sudo apt-get install p7zip-full
 
wget https://www.waveshare.com/w/upload/8/8c/Stepper_Motor_HAT_Code.7z
 
wget https://www.waveshare.com/w/upload/8/8c/Stepper_Motor_HAT_Code.7z
7z x Stepper_Motor_HAT_V2_Code.7z -r -o./Stepper_Motor_HAT_V2_Code
+
7z x Stepper_Motor_HAT_Code.7z -r -o./Stepper_Motor_HAT_Code
sudo chmod 777 -R Stepper_Motor_HAT_V2_Code
+
sudo chmod 777 -R Stepper_Motor_HAT_Code
cd Stepper_Motor_HAT_V2_Code/Raspberry\ PI/
+
cd Stepper_Motor_HAT_Code/Raspberry\ PI/
 
</pre>
 
</pre>
 
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.
 
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.

Revision as of 09:28, 30 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

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.