Closed digitaltrails closed 1 year ago
OK, in case anyone is interested in this issue, I've added the following to vdu_controls...
Integrating Presets to lux metering - one possible approach:
OK, third approach to connecting presets to lux metering:
This seems to work quite well and I will proceed with completing/testing this approach. Working code has been pushed to v1.10 - it appears to be quite stable, but might error on exception cases, such as if a participating preset is altered or deleted:
Implemented in version 1.10
A simple light meter can be build using an Arduino and a GY30/BH1750 sensor. [Removed reference to dead link]
This raises some possibilities for vdu_controls to initiate transitions depending on metered light levels.
Today I built a meter using an Arduino Nano - image of wiring:
A simple Sketch using Christopher Laws' BH1750 library can be uploaded to the Arduino to retrieve a feed of Lux values:
The feed of Lux values can be read from the USB tty on a Linux host. This feed can be used to trigger presets by issuing Linux signals (an existing capability of vdu_controls):
The above works and triggers presets according to the specified levels.
The issue is, how best to integrate this:
Parking all of the above, pending time to properly investigate it.