Instructions
- 1Install the sensors on the robot. Sensors are the inputs that tell the robot what the world looks like. You will need two sensors to make a simple robot: an infrared sensor to keep it from running into walls and a motion sensor to tell the robot when someone is approaching. You can purchase both sensors from the same place you purchased the robot kit--some kits even come with these sensors.
- 2Write the program that tells the robot what to do with the information from the sensors. This is different for every robot kit but basically consists of putting the CD that came with your robot into your PC and then following the on screen instructions. You'll then download the instructions to the robot via a USB connection. You will be writing instructions like "turn away for approaching movements."
- 3Add an LED (usually comes with the robot) effector that blinks when the robot reacts to something. This makes the robot seem more lifelike. The behavior of the LED will be specified in your program.
- 4Test out the robot until you are satisfied with the behavior. For example, turning a robot vehicle usually involves locking one wheel for a fixed amount of time (specified in your program) while the other wheel continues to turn. It will probably take some experimentation to get the timing perfect.
- 1
No comments:
Post a Comment