Table clock with e-paper display
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
agora_v0.2.2_with_alarm.hexhex - 63.41 kB - 09/20/2022 at 10:31 |
|
|
agora_v0.2.2_no_alarm.hexhex - 62.86 kB - 09/20/2022 at 10:31 |
|
|
agora_xtal_tunning.hexhex - 1.09 kB - 09/20/2022 at 10:31 |
|
After struggling with 32 kHz crystals, I decided to switch to a TXCO (thermally compensated crystal oscillator). When changing the PCB I also removed all unnecessary components and moved what remained to one side of the PCB. I also added a new footprint for the piezo buzzer and improved the mechanical mounting of the PCB on the front panel.
I had some complains about the clock is not very accurate so I started to investigate it. A friend of mine borrowed me a HP 5385A frequency counter. It was first time I used one and we weren't sure if it measures correctly.
ATmega328p that is the MCU in Agora clock has no option to tune the RTC XTAL frequency in firmware. It has 32.768 Hz XTAL connected to internal counter that drives the clock. I hooked this counter's output to a GPIO. It had to divide the frequency first so I was looking for precisely 64 Hz frequency on the GPIO where I connected the counter.
Then I started to tune the load capacitors of the 32.768 Hz XTAL to get as closer as possible to 64 Hz at my GPIO.
So I realized that a made a big mistake. I used two XTALs with different load capacitance - the original had 9 pF a the second had one 12.5 pF. That happened in the time when the chip shortage started and I was not aware of the consequences.
Now with the frequency counter I measured the differences and tuned the load capacitors
XTAL capacitance | C13 [pF] | C14 [pF] | ppm |
9 pF - original (mark TBs18) | 3.3 | 4.7 | 38 |
9 pf - tuned (mark TBs18) | 2.2 | 1 | 0.23 |
12.5 - original (mark TAV06) | 3.3 | 4.7 | -31 |
12.5 - tuned (mark TAV06) | 8.2 | 6.8 | -0.2 |
Next I wanted to know if I can trust the frequency meter. So I made a cardboard with 4 tuned Agora clock boards. I set the exact time on the clock and prepared to let them go for a month
OK, so I had now 4 clocks that a wanted to watch for.
Then I got an idea to turn them into the kitchen clock. My wife was surprisingly not against it.
So I let the clock to go for a month and then I measured the differences.
After a month it was 2678400 passed seconds. So I did a little math and the results are here:
XTAL | HP counter ppm | real ppm |
9 pF | 0.23 | 2 |
12.5 pf | 0.20 | -2 |
Conclusion
Now I know how important it is to have the RTC frequency of all clocks checked. Because the ATmega328p has no firmware feature to tune the clock I have the only option to tune capacitors on every clock to have good time accuracy.
I made a test fixture for faster programming and testing. All parts are 3D printed
The menu is implemented in software a while now, but I haven't published any photos yet.
Menu with time and alarm settings:
Time setup:
Status screen with battery voltage, temperature, time from last charge and total uptime :
I have made some minor changes on the clock's body. But it's still compatible with the electronics from older version.
New models printed on textured sheet:
Buttons have symbols now:
On the bottom there are new holes for the alarm buzzer:
My stand on Maker Faire 2019 in Prague.
Hooray!
New PCB version released and first prototypes is working.
Improvements:
- new charger IC; charging current is limited to 100 mA and the watch is charged in 2 hours
- simplified bill of materials
- 4 backlight LEDs instead of 2
- THT pads for buttons; easier connection of PCB with buttons for the clock
New schematic:
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates
nice
can You add orientation info for programs?
(changing orientation changing showing info)
and meybe using normal AA or similar rechargable 3V battery