LinkNode Light Sensor Module

From LinkSprite Playgound
Revision as of 02:21, 13 December 2016 by Alvin (talk | contribs) (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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Light Sensor D1 1.jpg

Light Sensor D1 5.jpg

Light Sensor D1 2.jpg

Light Sensor D1 4.jpg

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

Light Sensor D1.png

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
}

Datasheet

TEMT6000.pdf