Today the two calibration programs for the light sensor have been finished. The working of both programs is written down below.
Program one:
//Calibrate light sensor for line tracking
//
// During this calibration the light sensor is first placed above the black line.
// When pushing the 'view' button the light intensity is stored in Brightness_line.
// Next the sensor is placed above the table, when pushing the 'view' button
// light intensity is stored in Brightness_table.
// The stored value's are also "printed" on the LCD screen once the button has
// been pushed.
Program two:
// Calibrate light sensor for mars exploration
//
// During this calibration the light sensor is first placed above mars.
// When pushing the 'view' button the light intensity is stored in Brightness_mars.
// Next the sensor is placed above a lake, when pushing the 'view' button the
// light intensity is stored in Brightness_lake. Last the light sensor is placed above
// the edge of mars (a meter above the floor), when pushing the 'view' button the
// light intensity is stored in Brightness_edge.
// The stored value's are also "printed" on the LCD screen once the button has
// been pushed.
Geen opmerkingen:
Een reactie posten