Arduino code for self balancing bot,
Project for course ME2240, IIT Madras.
Connections:
Motor Directions: Pin 7 and Pin 8
Motor Speed: Pin 9 (PWM)
MPU 6050: Check this link
http://42bots.com/wp-content/uploads/2014/03/MPU6050-Arduino-Uno-Connections.jpg
Youtube Link: https://youtu.be/0pzGdVTDJ8c