The esp8266 connects to wifi and synchronize time via NTP at boot.

That project uses an ESP8266 instead of an arduino. The esp8266 connects to wifi and synchronise time via NTP at boot. I’m also using a PCA9685 to control LEDs (I tried Charlieplexing but LEDs were too dim).

I bought the « building » case from original City Clock project.

It uses NTPClient for NTP and Adafruit PWM Servo driver library.

A nice page about GPIOs to use.

Connections

  • VCC to 3.3 V
  • Ground to ground
  • CH_PD from ESP to 3.3 V

And, to flash ESP8266 :

  • RX from FTDI to TX on ESP
  • TX from FTDI to RX on ESP
  • DTR from FTDI to GPIO 0 on ESP
  • RST from FTDI to RESET on ESP

Code

Code is on https://github.com/paulgreg/City-Clock