This is a code I developed to be able to transmit the data coming from my ultrasonic sensors to the kart via I2C. With this code I was able to demonstrate that I can ssh into our karts main computer and while doing so, record the tcp packets incoming and bypass the kart for a Network forensics course.
This is the code I used to create the battery monitoring system for my senior project. The code was able to report to the I2C display and has a 5 second interval to switch between batteries. In addition to that, it is also able to determine if the battery is 12 volt or 24 volt and display correct quantity of charge left.