|
|
Super Science Fair Projects :: Physics Science Fair Projects :: Robotics
Do Computer Software Instructions Really Make a Difference?
Light Sensors Robot science fair projects are a lot of fun for students. However, it is important to keep in mind that if you are working with or experimenting with sensors, whether they are light, motion or sound, that you will need to isolate the component during your experiment. This may mean that you have to build a sound proof test booth. PURPOSEThe purpose of this experiment was to determine the most efficient software instruction set for a light-sensing robot to follow a visual path.
HYPOTHESISMy first hypothesis was that specific programmed instructions could be varied to obtain a maximum speed and accuracy for the robot. My second hypothesis was that specific programmed instructions optimized for one task would also give the maximum speed and accuracy on a second similar but different task. I based my hypothesis on information about robots that explained the importance of the programmed instructions. EXPERIMENT DESIGNThe constants in this study were: The manipulated variable was the error correction factors in the software instruction set. The responding variable was the time it took for the robot to follow the intended route. To measure the responding variable, I used a stopwatch for each trial to know how long it took for the robot to complete its task. MATERIALS
PROCEDURESThe following instructions assume two things. First the experimenter must be very well acquainted with using Lego’s, especially how gears work to power a small vehicle forward, backward, and in turns. Second, the software that controls the robot is “RoboLab 2.5.4.b” for a Windows PC. The experimenter must spend many hours becoming familiar with the basics of using this program. Since there is no true instruction manual for the software, one must go through a series of “Training Missions” to learn the basics for programming the robot. There are an enormous number of possible commands and programming options, and the training missions do not adequately lead you through more than 25%. So the next step is hours of trial and error effort to get to a point where a “formal experiment” can even be attempted. 1) Build basic robot using Lego “Mind storms for Schools” kit a) Create compact vehicle powered with two electric motors each attached via direct gearing to its own drive wheel on an independent axle. There must be one more point of support, a tiny low-friction skid plate, to keep the vehicle upright and level. 2) Create a basic program to make the robot do each of the following 3) Test vehicle and improve design and program as needed a) Upload program to RCX using the USB controlled infra-red transmitter 4) Add light sensor to front of robot and connect to RCX input #1 5) Create a second basic program to make the robot do each of the following: 6) Create test course with black line on white paper a) Create test course on white construction paper (18 X 24 inches). Draw basic course in pencil. Be sure to have a long straight-away, several “S” curves and several 90° zigzags. 7) Create the test program using components from the basic programs above. It must have the following elements: a) Activate both motors to move the robot forward in a straight line while constantly monitoring light sensor 8) Upload program to RCX using the USB controlled infra-red transmitter 9) Conduct your first set of trials a) Reset stopwatch. 10) Repeat step 9 using Course 2 (opposite direction) 11) Change motor power setting variables a) Now change the program variables that control the motors: a) Repeat steps 8-10 at the current settings. 13) Change motor power setting variables as in step 10 except use the values of 7 and 1 14) Conduct next set of trials as in step 11 15) Change correction routine duration variables a) Repeat steps 7-13 except change temporary memory increment value to 5. First trial should start with motor power settings of 5 and 3 as in first trials. Note: the result of increasing the amount of time added to the temporary memory causes the robot to rotate back and forth through larger swings. 16) Analyze results. RESULTSThe original purpose of this experiment was to determine the most efficient software instruction set for a light-sensing robot to follow a visual path. Another observation was that I could have predicted the outcome of any settings without so many trials. Five trials would have been more than enough. Also, the robot doesn’t run both courses equally, the robot scored a few seconds better on the second course. CONCLUSIONMy first hypothesis was that specific programmed instructions could be varied to obtain a maximum speed and accuracy for the robot. The results indicate that my first hypothesis should be accepted, because the combination of power settings of 6,2 with an error correction duration increase of 7 gave the fastest times in both directions My second hypothesis was that, specific programmed instructions optimized for one task would also give the maximum speed and accuracy on a second similar but different task. The results indicate that my second hypothesis should also be accepted, because the same settings worked best on both tasks. I am uncomfortable with this statement because when the settings are slightly off the errors that result are much different for the two tasks. I think more research is needed on this hypothesis. After thinking about the results of this experiment, I wonder how much changing the body style would affect performance. The distance of the light sensor in front of the axle would probably make a difference. Having two light sensors would also be a good thing to test. Most animals have two eyes so it is possible that it could be better for a robot as well. If I were to conduct this project again I would have completed more trials and tested smaller variations of duration. Testing on longer and more difficult courses would be worth while. A more complex programming system could also result in less jerky movement of the robot and faster times. I would have tried to build a better body style. In addition I would have done something to stop the tires from slipping on the wheel rims. 3rd party contributor
Copyright © 2003 - 2010 Super Science Fair Projects - All Rights Reserved.
Science Fair Supplies, Kits, Projects & Ideas
Science Fair Books & Software for Kids and Teachers
For Science Fair Report
|