Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: MayFly Capability with Northern Widget Walrus Sensor

Home Forums Environmental Sensors MayFly Capability with Northern Widget Walrus Sensor Reply To: MayFly Capability with Northern Widget Walrus Sensor

#14763
Sara Damiano
Moderator

    That’s the firmware I’ve been looking at.

    You know what, I don’t think this firmware even functional.  It won’t ever take a sample.  Well, it should sample 1 time at the beginning, and then never again.  Ugh.  I wasted a lot of time parsing the I2C bits of the firmware and writing code for you and didn’t ever question that that sampling part of the firmware worked.  I’m pretty sure it doesn’t.

    I created an issue on GitHub for them:  https://github.com/NorthernWidget-Skunkworks/Project-Walrus/issues/14.  Basically, every 100ms the firmware sets a timeout value and then immediately after setting the value, checks if the same value is more than 5 seconds old.  But, obviously, since it just set that value, the value will never be more than a few ticks old and the “start sampling” flag will never, ever be set to true.

    So.. yeah, you need them to write and give you new firmware.  And, then you need to figure out how to write said firmware onto your sensor.  They have instructions on how to do that here:  https://github.com/NorthernWidget-Skunkworks/Project-Walrus#upload-the-firmware, but you need an ISP of some sort.  I don’t even have one of those.

    It’s still not clear to me why it’s not sampling exactly one time when first booted up, but I don’t think it’s worth anyone spending any more time with it until you’ve been given new firmware and a way to program it.