NXT Self Driving Car


The Project

In this project I am making a self-driving car using Lego Mindstorms NXT and programming it using the Lego Mindstorms NXT programming software.


How To Do It Yourself

Step 1 Build the Car:
To build the car first you need a Lego Mindstorms NXT set. You need to build a car with two motors. The one on the right of the car should be connected to port A on the Mindstorms NXT brick and the one on the left of the car should be connected to port C. The ultrasonic sensor should be at the front of the car and should be connected to port 4 of the NXT Brick.
Here’s a short video explaining it:

Step 2 Write the Program:
The program is written using the NXT Software. In the program I tell the car to keep moving if there isn’t a obstacle┬áin front of it and go backwards and turn in a completely different direction if there is an obstacle in front of it. The car also makes a noise when an obstacle is encountered.