The document discusses using a Sharp sensor to measure distance. It provides the formula to calculate distance based on the sensor value. It also provides a sample Arduino program to display the measured distance on an LCD screen, and treats values under 80 as 0 due to the sensor's limited range. Finally, it poses a question about writing a program to control an RGB LED based on distance thresholds.
3. SHARP SENSOR
IN AVR ADC IS IS INBUILT SO THERE IS NO NEED OF
EXTERNAL CIRCUIT.
THIS SHARP SENSOR HAS RANGE OF ONLY 10 TO 80
CM.
WHEN IT IS OUT OF RANGE THAN IT GIVE RANDOM
VALUE OF DISTANCE.
DUE TO THIS IN PROGRAM WE USE 0 VALUE WHEN IT
IS OUT OF RANGE.
R-tist
12/6/2012 i-SKY TECHNOLOGIES 3
6. Q-: WRITE A PROGRAM TO
DEMONSTRATE WHEN DISTANCE
OF OBJECT IS LESS THAN 40 CM
THAN RED LED OF RGB IS GLOW
WHEN IT IS 40-50 GREEN LED IS
GLOW AND WHEN IT IS GREATER
THAN 50 BLUE LED GLOW
12/6/2012 R-tist i-SKY TECHNOLOGIES 6