Closed leewujung closed 6 years ago
For help on the multi-channel mask: bitwise shifts
UPDATE (2018-07-03): the method described above (^) has been implemented for the channel mask.
@funnyabc and I were discussing activating sampling for sunrise and sunset. We were exploring two ideas:
If we go with this idea the design will have to be low power, reliable, and offline. For 1. the sensor (either a photo, UV, or IR-sensor) would be connected to the board via the GPIO pins. @funnyabc was willing to write the driver and program for deciding if it is sunrise or sunset. This will require calibration for the deployment site. He was also thinking a moving window average would serve as the measured intensity value to compare to a calibrated threshold. He found these sensors: Adafruit and UUGear.
For 2. this would be a more simple implementation. This database from the Navy would be useful. It has an API so we can construct our own table such that it has a format to our liking. Since the local time can now be saved to the hardware clock, the board can wait until sunset occurs for a given day and then turn off the next day at sunrise.
We were unsure which would be more energy efficient and easier to implement.
Let's go with option 2 because it is straightforward and does not require additional calibration. It's a good idea to start recording ahead of sunset (depending on how you define it) since we don't want to miss the emergence. Many factors can affect light levels and it gets messy.
It is a good idea to have light sensors though for environmental monitoring so @funnyabc let's make a note of that in the project board.
Also this is actually #11. Do you guys want to do this (#7) and #11 in parallel?
I like the idea of working on them in parallel.
Efforts related to testing and the requirements transferred to #11