This is a photoresistor module or Light Dependant Resistor (LDR); light falling on the sensor decreases its resistance. Typically this module outputs 5V when it receives no light and 0V when exposed to bright light. A signal amplifier inside the module will properly process data coming from the Light Dependent Resistor.
Features
Once connected to the TinkerKit shield, you can expect to read a value ranging from 0 to 1023 coming from the photoresistor. As any other TinkerKit module, you can connect it using the 3 pin cable (20 cm, 50 cm, 100 cm).
As many other TinkerKit modules, it is equiped with the standard pair of LEDs. The green LED will indicate that the board is properly powered. The yellow LED will change according to signal intensity, in that case to the amount of lightness.
This module is a sensor: the connector is an output which must be connected to one of the input connectors on the TinkerKit Shield.
Programming the LDR sensor
If you connect your LDR module to the TinkerKit Sensor Shield I0 input and a TinkerKit LED on output O0, this simple program will light the output LED depending on light detected around LDR module:
#include <TinkerKit.h>
TKLightSensor ldr(I0);
TKLed led(O0);
int brightnessValue = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
brightnessValue = ldr.get();
led.brightness(brightnessValue);
Serial.print("brightness = " );
Serial.println(brightnessValue);
delay(10);
}
Part List
- 1x Tinkerkit module
TinkerKit LDR Sensor Module
- TinkerKit
- TinkerKit LDR (Light Dependant Resistor) Sensor Module
- --
- Availability: 1 (Canada)
- $ US6.25 $ US4.25 USD 200.00 Left For Free Shipping
Related Products
TinkerKit Thermistor Module
The Thermistor module's resistance varies significantly (more than a standard resistors) with temper..
$ US3.95 $ US6.25
LDR Light Dependent Resistor
This is a light dependent resistor (LDR). Its resistance change according to ambient light. It is al..
$ US1.40
Tags: tinkerkit