BH1750 Digital Light intensity Sensor Module (GY-302) [S085]

 

 

https://www.youtube.com/watch?v=oekWwsUYKuE


*GitHub https://github.com/rdiot/rdiot-s085.git

* Specs
Model: GY-302
Chip: BH1750FVI
Power supply :3-5V
Data output range resembles luminance from 0-65535 lux
I2C Interface
No external parts required
Dimensions: 13.9mm X 18.5mm

 

* Contents
- DataSheet : http://rohmfs.rohm.com/en/products/databook/datasheet/ic/sensor/light/bh1750fvi-e.pdf
- Library : https://github.com/claws/BH1750

- Connect
VCC ----- 5V(3.3V)
GND ----- GND
SCL ----- A5
SDA ----- A4
ADD ------ X

- Key Code
#include <BH1750.h>
BH1750 lightMeter;
lightMeter.begin();
uint16_t lux = lightMeter.readLightLevel();
lcd.print("Light=" + (String)lux + " lx   ");

Posted by RDIoT
|

Photo Resistor Module (KY-018) [S002]


 

https://www.youtube.com/watch?v=EKLfcRSVAVc


*GitHubhttps://github.com/rdiot/rdiot-s002.git

 

* Specs
Photoresistors are semiconductor photosensitive devices,
in addition to having high sensitivity, fast response, consistent with the spectral characteristics and value of good features, but at a high temperature, and humidity in harsh environments, but also to maintain
a high degree of stability and reliability, wide pan used cameras, solar garden lights, lawn, detectors, clock, music, cups, gift boxes, mini-Night light, light voice switches, lights automatically switch toys and a variety of light control, light control lighting, lamps and other light automatic opening OFF control field


* Contents
- Connect
S - A1
middle - 5V
- GND

 

- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
 
LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004
 
int sensorPin1 = A0;
int sensorPin2 = A1; //S002
 
void setup()
{
  lcd.init();  // initialize the lcd
  lcd.backlight();
  lcd.print("start LCD2004");
}
 
void loop()
{
  int rate1 = analogRead(sensorPin1);
  int rate2 = analogRead(sensorPin2);

  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("[1]CDS05MM=" + (String)rate1);
  lcd.setCursor(0,1);
  lcd.print("[2]KY-018=" + (String)rate2);
 
  delay(200);
}

Posted by RDIoT
|

Mini Photocell (FIT0180) [S001]

 

 

https://www.youtube.com/watch?v=LAcLVWYBJbY


*GitHubhttps://github.com/rdiot/rdiot-s001.git

 


* Specs
Head Diameter:              5mm
Voltage:                    5V 
Power Consumption:          70mW
Operating Temperature:      -25~+85
Storage Temperature:        -40~+100
Soldering Temperature:      260(<3s)

 

* Contents
- Connect
Short ----- 5V
Long  ----- P10K ----- GND

 

- Key Code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

 

int sensorPin = A0;

 

void setup()
{
  lcd.init();  // initialize the lcd
  lcd.backlight();
  lcd.print("start LCD2004");
}

 

void loop()
{
  int rate = analogRead(sensorPin);

  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("S001:FIT0180");
  lcd.setCursor(0,1);
  lcd.print("CDS Value=" + (String)rate);
 
  delay(200);
}

Posted by RDIoT
|