RPI Motor
IIC Motor Drive Board
- Get the demo code python from here
- Unzip and run
tar xvzf Raspi_MotorHAT.tar cd Raspi_MotorHAT sudo python StepperTest.py
- Use Guide
myStepper = mh.getStepper(200, 1) # 200 steps/rev, motor port #1 myStepper.setSpeed(30) # 30 RPM
- multiple channel use guide(refer to DualStepperTest.py code)
stepper1.step(100, Raspi_MotorHAT.FORWARD, Raspi_MotorHAT.SINGLE) stepper2.step(100, Raspi_MotorHAT.BACKWARD, Raspi_MotorHAT.SINGLE)