Braitenberg Vehicles – v1.0
For our Braitenberg Vehicles project, we were to create Braitenberg's first four cars. The basic idea behind these vehicles is that each vehicle has a set of sensors and motors. The sensors cause the motors to move: either speed up or slow down. By connecting different sensors to different motors, you can cause the cars to have different movements. Math: Math!! Although I usually start with the visual side of these projects, this time I wanted to first figure out how the vehicles would move on-screen. Getting Around The first car, Getting Around , was pretty simple. The light intensity, taken from the sensor, directly correlates to the y-position of the car. At this point, I threw together some basic graphics using the handy-dandy StdDraw library and a few JPEGs. You can see the final Getting Around car to the right. Implementing two motors and sensors, however, was much more challenging. At first, I was trying to calculate the distance each motor would travel