frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock

https://github.com/jim11662418/ESP8266_WiFi_Analog_Clock
179•tokyobreakfast•2h ago

Comments

kotaKat•1h ago
Of note, having recently shopped at Walmart for a self-setting alarm clock (what I once knew to be “atomic”):

Apparently the entity today known as Sharp sells “AccuSet(tm)” branded clocks that “automatically set time”… but they’re just factory pre-set with a button cell and they include a slider on the bottom to set a timezone offset (only for US timezones). If you’re lucky, the clock’s battery is still good and the clock “set itself” out of the box several minutes late.

If you’re unlucky - surprise, you get to manually set the time anyways.

https://www.amazon.com/Sharp-Digital-Alarm-AccuSet-Automatic...

relaxing•1h ago
You want a self-setting radio clock that receives the LF broadcast from WWVB.

There was a kerfuffle a few years back about the funding for the station being cut, but luckily that did not come to be.

orev•1h ago
These clocks are irritating because they show up in the results when searching for “radio atomic clock” and similar, and it can be very hard to figure out if they actually use the WWVB radio signal. I’ve concluded that none of them do, because WWVB is only reliable in (most parts) of the US, and companies only want to make things that appeal to a global audience now. La Crosse seems to be the only one that makes them, and unfortunately most of their designs lack any style (i.e. they’re ugly).
geerlingguy•1h ago
It's like they hired a design firm in the early 00's and decided that design language is the peak of human horology... I wish they'd make a couple new designs.
drivers99•1h ago
There are actually other time signals around the world.

