Arduino Yun as datalogger - how to manage sampling rate?


#1

Hi everyone,

In the past I prepare and use an arduino Yun to record data coming from sensors and store it into the sd card, then upload the data files on ftp server. Now I would implement a graph and alarm using a cayenne dashboard. The problem is that the sensors are not always powered up, but to reduce the consumption I turn on the power only during the acquisition an then turn it off since the new acquisition (acquisition frequency every 2 or 3 hours).
It’s possible to send the data to the dashboard (for example using virtual chanel) only when the power is on ?
Thank you
Cristiano


#2

Hi @russo.spc,

Yes!

@adam has had success with this in his battery powered ESP projects.

Check out his code to see how you might implement this in the Yun.

Cheers,

Craig