Arduino Esplora Light Calibrator

This sketch shows you how to read and calibrate the Esplora's light sensor. Because light levels vary from one location to another, you need to calibrate the sensor for each location. To do this, you read the sensor for a few seconds, and save the highest and lowest readings as maximum and minimum. You'll use the sensor's reading to set the brightness of the LED by mapping the values to a smaller range, usi ...

Read more
Scroll to top