| Electronic Components Datasheet Search |
|
DFR0654 Datasheet(PDF) 47 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0654 Datasheet(HTML) 47 Page - DFROBOT |
|
47 / 122 page ![]() 2023/10/12 11:00 FireBeetle_Board_ESP32_E_SKU_DFR0654-DFRobot https://wiki.dfrobot.com/FireBeetle_Board_ESP32_E_SKU_DFR0654 47/122 Result: When the program is uploaded, open serial monitor and you can see that the UV sensor is constantly collecting the current light intensity value. #include "DFRobot_LTR390UV.h" DFRobot_LTR390UV ltr390(/*addr = */LTR390UV_DEVICE_ADDR, /*pWire = */&Wire); void setup() { Serial.begin(115200); while(ltr390.begin() != 0){ Serial.println(" Sensor initialize failed!!"); delay(1000); } Serial.println(" Sensor initialize success!!"); ltr390.setALSOrUVSMeasRate(ltr390.e18bit,ltr390.e100ms);//18-bit data, sampling rate 100ms ltr390.setALSOrUVSGain(ltr390.eGain3);//3x Gain ltr390.setMode(ltr390.eALSMode);//Set ambient light mode } void loop() { float als = 0; als = ltr390.readALSTransformData();//Read the converted data of ambient light, can only be used in ambient light mode Serial.print("ALS:"); Serial.print(als); Serial.println("Lux"); delay(1000); } |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |