M5Stack Mini Photosensitive Module Light Sensor Switch with Photoresistance Grove Port Compatible with M5GO/FIRE ESP32 IoT Kit


R110.00

Description:

LIGHT is a light inten sity sensor unit with an adjustable photoresistor

A photoresistor is a light-controlled variable resistor. The resistance of a photoresistor decreases with increasing incident light inten sity, and vice versa. It exhibits photoconductivity which make it possiable to detect the varies based on Voltage, and use a AD to convert the digital data.

We add some extra work to strengthen the circult, a Dual Differential Comparators LM393, compares the differntial voltage between the photoresistor and the varistor. It could offer larger and accuracy ran ge of light inten sity.

Product Features:

  • 10K adjustable resistor
  • Software Development Platform: Arduino, UIFlow(Blocky,Python)
  • Two Le go-compatible holes
  • Product Size: 32.2mm x 24.2mm x 8.5mm
  • Product weight: 8.8g

Package Included:

  • 1x LIGHT Unit
  • 1x Grove Cable

Related Link:

  • Offical Video

  • Forum

EasyLoader

1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader.

2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click “Burn” to start burning.

      3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial

Example

1. for Arduino IDE

The code below is incomplete. To complete code, please click here.

#include <M5Stack.h>// declarationuint16_t analogRead_value = 0;uint16_t digitalRead_value = 0;// initializationM5.begin();dacWrite(25, 0);// disable the speak noisepinMode(26, INPUT);// LIGHT Pin setting// read dataanalogRead_value = analogRead(36);// read analog value of LIGHTdigitalRead_value = digitalRead(26);

2. UIFlow

To get complete code, please click here.

Schematic:

PinMap:

M5Core(GROVE B) GPIO36 GPIO26 5V GND
LIGHT Unit AnalogSignal Pin DigitalSignal Pinn 5V GND



SKU: s1-1496748 Category: