This document describes code for controlling a self-balancing skateboard or robot using an Arduino board and a Sabertooth motor controller. It includes sections to initialize communication with the Sabertooth, sample sensor inputs from an IMU, apply filtering to the accelerometer data, and calculate steering commands based on gyroscope readings to maintain balance and allow for user steering input. The code is intended to balance the device and allow it to be steered either straight or in a turn with adjustable resistance to deviations from the desired heading.