I had a Casio wave ceptor (one with analog hands which it doesn't look like they sell anymore; I should have kept it). Anyway, looking at a model that's currently available (WV-200R, but there are 2 other models available), its manual says it gets signals from "Germany (Mainflingen), England (Anthorn), United States (Fort Collins), [and] Japan."

I was curious so I looked those up:

Mainflingen DCF77 77.5 kHz

Anthorn 60 kHz

Fort Collins WWVB 60 kHz

Japan looks like they have Mount Otakayoda 40 kHz, and Mount Hagane 60 kHz.

There are also some other countries that have time broadcasts (e.g. France. Anywhere else?) but not that that watch uses.

jonathanlydall•40m ago
Clocks which are designed to be able to auto set their time in the US will actually also do the auto setting at least as far away as Johannesburg, South Africa.

I know this because when my mother was visiting the US over a decade ago, she found a clock she felt was aesthetically perfect for her psychology practice room at her house.

Twice a year the clock changes its time to be 10 hours (or thereabouts) behind, no doubt due to daylight savings change over.

So she has to readjust the time whenever this happens which she says she doesn’t really mind.

DesiLurker•1h ago
makes me wonder what if I just wanted to sync with nfc every once in a while. wifi seems overkill for this. maybe it could be done much cheaper with nfc sync witha phone twice a year?
yjftsjthsd-h•1h ago
ESPs are so cheap that you couldn't possibly save very much money, and the way economies of scale work it may or may not be cheaper to use NFC anyways.
phh•1h ago
An ESP32-C3 Super Mini can be found for below 3$ (cheapest I had was 1.58€). Since the original clock is 3.88$, it can't be that much cheaper.
sowbug•1h ago
We've been shopping for a simple bathroom clock to replace our final Amazon Echo and leave that increasingly dystopian ecosystem. There are some models that use Bluetooth on your phone to sync the time. I could imagine BLE being a good low-power and relatively stateless solution. But given our goals, we're not going to install an app on a phone just to maintain a wall clock. (I'd be fine if Android provided BLE time sync as a built-in service.)
russdill•1h ago
Home assistant has pretty good BLE capabilities. But honestly, as has already been pointed out wifi is already really cheap.
pantalaimon•1h ago
You often have a radio clock source like DCF77 that all those radio controlled clocks use
albertsikkema•1h ago
Great idea!
teraflop•1h ago
Cool project!

The most interesting part, IMO, is the "SRAM with EEPROM backup" chip. It allows you to persistently save the clock hands' positions every time they're moved, without burning through the limited write endurance of a plain old EEPROM. And it costs less than $1 in single quantities. That's a useful product to know about.

sowbug•1h ago
I'm not sure if this is the same technology, but regardless it's also cool: https://www.adafruit.com/product/1897
mftrhu•44m ago
Not quite - the chip the article refers to is the 47L04 [0], which is "just" NVSRAM built out of a RAM + EEPROM. I do agree on FeRAM being cool, though - I have a few I2C chips en route, and I can't wait to get my hands on them.

[0] https://www.microchip.com/en-us/product/47L04

ssl-3•4m ago
That's really neat. TIL.

So the way this works seems to be this: It's an SRAM and an EEPROM in one little package along with a controller that talks with each, with a little capacitor (this clock uses 4.7uf) placed nearby.

The SRAM part does all of the normal SRAM stuff: It doesn't wear out from reading/writing, and as long as it has power it retains the data it holds.

The EEPROM does all the normal EEPROM stuff: It stores data forever (on the timescale of an individual human, anyway), but has somewhat-limited write cycles.

The controller: When it detects a low voltage, it goes "oh shit!" and immediately dumps the contents of the SRAM into EEPROM. This saves on EEPROM write cycles: If there are no power events, the EEPROM is never written at all.

Meanwhile, the capacitor: It provides the power for the chip to perform this EEPROM write when an "oh shit!" event occurs.

When power comes back, the EEPROM's data is copied back to SRAM.

---

Downsides? This 47L04 only holds 4 kilobits. Upsides? For hobbyist projects and limited production runs, spending $1 to solve a problem is ~nothing. :)

jccooper•1h ago
See also the "Ventinari clock": https://github.com/iracigt/ventinari-clock https://www.akafugu.jp/posts/products/vetinariclock/
sowbug•1h ago
If you like this but don't want to get your hands as dirty, have a look at the Crazy Clock: https://www.tindie.com/products/nsayer/crazy-clock/

I got one for my daughter. The erratic ticking eventually became a distraction when she was studying, so we have retired it for now. But we got a lot of amusement out of it.

avidiax•1h ago
> Early clock - keeps time anywhere between 0 and 10 minutes fast. For those who like to set their watch ahead to avoid being late. This clock keeps you from trying to "compensate," because you never know how early it is at the moment.

That's pretty genius for many ADHD-type folks. Only problem is a modern household has many clocks in view, so you'd need to commit to just not setting them.

javawizard•55m ago
Oh now that would be a fun version 2 challenge: have all the clocks in one household synchronize such that they're all early by the same amount at any given time.

Easy enough for wifi enabled ones: a UDP broadcast to discover other clocks on the network, then sync how you will.

For non-wifi-enabled clocks, perhaps something like a CH572 would do the trick: a $0.20 RISC-V microcontroller with BLE support that all the clocks in the same vicinity could use to talk to each other.

You could really mess with your neighbors if they had the same clocks and you were within range...

seg_lol•4m ago
You don't already do this with the NTP servers under your control?
password4321•54m ago
Yes I'd have to convince Apple to play along on the iPhone and watch.
Spivak•1h ago
If you want a pure software solution get yourself an old atomic clock and https://github.com/jj1bdx/WWV play some tunes to set the time.
bityard•55m ago
The repo you linked to is a WWV simulator, WWV broadcasts the time via _audio_ (double-sideband amplitude modulation) at various fixed HF frequencies. SOME clocks might be able to automatically receive and decode this signal, but not many. There is also a web version here: https://wwv.mcodes.org

Radio controlled ("atomic") clocks get their signal from WWVB, a long-wave station in Colorado. Its signal is just a carrier and data is encoded via pulse-width modulation and phase modulation. People have built local, low-powered WWVB transmitters to sync their watches and so forth in areas where WWVB is hard or impossible to receive. It's not a good idea to build one of these unless you REALLy know what you're doing because radio signals can travel farther than you expect, and the FCC takes a rather dim view of intentionally broadcasting your own signal (to any distance) without a license to do so.

riskable•1h ago
I want to see someone convert one of those cheap projection clocks like this: https://www.homedepot.com/p/La-Crosse-Technology-5-in-Color-...

The red projection is just the right brightness (at night) but it sucks that it's not wifi-enabled so you can't just get it to NTP sync (or hook up a GPS receiver). The projector part of the clock is a separate device that's attached to it via a ribbon cable. I would reverse engineer it myself but I haven't got the time.

Ideally, I'd want a matrix of LEDs projected on to the ceiling so I could get more info than just the time. Such clocks exist but they're super duper expensive! Example: https://buyfrixos.com/

lostlogin•1h ago
Undermining the spirit of HN: By the time you’ve spent a few hours hacking away and bought any parts, that price is probably not too bad.
stavros•1h ago
That's assuming you don't like hacking and would pay to not have to do it, which is generally not the case around here.
lostlogin•59m ago
I’m think you can go further than that.

Days spent modifying cheap electronics is absolutely encouraged.

hackingonempty•31m ago
Buy the premade thing and hack something new.
seg_lol•5m ago
Cheap electronics are just the feed stock, the basis function for your new creation. Why start with raw matter when you can get fully formed matter for less.
mmsimanga•1h ago
+1 I have a couple of digital.clocks from Temu. They look nice but cannot keep the correct time. They slowly edge ahead and in a month they are about a minute ahead. It is annoying having to correct the clock and would be great if they time from WiFi connected source.
stavros•1h ago
If you're looking for something low brightness, I made one: https://www.stavros.io/posts/i-made-another-little-bedside-c...
ElevenLathe•1h ago
The one you linked claims to have "Atomic Time" which usually means syncing by radio from WWV/WWVB. I have several cheap wallclocks like this (though none with a projector) and they are always accurate with no noticeable drift AFAICT. Have you tried that particular one and found its accuracy wanting? I think, in principle at least, there should be less jitter in this method than using NTP over a computer network.
alnwlsn•3m ago
Depending on how dark your room is you might get by with an ordinary but bright LCD screen and a camera lens. There's a pretty common 240x240px, 1-inch square TFT display on amazon or other usual places you might start with.
avidiax•1h ago
How does this keep track with DST?

Looking at the code [1], it looks like if the actual time is 1 hour ahead of the displayed time, then we get 10 pulses per second to leap forward. Otherwise, the clock stops running for an hour to fall back.

https://github.com/jim11662418/ESP8266_WiFi_Analog_Clock/blo...

sowbug•1h ago
You have two choices: either assume everyone is asleep at 2 am and won't notice when it happens, or else advance 11 hours. My LaCrosse clock does the latter.
gspr•1h ago
And that's pretty much fine for a project like this, seeing as most (all?) locations jump you between DST and not DST at night. So the clock will be off at most for an hour during the night.
floatrock•13m ago
Yeah, project needs a time-lapse video of their analogue DST transition event.
Dachande663•1h ago
I'm currently making something similar but using a BKA30D-R5 (a dual stepper motor used in car dashboards) and a hall sensor to zero the hands.
russdill•1h ago
Yes, this project screams for some kind of sensor to detect when the hands reach some known position.
Dachande663•1h ago
Yeah, it's super quick to start with a MK I eyeball to set them, but having a sensor just avoids any drift. I got away with using one by taking a reading and moving the other hand to check they weren't on top of each other already, and then doing a full rotation between readings.
dheera•1h ago
Some years ago I made a ESP-based clock that used 60 LEDs in a circle that project RGB shadows via a cone at the center. I used the same WeMos D1 Mini board.

https://github.com/dheera/shadow-clock/

bityard•1h ago
I remember seeing this on Hackaday. Very clever idea!
MrVitaliy•1h ago
Cute, but the original clock used to run on AA battery that needs a replacement every two years or so, and now it needs a power supply. Or some big battery recharge/replacement every few hours maybe days.
debbiedowner•1h ago
How different is this to something you can buy like: https://www.amazon.com/ihreesy-Movement-Mechanism-Silent-Rep... ?
TechSquidTV•59m ago
Well I notice that one is $36
freedomben•1h ago
Hell yeah, this is some badass hackery, and the type of stuff I love seeing on HN. In the last decade or so as more and more stuff becomes locked down and hacker unfriendly, I've found myself longing for simple things I can hack on. If I ever get to a point where I don't have to work for a living, one of the things I'd like to do is build everything from little gadgets up to major appliances that are simple, reliable, and hackable for people who want to. It pains me that my appliances have full computers driving them but I can't get access to them. Kudos for this awesome work and phenomenal write-up!
ortichic•1h ago
Sorry if this is a dumb question, but do you guys not have radio controlled clocks outside of Europe? If I got it right, the only purpose of this project is to always display the correct time. Radio controlled clocks do exactly that. They are cheaper than the one ESP board, and run years on a single AA battery. No WiFi, tinkering, setup, or cables necessary
qwertygnu•59m ago
Googled "radio controlled clock" and seeing results from $20-$200, lots of inconsistency in what the product is.
jcalvinowens•58m ago
If you think this is overengineered, I built one that will really offend you: https://github.com/jcalvinowens/wallclock :)

The point is to have fun and learn something, not really to solve a problem in a practical sense. The radio controlled clocks are extremely unreliable where I live.

haunter•57m ago
There are time signal stations all over the world, WWV is the most prominent US one https://en.wikipedia.org/wiki/WWV_(radio_station)

https://en.wikipedia.org/wiki/Radio_clock#List_of_radio_time...

js2•51m ago
We do, but I've never had a WWVB clock work for me in North Carolina. I've tried a few of them. The US is a big place and for whatever reason, there aren't that many clock signal transmission towers (AFAIK, the only one in the US is in Colorado).
gambiting•58m ago
That is very cool.

As for the problem of detecting the current position of hands - Casio solved in in watches with their Tough Movement mechanism, where there is a tiny tiny hole in the dial with a sensor behind it - the watch will check if the hands are over it when expected, and if not, automatically adjust - so even if a watch suffers a major impact that might move the hands, they will re-allign themselves. Such a clever and simple solution.

js2•58m ago
This is great. I spent years looking for an affordable battery-powered WiFi clock that syncs via NTP since where I am, the WWVB clocks never pick up the radio signal.

I never considered making my own. Anyway, about two years ago this option popped up on Amazon. I've been happy with it:

https://www.amazon.com/OCEST-Wall-Clock-12Inch-Auto/dp/B0DJS...

I'm guessing internally it's not much different than the DIY clock in this submission.

accrual•44m ago
It'd be interesting to see the logs or data on how the physical movement falls out of sync. It probably even correlates with temperature and humidity.
retired•41m ago
I’m curious how long it takes for the hands to drift to the point where the time difference is perceivable. Luckily the 30 millisecond pulse time is configurable.
montroser•33m ago
What I really want is one of these powered by gps. The time already comes for free in the signal, and from your location you can derive the time zone. That way DST is accounted for automatically, but you don't have to set up and rely on wifi. This would be truly zero-config and always correct.
womod•25m ago
There's quite a few clocks available that get their time over the air from the NIST WWVB radio station[0]. They usually have a little switch on the back if your area does/doesn't observe daylight savings.

[0] - https://www.nist.gov/pml/time-and-frequency-division/time-di...

IncreasePosts•3m ago
You would still need some kind of configuration because the start of DST can change year to year, and this is not accounted for in the time signal from GPS
SoftTalker•28m ago
Now do a old fashioned mechanical pendulum clock. You'd probably need some kind of worm gear drive to move the pendulum bob up and down.
cyberax•17m ago
I was looking at the way they did the position sync. And they didn't :(

OK, here's how I'd do it: add small magnets at the bottom of the clock hands, and use the ESP's built-in Hall effect sensor to detect them. You can distinguish between hands using the magnetic field orientation.

rballpug•15m ago
Keeping time in terms of hash-sigs that are in 64 bit architecture instance.
timonoko•9m ago
On that note: Converting €0 scrap into €400 video editing deck. https://www.youtube.com/shorts/KlWYC6mzVkQ

https://github.com/timonoko/Jogwheel

Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock

https://github.com/jim11662418/ESP8266_WiFi_Analog_Clock
180•tokyobreakfast•2h ago•64 comments

Why is the sky blue?

https://explainers.blog/posts/why-is-the-sky-blue/
158•udit99•3h ago•47 comments

Discord will require a face scan or ID for full access next month

https://www.theverge.com/tech/875309/discord-age-verification-global-roll-out
221•x01•4h ago•242 comments

Sleeper Shells: Attackers Are Planting Dormant Backdoors in Ivanti EPMM

https://defusedcyber.com/ivanti-epmm-sleeper-shells-403jsp
88•waihtis•3h ago•23 comments

UEFI Bindings for JavaScript

https://codeberg.org/smnx/promethee
137•ananas-dev•4h ago•75 comments

Game Boy Advance Audio Interpolation

https://jsgroth.dev/blog/posts/gba-audio-interpolation/
13•ibobev•1h ago•2 comments

Thoughts on Generating C

https://wingolog.org/archives/2026/02/09/six-thoughts-on-generating-c
140•ingve•4h ago•29 comments

The Traffic Mimes of Bogotá

https://www.atlasobscura.com/articles/traffic-mimes-of-colombia
40•IgorPartola•4d ago•4 comments

Information Is Beautiful

https://informationisbeautiful.net/
24•surprisetalk•5d ago•0 comments

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
291•tombh•8h ago•121 comments

The Markets of Old London

https://spitalfieldslife.com/2024/06/20/the-markets-of-old-london-i/
3•zeristor•25m ago•0 comments

Medieval Monks Wrote over Ancient Star Catalog – Particle Accel Reveals Original

https://www.smithsonianmag.com/smart-news/medieval-monks-wrote-over-a-copy-of-an-ancient-star-cat...
49•bookofjoe•5d ago•23 comments

GitHub is down again

https://www.githubstatus.com/incidents/54hndjxft5bx
276•MattIPv4•2h ago•313 comments

Like Game-of-Life, but on Growing Graphs, with WASM and WebGL

https://znah.net/graphs/
101•znah•1d ago•14 comments

Long-Sought Proof Tames Some of Math's Unruliest Equations

https://www.quantamagazine.org/long-sought-proof-tames-some-of-maths-unruliest-equations-20260206/
50•ibobev•4h ago•8 comments

Art of Roads in Games

https://sandboxspirit.com/blog/art-of-roads-in-games/
538•linolevan•21h ago•177 comments

Ask HN: What are you working on? (February 2026)

218•david927•23h ago•756 comments

AT&T, Verizon blocking release of Salt Typhoon security assessment reports

https://www.reuters.com/business/media-telecom/senator-says-att-verizon-blocking-release-salt-typ...
185•redman25•4h ago•46 comments

Vouch

https://github.com/mitchellh/vouch
1029•chwtutha•1d ago•443 comments

Irish man with valid US work permit held in ICE detention for five months

https://www.theguardian.com/us-news/2026/feb/09/irish-man-seamus-culleton-ice-detention
22•n1b0m•17m ago•6 comments

From watchdogs to mouthpieces: Washington Post and the wreckage of legacy media

https://www.thejournal.ie/readme/bezos-washington-post-trump-6950317-Feb2026/
23•DyslexicAtheist•58m ago•10 comments

Nobody knows how the whole system works

https://surfingcomplexity.blog/2026/02/08/nobody-knows-how-the-whole-system-works/
199•azhenley•13h ago•145 comments

Humans peak in midlife: A combined cognitive and personality trait perspective

https://www.sciencedirect.com/science/article/pii/S0160289625000649
96•Brajeshwar•4h ago•37 comments

Show HN: Printable Classics – Free printable classic books for hobby bookbinders

https://printableclassics.com
48•bookman10•6h ago•19 comments

Eddie Bauer, venerable outdoor apparel retailer, declares bankruptcy

https://www.cbsnews.com/news/eddie-bauer-bankrupt-outdoor-apparel/
9•mgh2•32m ago•1 comments

Roman industrial hub discovered on banks of River Wear

https://www.durham.ac.uk/news-events/latest-news/2026/01/roman-industrial-hub-discovered-on-banks...
60•andsoitis•4d ago•11 comments

Hard-braking events as indicators of road segment crash risk

https://research.google/blog/hard-braking-events-as-indicators-of-road-segment-crash-risk/
66•aleyan•1h ago•66 comments

Offpunk 3.0

https://ploum.net/2026-02-09-offpunk3.html
156•todsacerdoti•8h ago•33 comments

Sandboxels

https://neal.fun/sandboxels/
6•2sf5•3h ago•0 comments

Show HN: Browse Internet Infrastructure

https://www.wirewiki.com
99•pul•6h ago•15 comments