That should help you in understanding in how you can do this. This does use 2 Light Sensors and a Sonar Sensor. It does a bouncing effect between the 2 sensors and Sonar for seeing if objects are in front of it.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. NXT 2. Ask Question. When the right sensor sees all black, make a hard right turn.
The programming will be trickier because you must test both sensors. Note that for calibration, you only need to calibrate one sensor, and this same calibration will be used for the other sensor as well.
Then consider this: What would a "proportional" strategy look like for two light sensors? Get nxt programs. Click here for info Home Projects Help Contacts. All rights reserved. All project designs, images, and programs are protected by copyright. Please see the usage policy. Download Programs help. Download Calibration Programs help. Home Projects Help Contacts.
Building :. Program :. Note: Be sure the NXT brick is facing the right way. It will only fit correctly this way. The gray "skis" which are on the front on the robot allow the robot to slide from side to side so that it can turn accurately.
The light sensor is placed between the front "skis" and near the place where the skis contact the surface, so that the skis will push down lightly and smooth out any large wrinkles in the mat under the light sensor, to help it get a consistent reading. The dark gray angled beams in the back will normally hover just above the surface, but they are there to provide stability in case the robot tries to tip backward for example, when pressing the NXT buttons.
See the tip on weight balance. Use the shortest wire to connect the light sensor to port 3 on the NXT. If you temporarily remove the two cross beams on the bottom of the robot, you can route the wire neatly under the robot as shown. Building Tip: Weight Balance When building a robot that depends on sliding on something the gray front "skis" in this project to turn, it is important to consider the weight balance of the robot.
Line Follower Programming Download Programs help. Notes: A. You will need to work with the Light Value Numbers and Motor Speeds to "tune" the line follow to track the line depending on light conditions and path of line.
A lower motor speed will allow the robot to track a "more curvy" line. This program will track the Right Hand side of the line. Jan 24, , PM. Dave Parker said…. Yes, electrical tape is flexible enough that with a little practice you can make curves without wrinkles, or cut it if you need tighter turns. It also comes up easily leaving no residue. Jan 25, , AM. Mar 26, , AM. Aug 10, , AM. Unknown said…. Did you ever post the NXT 1. If so can you forward me the link? Thank you for your help.
Philip Martin.
0コメント