Home › Forums › Mayfly Data Logger › Testing power consumption › Reply To: Testing power consumption
I *think* my Mayfly is sleeping: All LEDs switch off, if that means anything. If I connect to USB for serial output (all other testing has been lipo-powered, with no USB connection) and turn on debugging in LoggerBase.h, the traces indicate that it sleeps at the end of sampling:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
14:22:00.408 > ... zzzZZ Processor is now awake! <--LoggerBase 14:22:00.408 > Current Unix Timestamp: 1615900920 -> 2021-03-16T13:22:00-07:00 <--LoggerBase 14:22:00.408 > Logging interval in seconds: 120 <--LoggerBase 14:22:00.408 > Mod of Logging Interval: 0 <--LoggerBase 14:22:00.408 > Time marked at (unix): 1615900920 <--LoggerBase 14:22:00.408 > Time to log! <--LoggerBase 14:22:00.408 > ------------------------------------------ 14:22:00.408 > Running a complete sensor update... <--LoggerBase 14:22:11.536 > Successfully connected to SD Card with card/slave select on pin 12 <--LoggerBase 14:22:11.564 > Opened existing file: TU_Boise_turbidity_2021-03-16.csv <--LoggerBase 14:22:11.586 > 14:22:11.587 > \/---- Line Saved to SD Card ----\/ 14:22:11.587 > 2021-03-16 13:22:00,9.40396,0.0328,4.882,22.75,-57,90 14:22:11.587 > 14:22:11.587 > 14:22:11.618 > Waking up Digi XBee3 Cellular LTE-M ... <--LoggerBase 14:22:12.834 > Connecting to the Internet... <--LoggerBase 14:22:19.356 > Sending out remote data. <--LoggerBase 14:22:19.357 > 14:22:19.357 > Sending data to [ 0 ] data.envirodiy.org 14:22:20.380 > POST /api/data-stream/ HTTP/1.1 14:22:20.440 > Host: data.envirodiy.org 14:22:20.440 > TOKEN: cd004b10-01a5-4e77-83cb-6ebefdf3e379 14:22:20.440 > Content-Length: 367 14:22:20.440 > Content-Type: application/json 14:22:20.440 > 14:22:20.440 > {"sampling_feature":"5f73afcf-22e8-496a-a4dd-4ebf70bb81af","timestamp":"2021-03-16T13:22:00-07:00","2669cd98-28d1-4b26-8c19-90acf32dedcf":9.40396,"b5720e79-47c6-435a-a88d-d11b650c570d":0.0328,"6e63a9f8-b8e6-44c8-a1ed-63d074a0c7da":4.882,"c635d2db-1509-4e9d-a248-ca66f3aeb11a":22.75,"293fdffc-558d-450c-9c79-4021e56bf7cc":-57,"dd123f56-6009-42a0-b90b-a1b5f2862208":90} 14:22:20.440 > 14:22:22.973 > -- Response Code -- 14:22:22.974 > 201 14:22:22.974 > Updating modem metadata... <--LoggerBase 14:22:34.663 > Disconnecting from the Internet... <--LoggerBase 14:22:35.349 > ------------------------------------------ 14:22:35.350 > 14:22:35.350 > Setting alarm on DS3231 RTC for every minute. <--LoggerBase 14:22:35.350 > Putting processor to sleep. ZZzzz... <--LoggerBase |
On the external ADC: Yes, I used it to accommodate the 5v max from the Turner. I was thinking that this would be more accurate than using a 2/3 voltage divider to drop 5V to ~3.3V. But it sounds like you’re suggesting a 1/1 divider that would simply halve the output voltage, which you would then double in code. FYI, I’m using differential signaling to sense the Turner’s output, to hopefully make it less susceptible to noise.
@neilh10 Note that the Turner is powered by switched 3V3 from the D10-11 Grove connector, so it should be getting powered off during sleep. Also, since the ADC is powered by 5V, the Turner’s 0-5V outputs will be within Vdd+0.3V.
-Matt