BZJVJR_TEMT6000
New product
44 Item Items
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.
43,38 lei
0,57 lei -20% 0,71 lei
124,20 lei
3,21 lei 4,82 lei
103,35 lei
99,76 lei
4,28 lei
18,30 lei 25,37 lei
115,52 lei
14,46 lei
31,81 lei
93,98 lei
39,04 lei
48,44 lei
15,33 lei
1,71 lei
102,51 lei
6,27 lei
4,98 lei
0,43 lei
103,35 lei
330,72 lei
585,78 lei 644,69 lei
170,99 lei 197,76 lei
54,82 lei 71,96 lei
82,73 lei 136,28 lei
552,15 lei 600,35 lei
608,65 lei 683,62 lei
717,07 lei 797,40 lei
871,10 lei