This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CE-8 Lab 7: Last on SensorsLab Objectives By the end of this lab you should be able to: 1.Identify how to use RCTIME to get light sensor information.2.Createa program that uses light sensors to make the robot seek out dark areas. 3.Identify how the line sensors work.4.Createa program that uses line sensors to follow a line. Light Sensors The scribbler comes with three light sensor. These are the three holes that are on the front of the scribbler above the object sensors. The data that comes from the sensors is different to then what we are used to seeing. Instead of only getting a zero or one from the sensor we get a range of values that represent the brightness that they 'see'. They do this by using a photoresistor that effects how long it takes for a capacitor to discharge. The more light there is the faster the capacitor discharges, the less light the longer. The pins that are attached to the right, center, and left sensors are pins 0, 1, and 2 respectively. We will use the command RCTIME to time how left sensors are pins 0, 1, and 2 respectively....
View Full Document
- Fall '09