WiFi Retro Game Clock
thingiverse
This remake uses an OLED World Clock box by Ken3d to create a fascinating clock that will captivate those who grew up on classic video games. It features Pong, Pacman, and Tetris. Acknowledgements: OLED World Clock box by Ken3d (https://www.thingiverse.com/thing:1494309) Pong Clock code by 0miker0 & mic159 Wunderground code by Daniel Eichhorn Build: STL files are at https://www.thingiverse.com/thing:1494309 The clock has a custom PC board used to hold an ESP-01 board, containing a 3V3 regulator, headers for a 0.96" I2C OLED display as well as a header and pullup resistors for the two buttons. The ESP-01 board has four IO pins, two of which are normally RX and TX, repurposed for the two buttons. The other two IO pins are used for the I2C bus (SDA and SCL). The custom PC board was made using the toner method. (Eagle files included). Programming the ESP-01 can be a bit challenging. To program it successfully, you need to hold the GPIO0 pin low while programming. Many websites describe this process in detail. The Sketch and associated libraries are included. Operation: The code is based on the Pong Clock by 0miker0 & mic159 (https://github.com/mike-rankin/Pong-Clock/blob/master/Code/README.md). I removed the Real Time Clock (RTC) code and replaced it with a NTP Client (Network Time Server), keeping all the date and time change functionality. However, no matter what changes you make, the clock will always obtain its time from an NTP server. When started, the WiFi Manager will attempt to connect to your WiFi network. If it can't find your network or this is the first run of the software, it will create a WiFi hotspot called CLOCK. Using your phone, connect to this WiFi hotspot and you'll be presented with a menu. You can either select your network SID from the list or enter one manually, providing the password if required. Once connected, the clock will retrieve your latitude and longitude and use this location to connect to the WUnderground service. This service will return your time-zone, taking into account daylight savings time. The software then contacts a NTP server to get the current time using the previously obtained time-zone. One button switches between different games while the other brings up a menu.
With this file you will be able to print WiFi Retro Game Clock with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on WiFi Retro Game Clock.