Light Sensor

Learn about Sparki's Light Sensor

SparkiDuino
Easy

Lessons You Should Know

Sparki has three light sensors that detect the level of light that hits them: Top - Light Sensor

How It Works

These sensors are phototranistors that are connected to Sparki so that the more light that hits them, the higher the voltage they send to Sparki.

Using the Part

With the basic Sparki code in place, you can measure the light sensor using this command: This command returns the amount of light in terms of an integer. The more light, the higher the number. Each sensor is slightly different, so the same amount of light may not mean the same number for each sensor. SparkiDuino already has code examples for you to use: File->Examples->Light