RPi and AVR code for a 2-wheel balancing robot