Main pinout
Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show signal routes
Unit Light provides a raw analog reading and an adjustable digital threshold output on PORT.B.
Pin index
Quickly scan every header pin, port name, supported function and usage note.
| Pin | MCU pin | Types | Notes |
|---|---|---|---|
| GND | Common ground and host signal reference. | |
| Power | Nominal 5 V supply input. | |
| Digital | Threshold output to a host digital input. | |
| Analog | Photoresistor divider voltage for a host ADC. |
References
Manufacturer references and technical documentation.
| Chip | Role | Manufacturer | Notes | Link |
|---|---|---|---|---|
U021 | Product documentation | M5Stack | Photos, PORT.B cable colors and dimensioned drawing. | Datasheet |
UNIT_LIGHTNESS V1.0 | Schematic | M5Stack | J1 numbering, the sensor divider, comparator and 3.3 V rail. | Datasheet |
LM393DR2G | Comparator datasheet | onsemi | Input range and open-collector output. | Datasheet |
Unit Light | Enclosure STL | M5Stack | Case outline and connector location. | Datasheet |
Unit Light | Arduino tutorial | M5Stack | Example with analog input on GPIO36 and digital input on GPIO26 on Basic V2.7. | Datasheet |