From 142e86118613973c7a291e4d554d3473891e5240 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Mon, 25 Aug 2025 20:45:14 +0200 Subject: VFD clock --- VFD clock/Thumbnail.webp | Bin 0 -> 6780 bytes VFD clock/back pcb full view.webp | Bin 0 -> 299842 bytes VFD clock/backside.webp | Bin 0 -> 150818 bytes VFD clock/barrel jack.webp | Bin 0 -> 195128 bytes VFD clock/circuit_image.svg | 7362 +++++++++++++++++++++++++++++++++++++ VFD clock/dip switches.webp | Bin 0 -> 163268 bytes VFD clock/esp-01 connection.webp | Bin 0 -> 269582 bytes VFD clock/index.md | 88 + VFD clock/main.webp | Bin 0 -> 171460 bytes VFD clock/modules top.webp | Bin 0 -> 259940 bytes VFD clock/modules.webp | Bin 0 -> 206542 bytes VFD clock/rj45.webp | Bin 0 -> 210640 bytes 12 files changed, 7450 insertions(+) create mode 100644 VFD clock/Thumbnail.webp create mode 100644 VFD clock/back pcb full view.webp create mode 100644 VFD clock/backside.webp create mode 100644 VFD clock/barrel jack.webp create mode 100644 VFD clock/circuit_image.svg create mode 100644 VFD clock/dip switches.webp create mode 100644 VFD clock/esp-01 connection.webp create mode 100644 VFD clock/index.md create mode 100644 VFD clock/main.webp create mode 100644 VFD clock/modules top.webp create mode 100644 VFD clock/modules.webp create mode 100644 VFD clock/rj45.webp diff --git a/VFD clock/Thumbnail.webp b/VFD clock/Thumbnail.webp new file mode 100644 index 0000000..ccb6abf Binary files /dev/null and b/VFD clock/Thumbnail.webp differ diff --git a/VFD clock/back pcb full view.webp b/VFD clock/back pcb full view.webp new file mode 100644 index 0000000..de7d7ad Binary files /dev/null and b/VFD clock/back pcb full view.webp differ diff --git a/VFD clock/backside.webp b/VFD clock/backside.webp new file mode 100644 index 0000000..7748f38 Binary files /dev/null and b/VFD clock/backside.webp differ diff --git a/VFD clock/barrel jack.webp b/VFD clock/barrel jack.webp new file mode 100644 index 0000000..8fa84c7 Binary files /dev/null and b/VFD clock/barrel jack.webp differ diff --git a/VFD clock/circuit_image.svg b/VFD clock/circuit_image.svg new file mode 100644 index 0000000..26c8eaa --- /dev/null +++ b/VFD clock/circuit_image.svg @@ -0,0 +1,7362 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ​3.3V + + + + + + + + + + + + + + + + ​12V + + + + + + + + + + + + + + + + ​TX + + + + + + + + + + + + + + + + ​RX + + + + + + + + + + + + + + + + ​Enable + + + + + + + + + + + + + + + + ​Power in + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/VFD clock/dip switches.webp b/VFD clock/dip switches.webp new file mode 100644 index 0000000..46fcde2 Binary files /dev/null and b/VFD clock/dip switches.webp differ diff --git a/VFD clock/esp-01 connection.webp b/VFD clock/esp-01 connection.webp new file mode 100644 index 0000000..23ee932 Binary files /dev/null and b/VFD clock/esp-01 connection.webp differ diff --git a/VFD clock/index.md b/VFD clock/index.md new file mode 100644 index 0000000..56e6546 --- /dev/null +++ b/VFD clock/index.md @@ -0,0 +1,88 @@ +--- +description: "Vacuum fluorescent display with an ESP" +created: 2025-08-21 +--- + +## Resources + +- [WD202 User manual](https://www.touchdynamic.com/wp-content/uploads/2021/06/wd202.pdf) +- [WD202A User manual (contains RJ45 pinout)](https://manualzz.com/doc/html/11817581/digipos-wd-202a-customer-display-user-s-manual) + +![VFD from the front, one line showing a UNIX timestamp and another line showing a human readable datetime](main.webp) + +Got an old VFD from a Point Of Sale device. The kind found in price tally displays in supermarkets. + +It uses RS232 to communicate, +so you need a TTL to RS232 converter for the display to recognise the signal from a micro controller. +Which convents the ESPs from 3.3v logic -> -15 to 15 volt. + +## --> Attribution: oliver@labitat.dk made the hardware awesome <-- + +![](back%20pcb%20full%20view.webp) +![](backside.webp) +![](barrel%20jack.webp) +![](dip%20switches.webp) +![](esp-01%20connection.webp) +![](modules.webp) +![](modules%20top.webp) +![](rj45.webp) + +![](circuit_image.svg) + +[Link to circuit diagram - cirkitdesigner.com](https://app.cirkitdesigner.com/project/05cf3635-211d-451e-8c80-614e9fb4ede3) + +[Link to code git repo](https://git.node5.net/firmware/vfd/) + +```cpp +#include +#include +#include + +Timezone CopenhagenTime; + +void setup() { + Serial.begin(9600); + + Serial.write(0x0C); // Clear display + Serial.print("VFD display\n"); + Serial.print("Starting\n"); + + WiFi.setHostname(HOSTNAME); + WiFi.begin(WIFI_SSID, WIFI_PASSWORD); + + Serial.write(0x0C); // Clear display + Serial.printf("Hostname: %s\n", HOSTNAME); + Serial.printf("Connecting to: %s\n", WIFI_SSID); + while (WiFi.status() != WL_CONNECTED) + { + delay(1000); + Serial.print('.'); + } + + Serial.write(0x0C); // Clear display + Serial.println("Connected, IP address: "); + Serial.println(WiFi.localIP()); + delay(1000); + + waitForSync(); + CopenhagenTime.setLocation("Europe/Copenhagen"); + + Serial.write(0x0C); // Clear display +} + +void loop() { + // Get Unix epoch timestamp + char buffer [3]; + sprintf(buffer,"%03d",ms()); + String milliEpoch = String(now()) + buffer; + Serial.println(milliEpoch); + + delay(50); + // https://github.com/ropg/ezTime#getting-date-and-time + // 16;36;15 Sat 16 Aug 33 + String time_formatted = CopenhagenTime.dateTime("H:i:s D d M"); + Serial.println(time_formatted); + + events(); // Needed to update time continuously +} +``` diff --git a/VFD clock/main.webp b/VFD clock/main.webp new file mode 100644 index 0000000..b453ce1 Binary files /dev/null and b/VFD clock/main.webp differ diff --git a/VFD clock/modules top.webp b/VFD clock/modules top.webp new file mode 100644 index 0000000..e08e4fd Binary files /dev/null and b/VFD clock/modules top.webp differ diff --git a/VFD clock/modules.webp b/VFD clock/modules.webp new file mode 100644 index 0000000..3e99105 Binary files /dev/null and b/VFD clock/modules.webp differ diff --git a/VFD clock/rj45.webp b/VFD clock/rj45.webp new file mode 100644 index 0000000..0dc87f5 Binary files /dev/null and b/VFD clock/rj45.webp differ -- cgit 1.4.1