sharkduino / Arduino_Animal_Tag

The main code that runs on the Sharkduinos
0 stars 0 forks source link

Add frequency changing to configuration sketch #6

Closed WLaney closed 7 years ago

WLaney commented 8 years ago

Make it so the frequency of sampling is easy to adjust. Don't worry about under sampling, just throw away the extra data. It's fine

TheBen27 commented 7 years ago

Decided to add the frequency-changing feature to the configuration sketch.

If the tag is eventually sealed off, we can't use a configuration file, so there's no reason to invest too much time in that. Later, we can put the configuration sketch into the main sketch and facilitate communication through Bluetooth (or USART) while it's charging

TheBen27 commented 7 years ago

Tested configurable sample rate. The sample rate is about 7ms off consistently, but it was in the original sketch. I added three sample rates: 12.5, 25, and 50Hz. All 3 seem to work, so this issue is closed.