A clock on a VFD display driven by an esp8266.
- install the platformio core CLI tools
- plug an esp8266 into your computer
- make it programmable:
- cut power
- hold reset
- restore power while still holding reset
- wait a couple seconds
- release reset
- run
pio run -t upload -e serial - after 15 seconds (
WIFI_TIMEOUT_SEC), a new wifi network will appear - connect to the new wifi network, which will be esp8266-xxxxxx. Take note of this name!
- visit http://192.168.4.1
- enter wifi credentials and UTC offset, then click 'save'
- connect a Samsung HCS-12SS59T vacuum fluorescent display according to the chart in the display wiring section below
- click 'Restart device'
| ESP | VFD |
|---|---|
| VU | 5v |
| GND | GND |
| D0 | RST |
| D1 | CS |
| D2 | VFD_ON |
| D5 | CLK |
| D7 | DIN |
To configure your machine to flash the device over local wifi:
- ensure port 8266 on your dev machine is open for LAN traffic
- open platformio.ini
- set
upload_portto the name of the device's wifi network, with '.local' appended - set the
--authflag inupload_flagsto the password for the device's wifi network
Now you can run platformio run -t upload -e ota to update the device as long as:
- the device is reachable from your computer's network
- the device is regularly calling
ArduinoOTA.handle(); - mDNS is configured properly on your dev machine