Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
71–80 of 202 posts
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#72What 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.
The receivers are inexpensive ($5-$10 for the kind of accuracy that's useful here) and it's not hard to parse the NMEA strings and PPS they output into a spooky-accurate internal clock. It only takes a few connections and an antenna to integrate GPS into an MCU like an ESP (or an SBC like a Raspberry Pi or a whatever).
Like, really: The hardware is ridiculously easy.
The only difficult part is the code. But as we can see from this posting, the clock-driving bits are already written and are available for use.
Just graft in the GPS parts instead of the NTP parts, add your DST/location rules if you really must (hint: that part is harder than it sounds), and send it.
(And if the code still seems arduous, then remember: This is the kind of work that a reasonably-focused person who is armed with a decent bot can put together over a cup of coffee or two, even if they don't speak C. It may be popular here to poo-poo the bot here, but it's completely OK to get some help. Don't let pride get in the way of having fun, learning things, and building neat stuff.
The tailor doesn't lament the invention of the cotton gin.)
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#73Earlier quoted context omitted.
I'm not sure if this is the same technology, but regardless it's also cool: https://www.adafruit.com/product/1897
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
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#74On that note: Converting €0 scrap into €400 video editing deck . https://www.youtube.com/shorts/KlWYC6mzVkQ https://github.com/timonoko/Jogwheel
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#75Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#76On that note: Converting €0 scrap into €400 video editing deck . https://www.youtube.com/shorts/KlWYC6mzVkQ https://github.com/timonoko/Jogwheel
What a great idea. Legacy VCR controls upcycled for digital control! There's a lot of those old decks and LANC deck controllers lying around...
Those signals are just weird mess of coils, switches and resistors.
ESP32 clock speed may also be a contributing factor.
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#77Post don't go into detail about schematic, but resistors and diodes around motor is to properly drive motor and protection from Inductive kickback (Flyback) https://www.microtype.io/blog/h-bridge-circuit-design
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#78As the author points out, the cheap quartz mechanism has no way of reporting the position of the hands (other than the hands themselves) and that you have to set the PULSETIME constant by the right number of milliseconds. If you're off by even a millisecond, that's going to accumulate quick enough that it would make a difference over even a single day, wouldn't it?
EDIT: as some have pointed out, the Lavet stepper theoretically accounts for this in that it steps exactly one tick after so many oscillations. That number of oscillations does not change so that's all you need to get right.
However, that basically just kicks the can down the road a bit in that if each step is not exactly 1/60th of a circle or bits wear down or get sticky or you have analog noise in there you will presumably still have a source of biased drift that you won't be able to detect. But maybe those affects are small enough that they don't matter for a wall clock.
Re: Converting a $3.88 analog clock from Walmart into a ESP8266-based Wi-Fi clock
#79I've made enough of these projects to know that ~75% need modifications that were not anticipated. For instance, I made a freezer temp sensor to php email for cases where the freezer stops working... but when I opened the freezer, it would send an email. I needed to sample for 30 minutes or something.
Maybe this was simple and you will be part of the 25% that work perfect and need 0 updating.