Adding an Ultrasonic (Sonar) Sensor to LEGO NXT MindStorms Robot ClareBot.

How-To videos (2:30) Windows, Phone, iPad, iPhone, Fire, YouTube.

Click on pictures to enlarge.

Sonar added to ClareBot Lego NXT Robot 1 Small  Sonar added to ClareBot Lego NXT Robot 2 small image

Sonar added to ClareBot Lego NXT Robot 3 Small picture Sonar added to ClareBot Lego NXT Robot 4 small image

Sonar added to ClareBot Lego NXT Robot 5 small image    Sonar added to ClareBot Lego NXT Robot 6 small image

Using a Sonar Sensor with ClareBot

One of the common things we want our robot to do when it sees an obstacle some distance ahead, is to try to avoid the obstacle by turning, and then go forwards again. Let us look at how we can tell our Robot to do this.

Going Forwards While Using the Sonar Sensor

1A) We want our Robot to go forwards while using the Sonar Sensor. [Video Big Small]

1B) How do we tell our Robot to go forwards while using the Sonar Sensor? [Video Big Small]

ClareBot Sonar NXT-G Programming Build 1 DrGraeme.net 

ClareBot Sonar NXT-G Programming Build 2 DrGraeme.net

1C)  What does our Robot do when we try out the 1B instructions? [Video Big Small]

Turning after Seeing an Obstacle.

2A) We want our Robot to turn after seeing an obstacle. [Video Big Small]

2B) How do we tell our Robot to turn after seeing an obstacle? [Video Big Small]

2C) What does our Robot do when we try out the 2B instructions? [Video Big Small]

Bringing It All Together

4) Can Robots go around obstacle courses? [Video coming soon]

 

To go back to the List of Challenges, click here.

www.DrGraeme.net - Adding an Ultrasonic (Sonar) Sensor to ClareBot - Copyright Dr. Graeme Faulkner 2010