# Pocket RGB Meter

A pocket screen for light balance, colour and room measurements.

用口袋小屏查看光线、色彩平衡与环境读数。

- id: elutsk-rgbmeter
- author: elutsk
- repository: https://github.com/elutsk/RGBmeter
- license: MIT
- shape: square
- scenes: tools
- boards: ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/elutsk-rgbmeter/
- html_zh: https://esp32gallery.com/zh/projects/elutsk-rgbmeter/
- json: https://esp32gallery.com/data/catalog/projects/elutsk-rgbmeter.json

## Hardware

ESP32-S3 with a small colour display and sensor modules. Readings in the screenshots are upstream examples.

## English

```
A light meter for comparing sources rather than for absolute numbers. A Vishay VEML6040 on I2C reads white, red, green and blue as raw 16-bit counts, five times a second, and a 128x64 SSD1306 shows them; button 2 stores the current reading as a reference, after which each channel is shown as a signed difference such as W -44 or G +11. A Bosch BME68x adds temperature, humidity and pressure on a second screen. The values are raw sensor counts, not calibrated photometric units: the filters do not follow the CIE curves, so the readings suit relative work only. It is written in C++14 on ESP-IDF 5.5, with the application split from drivers by small interfaces. On an ESP32-S3 Super Mini with a Li-ion cell it runs from battery, flashes the RGB LED every 10 seconds, and sleeps after 10 minutes idle. The reference is RAM-only and is lost on deep sleep.
```

## 中文

```
一台用来互相比对的测光表，而不是读绝对数值的仪器。Vishay VEML6040 挂在 I2C 上，每秒五次读出白、红、绿、蓝四路的 16 位原始计数，128x64 的 SSD1306 显示出来；按一下 2 号键把当前读数存成基准，之后每个通道显示带符号的差值，比如 W -44、G +11。Bosch BME68x 在另一屏给出温度、湿度和气压。读数只是传感器原始计数，不是标定过的光度或色度值，滤光片并不贴合 CIE 曲线，所以只适合同类光源互比或看同一光源随时间的变化。代码是 ESP-IDF 5.5 上的 C++14，应用层通过几个小接口和驱动解耦。装在 ESP32-S3 Super Mini 上、接锂电时可以电池供电，RGB 灯每 10 秒闪一下，闲置 10 分钟自动休眠；基准只存在内存里，进深睡就没了。
```
