Another, experiment repeat the above but this time using a distance sensor as input to the motor power block. The programs for the 2 experiment screenshot below:
Photo of the experiment setup
Explanation of the programs
Video
Motion sensor application in modified robotic goalkeeper game (open in new window)
Photo of the experiment setup
Photo of the Wedo motor speed block and distance sensor experiment setup |
Lego Wedo experiment with motor power block and distance sensor |
Explanation of the programs
Experiment 1: The program sequence: Start block > Motor power block > motor turn this way block > repeat loop block(input to the motor power block via number input)
On clicking start, the number input to the motor power block, motor turns, loop back to start, check input again, motor turns, loop back .......
Experiment 2: number input replaced by distance sensor input. As hand move closer, distance sensor input changes from zero, increasing till maximumm 10
May i ask why is the value of the distance sensor value increase with the decrease of distance? Thought it was the other way round.
ReplyDelete