M2M Demo – Lesson #7 : Light Intensity Sensing
This eighth tutorial will provide you with a way to easily sense changes in the lighting of your surroundings. You will measure the voltage changes resulting from the intensity of exposure to light of a photoresistor on an analog input pin of your ADK board. The resulting converted digital value will be sent to the Android device to adjust the screen brightness of the Android device according to the surrounding light conditions. Most Android devices have such a sensor already built in to do exactly that, but this project should help you to understand how your device operates and how you can influence its light settings yourself.
You will find :
– Arduino sketch
– Android code
– Documentation including : List of electronic components, Circuit diagram , Arduino sketch, Android main class script, and a photo of the result.
You can enhance the code or create new one 🙂
As usual all code is documented.