Build Self Balancing Robot Using Arduino – Smartphone Control

 

Schematics

Self Balancing Robot Using Arduino
Self Balancing Robot Using Arduino

right motor = STEP1 & DIR1

left motor = STEP2 & DIR2

GY-521 Pins:

A4 – SDA

A5 – SCL

RC control:

D2 – CPPM (PPM_SUM) (For Transmitter)

HC-05 Bluetooth Module Pins:

TX-RX

RX-TX

Motor driver pins:

  • D5 – STEP1 (PORTD 5)
  • D6 – STEP2 (PORTD 6)
  • D7 – DIR1 (PORTD 7)
  • D8 – DIR2 (PORTB 0)
  • D4 – ENABLE (for both)

Code

This code isn’t written by me. Credits to Mahowik

https://github.com/mahowik/BalancingWii

His Original Video-https://www.youtube.com/watch?v=038e2j9nE3M

 

Parts Used

2 x NEMA 17 Stepper Motor-
2 x A4988 Drivers-
Arduino Nano-
Lipo Battery-
HC-05 Bluetooth Module-
GY-521 Module-
Prototype Board-
10cm Wheels-
M5 Rod-
Angle Brackets-
Screws and Nuts-

Youtube

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons