![]() ![]() All rights reserved.Īll project designs, images, and programs are protected by copyright. When it sees one, the rotator is rotated to the correct position and the loader is activated, sending the ball into the correct bin. The first task watches the colour sensor until it sees a ball. You could also imagine trying to stop halfway when driving to the ball, scanning again, and correcting the heading then if necessary.Ĭopyright © 2007-2011 by Dave Parker. Writing the code for the ball sorter was pretty straight forward. Can you improve it? For example, after the robot reverses its pivot turn and turns back to point at where it thinks the closest ball was, you could add another ultrasonic scanning pass, this time perhaps pivoting to the left and right by just 30 degrees or so, to try to come up with a more accurate heading to the ball. There is certainly room for improvement in the program or even the overall strategy. Things like wheel slippage in carpet will start to mess it up. You will also need the Calibrate元 program to calibrate the. Use the PegSorter program for the Peg Sorter. ![]() ![]() Insert the pegs into the correct holes as shown below, then adjust the axles until the light sensor sits flat against the beams on the sides of the channel. This Ball Hunter's navigation strategy is fairly simple and highly dependent on accurate measurements from the rotation sensors. Connect the light sensor wire to port 3 on the NXT. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |