Difference between revisions of "LinkNode Light Sensor Module"
(Created page with "== Introduction == This module for the TEMT6000 Light Sensor, Sensor acts like a transistor - the greater the incoming light, the higher the analog voltage on the signal pin....") |
(No difference)
|
Latest revision as of 02:21, 13 December 2016
Introduction
This module for the TEMT6000 Light Sensor, Sensor acts like a transistor - the greater the incoming light, the higher the analog voltage on the signal pin. At some point you are going to want to sense ambient brightness with better precision than your trusty photoresistor without adding complexity to your project. When that day comes, You will need a TEMT6000 ambient light sensor.
Wiring & Running
The Sensor module is connected to the base shield J9:
Sensor Signal --> LinkNode D1 ADC0
Open the Arduino IDE serial monitor ( BAUD 9600 ) , you can see the sensor value
Simple Code
int temt6000Pin = 0; void setup() { Serial.begin(9600); } void loop() { int value = analogRead(temt6000Pin); Serial.print("Sensor Value: "); Serial.println(value); delay(300); //only here to slow down the output so it is easier to read }