Monday, June 2, 2014

Car Design

Car Design

The NXT car uses an Ultrasonic Sensor from LEGO® MINDSTORMS™ NXT

The NXT car was build with wheels that steer the vehicle with a Servo Motor.   
The NXT brick positioned on top of the car frame administers the operation of the Servo Motors.    


The NXT car also possesses a Light Sensor from LEGO® MINDSTORMS™ NXT

Servo Motor B is the engine of the NXT car and provides the power for the car to move back and forward.


Code

For the benefit of future students, we have decided to post our code. The code is barely commented and somewhat disjointed in places, but it works and our algorithms should be pretty straightforward to understand.

https://www.dropbox.com/s/vy53db9yh48rm87/ENGR103.zip

Additional Video

Before week 9, I created a video describing the way in which the robot traverses the environment and senses parking spots. This video shows the robot working in a different environment than the one created for the demonstration.

Note: this was before the location-preference code was written.