-
Matt Barney replied to the topic Testing power consumption in the forum Mayfly Data Logger 3 years, 8 months ago
@shicks The previous thread about I2C power that I’m aware of was when I learned that the jumper on the I2C grove port needs to remain in the constantly-powered position, otherwise the Wire library crashes, at least with certain sensors, including the Turner.
I *think* my Mayfly is sleeping: All LEDs switch off, if that means anything. If I…[Read more]
-
Matt Barney replied to the topic Testing power consumption in the forum Mayfly Data Logger 3 years, 8 months ago
@shicks Thanks for those details. I wonder whether it could be the turbidity sensor, rather than the Mayfly, that’s actually drawing power, but I wouldn’t have thought it could do that while (or if) the Mayfly is sleeping. A bit more about my circuit:
I’m powering the Turner from Mayfly’s switched 3V3. The Turner’s analog output is 0-5V, which…[Read more]
-
Matt Barney started the topic Testing power consumption in the forum Mayfly Data Logger 3 years, 8 months ago
Hi all,
I’ve been doing some testing to measure the amount of power consumed by my Mayfly during various modes, and thought I’d share my results here. I’m interested in any and all feedback from the community.
I’m using the SparkFun coulomb counter that I’ve plugged into a spare Mayfly, which reports via USB to my laptop. Its set up to sample the…[Read more] -
Matt Barney replied to the topic Mayfly low battery voltage readings in the forum Mayfly Data Logger 3 years, 8 months ago
Hi Neil,
I’m powering the Turner Turbidity Plus via the Mayfly’s 3.3V, and its average current draw during wiper cycles is 109mA.
Thanks for sharing your wingboard. As far as wiring, I have some of the EnviroDIY protoshields that I plan to use. I’m interested in how, physically, you connected the Vbat to your ADC for measurement. Are you using…[Read more]
-
Matt Barney replied to the topic Mayfly low battery voltage readings in the forum Mayfly Data Logger 3 years, 8 months ago
Aha – I think that must be it. I retested with a new Mayfly, and its reported voltage agrees with my multimeter within 0.1V. The old Mayfly (s/n is either 180080 or 190080) was probably purchased in 2018, and has been my desktop tester, almost always under USB power, so didn’t detect any problems until now.
Thanks @shicks!!
Matt
-
Matt Barney started the topic Mayfly low battery voltage readings in the forum Mayfly Data Logger 3 years, 8 months ago
I believe that the Mayfly is reporting a battery voltage that’s erroneously low. I have a 4400mAh lipo that measures 4.16V fully charged, and I’m connecting it to the Mayfly on my desk and running a program with a 3-minute sampling interval. During the measurement cycle (including LTE modem operation), the lowest reading seen on my multimeter is…[Read more]
-
Matt Barney replied to the topic PlatformIO error with MS 0.28.01 in the forum Mayfly Data Logger 3 years, 8 months ago
Hi Nancy,
I don’t use the Arduino IDE, but as a workaround, I’d try downloading a previous version of ModularSensors. Delete ModularSensors from your Arduino libraries folder, and grab a zip of the previous version, 0.27.8 from the Releases page on github and install it instead.
-Matt
-
Matt Barney replied to the topic PlatformIO error with MS 0.28.01 in the forum Mayfly Data Logger 3 years, 8 months ago
Confirmed via the PIO forum: https://community.platformio.org/t/valueerror-invalid-simple-block-0-28-01/19759
-
Matt Barney replied to the topic PlatformIO error with MS 0.28.01 in the forum Mayfly Data Logger 3 years, 8 months ago
I suspected that was it! Confirmed that the .1 works for me as well.
I don’t believe 0.28.01 is valid, per semver.org: “Numeric identifiers MUST NOT include leading zeroes.”
Interestingly, sometimes PIO will fail silently when I use 0.28.01 via lib_deps (no error message), but it doesn’t install the lib dependencies at all. When I change it to…[Read more]
-
Matt Barney started the topic PlatformIO error with MS 0.28.01 in the forum Mayfly Data Logger 3 years, 8 months ago
When adding ModSensors 0.28.01 to a new project, I get the error: ValueError: Invalid simple block ‘^0.28.01’. I’ve included the full error text in the attached file. I’m getting this on multiple PCs, and other versions of MS do not give me this error.
I suspect this is a PlatformIO problem, but I’m posting here to see if others have seen it or…[Read more]
-
Matt Barney replied to the topic Case for Lower Threshold Voltage on Mayfly Stations in the forum Mayfly Data Logger 3 years, 8 months ago
Thanks Jim. Ohm’s law – copy that! 🙂
The coulomb counter I’m using is from Sparkfun. It pulses one of its pins low each time that 0.614 coulombs of charge have passed through its sense resistor. Very easy to use.
Regarding the decreasing current: Is it possible that the battery’s internal resistance is increasing as it discharges, and this…[Read more]
-
Matt Barney replied to the topic Case for Lower Threshold Voltage on Mayfly Stations in the forum Mayfly Data Logger 3 years, 8 months ago
Hi Jim,
Thanks for sharing your findings; this is interesting and useful for me. I’ve been thinking about battery capacity and power consumption issues recently and have used a coulomb counter to measure the charge consumed by a Mayfly/sensor test configuration. I hope to share my findings soon. One question on my mind is: how many amp-hours can…[Read more]
-
Matt Barney replied to the topic I2C and power management in the forum Mayfly Data Logger 3 years, 9 months ago
Ah, got it! That makes total sense to me know. Thanks @shicks !
Matt
-
Matt Barney replied to the topic I2C and power management in the forum Mayfly Data Logger 3 years, 9 months ago
Hi Neil,
Thanks for sharing your experience. It’s unclear to me the intent of the Switched 3V3 jumper on the Mayfly I2C port; it appears that it cannot be used in the Switched position with peripherals that pull up the I2C lines (which most seem to do) because the Wire library locks up.
I’m also doing some testing with power consumption and hope…[Read more]
-
Matt Barney started the topic Documentation fix: Getting Started page in the forum Mayfly Data Logger 3 years, 9 months ago
On this page:Â https://envirodiy.github.io/ModularSensors/page_getting_started.html
there is an error in the section Setting the Clock. This text:
src_dir = .piolibdeps/EnviroDIY_DS3231_ID2079/examples/PCsync
should be replaced with this text:
src_dir = .pio/libdeps/mayfly/EnviroDIY_DS3231/examples/PCsync
Thanks!
Matt
should be replaced by this…[Read more]
-
Matt Barney started the topic I2C and power management in the forum Mayfly Data Logger 3 years, 9 months ago
If I understand correctly, you cannot set the Mayfly’s I2C Grove port jumper to “switched 3V3” if you’re using it to communicate with a connected I2C device. According to the datasheets and other documentation I’ve read, most (all?) I2C devices have pullup resistors on their SDA and SCL lines, which these two posts suggest that having the Mayfly…[Read more]
-
Matt Barney replied to the topic Announcement: New ModularSensors release v0.28.01 in the forum Environmental Sensors 3 years, 9 months ago
Thanks @srgdamiano — and thanks so much for announcing the release here on the forum and sharing links to the release notes on GitHub!
Until somewhat recently, I didn’t fully grasp the connection between a ModularSensors GitHub release number and the version number in the PlatformIO library registry. To clarify for others who may be new to these…[Read more]
-
Matt Barney posted a new activity comment 3 years, 9 months ago
Excellent writeup, David. Thank you for sharing it!
-Matt -
Matt Barney replied to the topic Printing floats with MS_DBG() in the forum Mayfly Data Logger 3 years, 9 months ago
Ah, perfect – thanks Sara!
-
Matt Barney started the topic Printing floats with MS_DBG() in the forum Mayfly Data Logger 3 years, 9 months ago
How can I specify floating-point precision when using MS_DBG()? For example:
float myFloat = 0.0001875; MS_DBG(myFloat);
prints:
0.00
- Load More