Now that I know a little bit more about coding and the Mindstorms I decided to build a new robot with better balance and re-written code. I ended up making a funny little program. I added a touch sensor and a ultrasonic sensor to detect things. So, when something comes close it can either stop or avoid it. Now that I built a new, more stable robot the coding is much easier and I will continue to use this as a base for future experiments. The Mindstorms has definitely been one of the best gifts I have got. I look forward to making more projects and Legos in the future.

The videos below show how this program runs:
robot-step1 from Ishaan Jain on Vimeo.
bye