Simple illuminated time display that can be driven over USB? - Page 1
Forum section: electronics / projects

author: sparkydog
author_rank: Regular Contributor
timestamp: April 19, 2024, 09:41:43 pm
content: My cable company recently decided to remotely brick my DVR. This is annoying for a number of reasons, but in particular... I was rather used to it doubling as a clock.Now, I really don't want much from a clock, just:It should be self-illuminated light-on-dark (i.e. LED/VFD/OLED, not LCD).It should use or support 24-hour time.I shouldn't have to set it. Ever. (Not even if the DST rules change.)Is this so much to ask?Well, apparently it is, because while it's trivial to find two-out-of-three in various combinations, almost nothing satisfies all three. (If this is reminding you ofthis other, recent thread... yup. Except I'm looking for self-illuminated.) Frills such as seconds, date, temperature and weather are acceptable but not required. I wouldn'tmindan off-the-shelf product, but the only one I can find that checks all the above boxes isthis, and I don't like the seconds being a different size. (I'm not in love with the dot-matrix style digits, either.) I'd also prefer to avoid something that needs to be hooked up to WiFi, and Iwill notuse anything that requires installing an app.Now... mitigating my woes, I do happen to have a Linux "server" near where I want the clock, which satisfies the third point via the magics of NTP and software updates. In fact, if I could just hook an always-on display to that, it would solve my problem nicely.Is there a modest-sized (at least 3"×1" but not larger than 18"×5") OLED screen that I can control from a PC USB port from userland software, butnotas an X/Wayland display? Or is there any four-digit seven-segment (with colon, please!) time display (preferably with 1" to 3" high digits and preferably white, blue, or at least not-red) that can be controlled from a PC USB port? Basically, I want something that lets me run software on the PC to update the display when the minute changes. (Something that can also bepoweredoff the same port would be ideal, but isn't strictly necessary.)I'm not adverse to adding a MCU to the mix and/or scavenging a display from some off-the-shelf clock. (I suppose that, with enough effort, I could coax an old smartphone into serving, but I'd prefer something a little more straight forward.)

author: robert.rozee
author_rank: Frequent Contributor
timestamp: April 20, 2024, 02:03:01 am
content: GPS module, small colour LCD screen, and a single-chip BASIC computer:https://geoffg.net/SuperClock.htmlpersonally, i'd put a small toggle switch on the back to select daylight savings option, you only need to flip it twice a year.cheers,rob :-)

author: PCB.Wiz
author_rank: Super Contributor
timestamp: April 20, 2024, 03:40:36 am
content: Quote from: sparkydog on April 19, 2024, 09:41:43 pmI recently went looking for a largish 7-segment display, with properly proportioned digits.There are not many around.This is nice and large, 30.5mm digits, and will have very good viewing angles, but is glass and pins only, so you need to add a segment driver / board.https://www.aliexpress.com/item/1005003087294038.htmlSmaller 7-seg do exist, like this from Adafruithttps://www.adafruit.com/product/5581and smaller ones from Aliexpress 10mm high digits.https://www.aliexpress.com/item/1005004102385524.htmlorhttps://www.aliexpress.com/item/32924015493.htmlor 15m high, but no colonhttps://www.aliexpress.com/item/32944755027.htmlQuote from: sparkydog on April 19, 2024, 09:41:43 pmThe Pi-PICO may be the best building block with a OLED or TFT ?eg This OLED is 77 x 19mm active area, 256x64 pixels.https://www.aliexpress.com/item/1005006051449911.htmlThere are wifi ready clockshttps://www.aliexpress.com/item/1005005609244308.htmlbut it's unclear if they are properly global in timezone handling ?Maybe this one does ? 1.2" displayshttps://www.aliexpress.com/item/1005005430295742.html

author: sparkydog
author_rank: Regular Contributor
timestamp: April 22, 2024, 09:19:30 pm
content: Quote from: robert.rozee on April 20, 2024, 02:03:01 amThe problem with a flip-switch is that I have to flip it. That means the clock is going to be wrong when I wake up after a time change, which is the most important time for it to be right. (Also, how do GPS-based clocks account for leap seconds? Are they just off by a few seconds? Do they use a manual offset?)Also, I'm really looking for something that doesn't involve blocking light. 🙂 There are plenty of LCD screens floating around if I wanted to go that route. There's a reason I'm looking for OLED specifically, or for a segmented display that can light individual segments (which is to say, pretty much any such display).The best I've seen are some 5.5" displays, but they all seem to take HDMI. (Which, okay, considering they're also 1080p... and priced accordingly...) That would be "workable" but would need something like a Pi to drive the display.Are there MCUs that can be powered off USBandsupport some sort of communication over the same USB? Or would I have to use a USB-to-serial with a separate power supply to talk to an MCU from a computer?

author: PCB.Wiz
author_rank: Super Contributor
timestamp: April 22, 2024, 09:59:12 pm
content: Quote from: sparkydog on April 22, 2024, 09:19:30 pmSure, any USB MCU can do.You need to link their USB code, which can have varying quality…People often use serial bridge to skip that hassle.Some MCU can boot using USB.eg The pi-pico can boot from USB, and I expect has modest speed python usb support, which should be fine in your case.

author: mianos
author_rank: Regular Contributor
timestamp: April 23, 2024, 12:57:02 am
content: If you don't mind a few hours of work, cut and pasting from GPT, these 'yellow display' boards:Would make a perfect clock. Good size, clear backlit display, wifi to sntp.Usb power supply.I have not looked much, but there is likely code for what you want.Once you mount it you would never need to touch it again. For my own clock, I use the one built into the esp-idf and set "AEST-10AEDT,M10.1.0,M4.1.0/3".If you wanted to get the time without ever changing the DST rules you can just scrape some other web site with known good time.void initialize_sntp(SettingsManager& settings) {setenv("TZ", settings.tz.c_str(), 1);tzset();esp_sntp_setoperatingmode(SNTP_OPMODE_POLL);esp_sntp_setservername(0, settings.ntpServer.c_str());esp_sntp_init();ESP_LOGI(TAG, "SNTP service initialized");int max_retry = 200;while (sntp_get_sync_status() == SNTP_SYNC_STATUS_RESET && max_retry--) {vTaskDelay(100 / portTICK_PERIOD_MS);}if (max_retry <= 0) {ESP_LOGE(TAG, "Failed to synchronize NTP time");return; // Exit if unable to sync}time_t now = time(nullptr);struct tm timeinfo;localtime_r(&now, &timeinfo);ESP_LOGI("TimeTest", "Current local time and date: %d-%d-%d %d:%d:%d",1900 + timeinfo.tm_year, 1 + timeinfo.tm_mon, timeinfo.tm_mday,timeinfo.tm_hour, timeinfo.tm_min, timeinfo.tm_sec);}

author: fchk
author_rank: Frequent Contributor
timestamp: April 23, 2024, 05:31:10 am
content: Quote from: sparkydog on April 19, 2024, 09:41:43 pmhttps://www.mouser.com/ProductDetail/Display-Visions/EA-PLUGL128-6GTCZ?qs=UkDUCjYnTB3JUsCi7MJI3Q%3D%3Dhttps://www.mouser.com/datasheet/2/127/plug_seriee-1532082.pdfOLedCapacitive TouchUSBGPIOs, RS232/485, SPI, I2Ceasy to use ASCII commands

author: sparkydog
author_rank: Regular Contributor
timestamp: April 23, 2024, 05:51:42 pm
content: Quote from: fchk on April 23, 2024, 05:31:10 amEr... that looked interesting until I saw the price. $130? For a tiny, monochrome 128×64 display? Uh... no thanks. At that price I might as well buy a waveshare 5.5inch. Sure, I'd also need a PI or the like to drive it (or figure out how to run a second X server), but it's bigger, full color, and 1080p... for a lower price. (In fact, that plus a Pi Zero isstilla lower price.)

author: xvr
author_rank: Frequent Contributor
timestamp: April 24, 2024, 10:33:16 am
content: > $130? For a tiny, monochrome 128×64 display?This is not only display. This is complete HMI (Human Machine Interface) module. But $130 a little out of boundsHerehttps://nextion.aliexpress.com/store/4579011will be cheaper (and better)

author: Gyro
author_rank: Super Contributor
timestamp: April 24, 2024, 10:53:59 am
content: I know it's not self illuminated but the epaper display has decent contrast and it wouldn't be hard to make a nice stand with front illumination. You could probably pick up a Kindle keyboard for little money these days and constantly USB power it. Timekeeping from the web over wifi.Just a thought anyway - rather more of an interesting conversation piece than a basic clock...https://www.instructables.com/Literary-Clock-Made-From-E-reader/There's also a digital version for a jailbroken paperwhite (self illuminated). Make sure the firmware version can be jailbroken....https://github.com/mattzzw/kindle-clock