WiFi Retro Game Clock

WiFi Retro Game Clock

thingiverse

This remake uses the OLED World Clock box by Ken3d to create a interesting clock that will appeal to those who grew up on those retro games. It includes 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 a ESP-01 board. It contains 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 4 IO pins, two of which are normally RX and TX. These have been repurposed for the two buttons. The other two IO pins are used for the I2C bus (SDA and SCL). I made my board using the toner method. (Eagle files included). Programming the ESP-01 can be a bit challenging. You need to hold GPIO0 pin low to while you program it. The Internet contains a number of sites that describe the process. The Sketch and associated libraries are included. - - - - - - - - Operation - - - - - - - - The code is basically taken from the Pong Clock by 0miker0 & mic159 (https://github.com/mike-rankin/Pong-Clock/blob/master/Code/README.md). All I did was remove the Real Time Clock (RTC) code and replace it with a NTP Client (Network Time Server). This means it still has all the code to change the date and time. However, no matter what you change it to, the clock will always obtain the time from the NTP server. When started, the WiFi Manager will try and connect to your WiFi network. If it can't be found or this is the first time you are running the software, it will create a WiFi hotspot called CLOCK. Using your phone, connect to this WiFi hotspot. You will be presented with a menu. You can either select your network SID from the list or enter one manually. You will be asked for the password if it is required. Once connected, it will then get your latitude and longitude and using this location, 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 time-zone obtained previously. One button switches between the different games while the other brings up a menu.

Download Model from thingiverse

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.