mitxela.com forum
Welcome. Please log in or register.

Precision Clock not updating.
paulek Posted: 28 Mar 2021, 12:03 PM
Avatar


Member
Posts: 3
Joined: 28-March 21
Hi,

I built the precision clock on my own to learn something about board manufacturing and finding and byung all the parts on my own.
Now I got a problem.
The clock is turning on, all middle segments turn on and the clock counts up until it gets a GPS fix. After it got a fix, the individual 5mm LEDs begin blinking and the rest of the clock, except the last digit, freezes. What might be the problem here? Obviously something is working but then the microcontroller does something strange.

kind regards

(User posted image)


-------------
[top]
mit Posted: 29 Mar 2021, 10:03 AM
Avatar
yeah whatever

Admin
Posts: 341
Joined: 4-May 16
Have you set the fuses on the ATtiny? When it's counting up, is it counting in real-time? That could tell you if the clock speed on the chip is correct or not.

Also - a black PCB?? sacrilege!

-------------
[top]
paulek Posted: 29 Mar 2021, 04:03 PM
Avatar


Member
Posts: 3
Joined: 28-March 21
I have just flashed the hex file from github and have done nothing else.
It's counting up in real-time, yes. The last digit shows tenths and from there upwards it is seconds.

Sorry for the black PCB, I got lured by the matt finish.

-------------
[top]
mit Posted: 29 Mar 2021, 04:03 PM
Avatar
yeah whatever

Admin
Posts: 341
Joined: 4-May 16
If the last digit is showing tenths then it's not realtime. You need to set the fuses to disable the DIV8 bit, either using the makefile (make fuses) or with avrdude:

avrdude -p t2313 -B2000 -U lfuse:w:0xe4:m

I'm kidding about the colour, it looks good!

-------------
[top]
paulek Posted: 31 Mar 2021, 02:03 PM
Avatar


Member
Posts: 3
Joined: 28-March 21
Today, I finally found time to do it and it works now! Thank you for your help and the whole project.

-------------
[top]

Sign in to post a reply.