Raspberry PI Module for Robotics Mythololgy (1)

Chapter 1 : Raspberry Pi Zero W Stepper Motor Module
Balancing Robot and 3d Printer - CNC Machine

Similar projects worth following

The legend of Robotics Raspberry Pi Zero start writing.
I'm not just create only extensions board stepper driver for raspberry PI. I will create more the chapter of the module board like for core less motor for tiny mini drone servo etc ..
All I want all Maker can build robot with camera raspberry pi easily to using computer vision or something need high processing.

  1. Chapter 1:   --- Raspberry Pi Zero W Stepper Motor ---

    Raspberry Pi Zero W is so tiny for 4 stepper motor driver a4988 module so i separate the story 2 part . Part 1 for 2 module driver and power supply , part 2 just module driver a4988. 

  • Part 1: Robot Self Balancing

  Robot Self-Balancing have a great performance with stepper motor. Because Stepper allow us to counting step  , precisely and high torque without gear box. Self Balancing robot need Battery lightweight , gyro and motor that we can counting step like stepper motor . That board module have lm2596 mini regulator power supply module adjustable. Because voltage will not stable from battery (Battery always over charge or go low every time ). When we want plug it to Raspberry Pi Zero W we need to plug battery(!!! Don't use Battery over 20V )and turn switch off to the on board module stepper turn off and turn potentiometer inside power supply to 5.3V- 5.5V measure it with multimeter before you put it over 40 pin Raspberry Pi Zero W . and then check power voltage with multimeter again after you plug your stepper motor.
And That A4988 driver stepper motor we can use only 3A Stepper Motor.
Pin used from that driver :

  • GPIO05 -> ENABLE pin MODULE 1
  • GPIO06 -> ENABLE pin MODULE 2
  • GPIO16 -> STEP pin MODULE 1
  • GPIO21 -> STEP pin MODULE 2
  • GPIO12 -> DIR pin MODULE 1
  • GPIO20 -> DIR pin MODULE 2


  • IN+ LM2596 Connect to Battery +
  • IN- LM2596 Connect to Battery -
  • OUT+ LM2596 Connect to Raspberry Pi 5V Pin (!!! IF YOU TURN SWITCH ON the indicator LED)
  • OUT- LM2596 Connect to GND

Plug Battery to 2 pin headers or cut wire battery solder by yourlself (Careful don't plug raspberry with that module without change voltage from power supply Cause it can kill your Raspberry PI)

I will write source code to test with it.
Check out in GITLAB link down below that I commented.

Part 2: CNC machine Or 3d Printer (Stay tuned)

I will continue writing after I design next PCB

Please give me a big thumb to inspire me continue design part2

stepper motor.pdf

Schema Raspberry Pi Myth Stepper Motor Part 1 _ Dual Stepper

Adobe Portable Document Format - 45.42 kB - 04/03/2018 at 11:34


send to , Ordered on:2018-03-15 16:19:35

Zip Archive - 34.21 kB - 03/19/2018 at 13:45


  • 4 × A4988 Stepper Motors Driver Module
  • 4 × Capacitor 100 micro farat
  • 1 × Screw driver turn potentiometer lm2576 module to 5.0V
  • 1 × Raspberry Pi Zero W
  • 2 × Battery Lithium +12V for robot balancer

View all 12 components

View all 8 project logs

Enjoy this project?



Sugandhan Vazhumuni wrote 06/09/2021 at 07:24 point

Thanks for posting this blog

  Are you sure? yes | no

lynatmts wrote 11/13/2018 at 04:20 point

Could I possibly take a look at the code just turning one motor?  Im doing a 'similar' similar that its scary....and having some working stepper code would be great. 

  Are you sure? yes | no

Lab Stream wrote 07/01/2018 at 21:49 point

Hey, that looks really awesome! Just days ago I was looking everywhere to get a very-small-footprint integrated stepper-driver as a shield, and was already planning to design one. Would it somehow be possible for you to sell and ship one of the boards and components? I would love to beta-test or even help in the development!

  Are you sure? yes | no

Reginald Sourn wrote 07/02/2018 at 09:58 point

Omg for interesting my project, it's not beta test yet. It's just alpha test. I will design it again with 4 stepper driver . Design for 3D printer machine  and CNC machine. You can leave your address in hackaday chat . I give you for free just pay me for the  shipping price.

  Are you sure? yes | no

crener wrote 07/02/2018 at 11:06 point

Oh thank god, I was looking for something to drive 3 steppers from a pi zero just yesterday! Please message when you need testers for the 4 stepper version :D

  Are you sure? yes | no

Reginald Sourn wrote 07/02/2018 at 11:22 point

@crener  I'm very happy that you interesting  my project. you can leave your address in my Hackaday chat. I can send to you when I finished  design from beta test . and it's free just give me the shipping price.

  Are you sure? yes | no

RoGeorge wrote 04/18/2018 at 06:50 point

I could use one of these to control the SMD carousel in my Pick and Place adapter for existing 3D printers.

  Are you sure? yes | no

Reginald Sourn wrote 04/18/2018 at 11:20 point

Wow, you have nice idea *.* !!

  Are you sure? yes | no

Vishnu Mohanan wrote 03/22/2018 at 14:20 point

Will be a great addition for a robotics project with RPi Z.

  Are you sure? yes | no

Reginald Sourn wrote 03/22/2018 at 14:37 point

Yeah i hope so.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates