LEGO's NXT software, NXT-G, is a graphical programming language based on icons that we refer to as "blocks." We will give you a quick overview of some of the important blocks in the NXT software that you will need for this project. Training a robot dog to follow a flashlight beam might seem like a cool idea, but how exactly will you get it to work? You will have to write a program and download it to your NXT. When both sensors receive the same amount of light, the wheels spin at the same speed, so the robot advances in a straight line. When a robot needs to turn toward the light, the wheel that is farther from the light spins faster, and the wheel that is closer to the light spins slower (shown by the pink arrows), and the robot turns toward the light. When the flashlight moves from side to side, the left and right light sensors detect different amounts of light. The robot has two motors and two forward-facing light sensors. This graphic illustrates the concept for a robot that can follow a flashlight beam.
0 Comments
Leave a Reply. |