Skip to content

Code & Wiring Diagram to control the 28BYJ-48 5VDC Stepper Motor with RaspberryPi 3b+ via Stepper Motor Driver Module

Notifications You must be signed in to change notification settings

chris-buckley/raspberrypi-steppermotor-28BYJ-48

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

raspberrypi-steppermotor-28BYJ-48

Code & Wiring Diagram to control the 28BYJ-48 5VDC Stepper Motor with RaspberryPi 3b+ via Stepper Motor Driver Module.

python motordeg.py [step_time] [degrees] [direction] [step_start]

step_time: 1 for fastest possible rotation - only works when using half steps (8) needs at least 2 when working with full steps (4)

degrees: rotation in degrees (doubles when using only full steps)

direction: cw for clockwise, ccw for counter clockwise

step_start: only required for multiple high-precision rotations

Example would be.. within terminal and within the directory of where the py file is. python motordeg.py 2 50 cw This would mean the motor would turn counterwise for 50 degrees at speed 2. (The lower the speed the quicker it will turn.)

About

Code & Wiring Diagram to control the 28BYJ-48 5VDC Stepper Motor with RaspberryPi 3b+ via Stepper Motor Driver Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages