Forum Replies Created
-
AuthorPosts
-
James,
Did you ever resolve this? I’m having the same issue.
Thanks!
This is from the person that designed the shield, “The shield requires 5V which you can only get via the switched regulator. I wrote a basic little function to turn off the switched regulator but, because of the way they wrote the mayfly code, there is no place to put the function call before the code puts the processor to sleep.
We can try something else though. In the code for the sensor constructor, each of the sensors has an optional pin you can assign as the power pin for that sensor. When it’s time to collect data, the mayfly code turns on the sensor, takes a reading, and then powers it off. Currently the EZO circuits are set to be left powered on but placed into a low power mode. The switched regulator is still turned on, though, slowly draining the power.
I updated the code to set all of the sensors’ power pins to the switched regulator enable pin. This should turn off the switched regulator after the readings have been made.”
If you have any advice on where to put the function call or if this sounds like a good solution is much appreciated. The code has been updated in the GitHub repo. Thank you both.
We have two versions of custom shields that the sensors are connected to that electrically isolate the circuits. The first shield connects to the power, ground, and I2C SDA and SCL pins on the Mayfly. The second shield connects to the switched power, ground, and I2C SDA and SCL pins.
I found that on the board that uses our first version of the shield, which is what I have out in the field, the “Power” LED was staying on so I was able to switch that off with the LED Control. I’ll replace the battery and see how it does now.
The second version of our shield keeps the “Switched Power Out” LED on at all times.
Do you think these LEDs would cause that much of a power draw overnight, or could it be the shields? I don’t have documentation for the shields at the moment.
Sorry about that, I just made the repo public if you have time to look at the sketch. We are using the EnviroDIY SIM7080G LTE Bee and a v1.0 board.
I appreciate your insight and help!
Hi Shannon,
We’re working with Atlas Scientific sensors. Our final set up will include three sensors – pH/temperature, dissolved oxygen, and conductivity.
I was able to add it without issue. Thanks so much, @heather and @srgdamiano!
Thanks for your help, Shannon! I appreciate it.
Fiona
-
AuthorPosts