Skip to content

g2maurer/Retro_Clock_2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retro_Clock_2

Improved version of Retro_Clock

  1. Redesigned all of clock case parts with freeCAD. results in cleaner parts.
  2. All STL files are from freeCAD redesign.
  3. Minor firmware changes. Added menu items.
  4. PCB redesign to use better audio amplifier.

Retro_Clock

This is a highly modified version of TechKiwiGadgets clock found on

  1. Instructables https://www.instructables.com/ESP32-Pacman-Clock/
  2. Makerbot Thingiverse (ESP32 Pacman Clock) https://www.thingiverse.com/thing:5136672

Modifications:

  1. Changed TFT display to an SPI version which has a much improved Touch interface.
  2. Added SPIFFS to support files for data and images. This freed up memory and added flexability.
  3. Added support for optional RTC (real time clock IC). Improves time keeping accuracy.
  4. Added support for LDR (light dependent resistor) so that display is dimmed at night.
  5. Added audio amplifier (LM386) and volume control via touch screen.
  6. Redesigned user interface (Touch menu) to support added features.
  7. Made many changes to firmware to improve speed and readability.
  8. Designed PCB to support above mentioned changes.
  9. Redesigned 3D printed parts to support hardware changes.

TFT_eSPI library:

  1. The TFT_eSPI library requires it be changed to support each particular build (unusal but that's way way it works).
  2. The file User_Setup_Select.h specifies which setup file in the User_Setups directory is to be used.
  3. Added to the User_Setups directory is the file Setup_Pacman_Clock.h which contains the specifies the configuration and features (Touch) used by this project.
  4. Move the file "Setup_Pacman_Clock.h" into directory ...Arduino/libraries/TFT_eSPI/User_Setups
  5. Move the file "User_Setup_Select.h" into the directory ...Arduino/libraries/TFT_eSPI (replaces the existing User_Setup_Select.h file).

Tools:

  1. Arduino IDE 1.8.19, Board: DOIT ESP32 DEVKIT V1
  2. Initialize SPIFFS using Arduino IDE "Tools/ESP32 Sketch Data Upload" (which will initializee SPIFFS and upload all the files from the Data directory).
  3. Creality Slicer, PLA, 0.2mm, no supports.

Additional Notes:

  1. Arduino Sketch (IDE) Version 1.8.19

  2. Board Manager -> esp32 by Espressif Systems Version 1.0.6

  3. Libraries used:

    TFT_eSPI at version 2.5.0
    RTClib at version 2.1.1
    Wire at version 1.0.1
    SPIFFS at version 1.0
    FS at version 1.0
    XT_DAC_Audio
    Time at version 1.6.1
    Adafruit_BusIO at version 1.14.1
    
  4. TFT_eSPI setup file contains (see TFT_eSPI folder in Arduino/libraries):

    #define USER_SETUP_ID 900
    #define ILI9341_DRIVER
    #define TFT_MISO	19
    #define TFT_MOSI	23
    #define TFT_SCLK	18
    #define TFT_CS		15
    #define TFT_DC		4
    #define TFT_RST		2
    
    #define TOUCH_CS	5		// Required to enable Touch, getTouch()
    
    #define LOAD_GLCD
    #define LOAD_FONT2
    #define LOAD_FONT4
    #define LOAD FONT6
    #define LOAD_FONT7
    #define LOAD_FONT8
    #define LOAD_GFXFF
    #define SMOOTH_FONT
    
    #define SPI_FREQUENCY 27000000					// 27 MHz
    #define SPI_READ_FREQUENCY 20000000				// 20 MHz
    #define SPI_TOUCH_FREQUENCY 2500000				// 2.5 MHz
    

About

Improved version of Retro_Clock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published