Part Five of this lab had us capturing sensor data using the Optosensor. It captures data by using the reflection of the floor. Libero showed us the readings of the sensor using an oscilloscope to show us how the sensor received its data. With the sensor now placed on Gizmo, the light of the sensor would light up when it reads a black piece of tape or it is carried too high from the ground.
Part Six is the final part of Lab 1 and it consisted of making Gizmo stop when it goes over a piece of black tape. The sensor is supposed to be over the black tape when the Robot is stopped. Gizmo performed this function relatively well and even moved backwards slowly back over the tape if it went too far (The backwards slowly function did not always work 100% of the time, however Gizmo stopped on the black line pretty well). We tested Gizmo over the various other colours of tape (green and red) and it did not detect them which shows the sensor is functioning well and is not too sensitive.