ATMega328P - LoRa Node - Time Sync Issue

Your tenacity is remarkable but flies in the face of any of the advice being given.

The formula will have to be run each time you sleep and as you are sleeping for long periods before the drone’s next visit, it will have to be run a reasonably regular intervals as the temperature changes, which also has an impact on the battery voltage as well.

And then using the main clock which will vary based on temperature & battery voltage (which varies on temperature) to measure the WDT looks like it’s about to enter a circular loop.

All on a device that has next to no RAM left to run after LMIC is implemented and can result in issues if you use too much of what’s left over for it’s actual activities.

Using a more recent ATmega that can support a 32KHz crystal for a RTC (in this case, a Real Time Counter, there isn’t an internal Real Time Clock in the time & calendar sense on ATmega) would give you more RAM, more flash, chug along nicely with its internal main clock and be reasonably accurate with it’s sleep timer.

And if you don’t use LoRaWAN, you can get the drone to broadcast a time signal so each day the devices can re-calibrate their sense of time.

On the plus side, this has given me some ideas for some other ways to tackle some technical problems I’ve seen of late, so :+1:

Strange, two days ago you seem surprised that the Watchdog timer was unstable\inaccurate, despite this being common knowledge. Now you have a ‘solution’.

The formula isn’t even from a data sheet.

Hands up all those that know what a 2nd degree polynomial is and how to generate one so they can validate someone else’s test data …

If it was not sarcastic, put the data in excel sheet and do a curve fitting. It would give an approximate polynomial equation to any degree. The higher degree you choose, the better accuracy.

Nerveless it’s still absurdly meaningless, since it depends on factors that aren’t sufficiently knowable.

This whole thread has been a fundamentally insane divergence from any rational engineering design.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.