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 :

  • GPIO16 -> STEP pin MODULE 1
  • GPIO21 -> STEP pin MODULE 1
  • GPIO12 -> DIR pin MODULE 1
  • GPIO20 -> DIR pin MODULE 1


  • 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

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 project log

Enjoy this project?



Similar Projects

Does this project spark your interest?

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