BZJVJR_TEMT6000
New product
0 Item Items
This product is no longer in stock
Warning: Last items in stock!
Availability date:
Basic breakout board for the TEMT6000 Ambient Light Sensor. Only what you need, nothing you don't. Sensor acts like a transistor - the greater the incoming light, the higher the analog voltage on the signal pin.
For this example you'll need:
1 x TEMT6000 Ambient Light Sensor | Reference: BZJVJR_TEMT6000
1 x Development board UNO R3 Arduino compatible | Reference: TXVMOK_DB-UNO-R3
wires for electrical connections
#define LIGHT_SENSOR A0 // define input pin
void setup() {
Serial.begin(9600);
}
void loop() {
int Lvalue = analogRead(LIGHT_SENSOR);// read the light
int mVolt = map(Lvalue,0, 1023, 0, 5000);// map analogue reading to 5000mV
int percent = map(Lvalue,0, 1023, 0, 100);// map analogue reading to 100%
float volt =(double)mVolt/1000;// convert millivolt to volt
Serial.print(mVolt);// print millivolt
Serial.print( "mV ...... ");
Serial.print(volt,3);// print volts with 3 decimal places
Serial.print( "V ...... ");
Serial.print(percent);// print percentage
Serial.println( "%");
delay(1000);// wait for 1000 milliseconds
}
The signal on A0 pin is transformed into values in Serial Monitor relatively to 5V from VCC.
1 x Ambient light sensor module TEMT6000
1 x 3 Pin male header
No customer reviews for the moment.
15,33 lei
10,44 lei
19,60 lei
16,07 lei
16,92 lei
57,83 lei
14,46 lei
60,29 lei
35,23 lei
55,33 lei 83,00 lei
49,16 lei
107,10 lei
31,92 lei 42,63 lei
3,00 lei 4,50 lei
20,24 lei
0,96 lei
7,52 lei
8,35 lei
8,68 lei
10,25 lei
0,43 lei 0,64 lei
1,61 lei
390,92 lei 428,40 lei
11,86 lei 14,61 lei
10,14 lei 20,85 lei
16,07 lei
4,42 lei 8,47 lei
2,57 lei 3,86 lei
3,21 lei 4,82 lei
44,66 lei 66,99 lei