| kotor2knight | Posted: 5 Nov 2025, 01:22 AM |
|---|---|
|
Member Posts: 1 Joined: 5-November 25 |
My clock ran for over a year with no issue indoors keeping a GPS fix the whole time. After a power outage it wouldn't do anything more than count the hours since power on. Leaving the unit outside for hours with a clear view of the sky it still doesn't display a time. The PPS light is flashing after just a few minutes on the board and GPS module. Not sure if this is the right place for this question, Thanks in advance. ------------- |
| [top] | |
| mit | Posted: 5 Nov 2025, 11:34 AM |
|
yeah whatever Admin Posts: 647 Joined: 4-May 16 |
If PPS is blinking, the GPS module is still working, so it's either that the connection between the GPS and Attiny is bad, or that the ATtiny is misbehaving somehow. It's possible that the power outage caused a spike that trashed the EEPROM on the Attiny. The first byte of EEPROM stores the calibration value for the RC oscillator. If it's way off, it may not be able to decoded the serial data at all. You could do a quick test to see if that's the case, by measuring how fast the clock is ticking. Look at the whole number of seconds after you power it up, and compare it to another clock or stopwatch. If it's off by more than 10%, that's probably the case. If it's ticking really slow, so slow you can see the hundredths of a second clearly, then it might be the fuse bytes (option bytes) got corrupted. In either case you need to re-flash the ATTiny. It might even be worth buying a new one and flashing that, if you think the power surge damaged it. Flashing a new one just means following the instructions here and also setting the fuse bytes, as described here. If you leave the EEPROM empty, it will use the default calibration, which is usually fine. ------------- |
| [top] | |
Sign in to post a reply.