aidanjohnson / dt7816

Acoustic Array for Tracking Coordinated Flight of Foraging Bats
GNU General Public License v3.0
0 stars 0 forks source link

Multi-channel simultaneous recording #7

Closed leewujung closed 6 years ago

leewujung commented 6 years ago
aidanjohnson commented 6 years ago

For help on the multi-channel mask: bitwise shifts

aidanjohnson commented 6 years ago

UPDATE (2018-07-03): the method described above (^) has been implemented for the channel mask.

aidanjohnson commented 6 years ago

@funnyabc and I were discussing activating sampling for sunrise and sunset. We were exploring two ideas:

  1. Light detecting sensor.
  2. Calculated times, or even a lookup table of time calculated by the Navy.

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.

leewujung commented 6 years ago

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?

aidanjohnson commented 6 years ago

I like the idea of working on them in parallel.

aidanjohnson commented 6 years ago

Efforts related to testing and the requirements transferred to #11