Tutorial.RobotRunawayRobot History

Hide minor edits - Show changes to markup

May 18, 2013, at 08:02 AM by Scott Fitzgerald -
Changed lines 34-112 from:
to:
May 17, 2013, at 09:17 AM by Scott Fitzgerald -
Changed lines 5-6 from:

Ever had your robot bumping into walls? This sketch solves the problem totally. By attaching a ultrasonic ranger, the robot can find out if it's too close to obstacles, and turn around to avoid collision.

to:

Is your robot bumping into walls? This quickly solves that problem. By attaching a ultrasonic rangefinder, the robot can find out if it's too close to obstacles, and turn around to avoid collision.

Changed lines 10-12 from:
  • Ultrasound ranger
  • cable to plug the Ultrasound sensor
to:
  • ultrasonic rangefinder
  • cable to plug the Ultrasonic sensor
Changed lines 16-17 from:
  1. Connect the Ultrasonic ranger to TK1 [Tien: we need to fix the illustration to TK1 here]
  2. Fix the ranger to the front of the robot
to:
  1. Connect the Ultrasonic ranger to TK1
  2. Fix the sensor to the front of the robot
Changed lines 20-23 from:
  1. The robot will be running around, automatically avoiding obstacles
  2. If you want to change the detection range, find the line while(getDistance()<20 {, 20 here means 20cm. So change it to another value and try it out
  3. You can also change the robot speed if you want. Try to find it out yourself!
to:
  1. The robot will move around, avoiding obstacles in front of it
  2. If you want to change the detection range, in the code below, find the line @@while (getDistance()<20)**, 20 here means 20cm; change it to another value to try out other sensitivities.
  3. You can also change the robot speed, look at motorWrite() for a hint on how to do that.
May 15, 2013, at 12:59 PM by Scott Fitzgerald -
Deleted lines 32-33:

First, explain the code line by line

May 15, 2013, at 12:58 PM by Scott Fitzgerald -
Changed lines 37-38 from:
to:
Deleted line 119:
May 10, 2013, at 03:54 PM by Xun Yang -
Added lines 15-23:

Instruction

  1. Connect the Ultrasonic ranger to TK1 [Tien: we need to fix the illustration to TK1 here]
  2. Fix the ranger to the front of the robot
  3. Upload the example, unplug USB and turn on power
  4. Put the robot on the floor
  5. The robot will be running around, automatically avoiding obstacles
  6. If you want to change the detection range, find the line while(getDistance()<20 {, 20 here means 20cm. So change it to another value and try it out
  7. You can also change the robot speed if you want. Try to find it out yourself!
Changed line 46 from:
to:
May 03, 2013, at 11:36 AM by Xun Yang -
Changed lines 1-2 from:

Examples > Lottie Lemon?

to:

Examples > Robot

May 03, 2013, at 06:44 AM by David Cuartielles -
Added lines 1-37:

Share