Electronics > Projects, Designs, and Technical Stuff

Simple illuminated time display that can be driven over USB?

<< < (2/2)

mianos:
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);
}

fchk:

--- Quote from: sparkydog on April 19, 2024, 09:41:43 pm ---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, but not as 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 be powered off the same port would be ideal, but isn't strictly necessary.)

--- End quote ---

https://www.mouser.com/ProductDetail/Display-Visions/EA-PLUGL128-6GTCZ?qs=UkDUCjYnTB3JUsCi7MJI3Q%3D%3D
https://www.mouser.com/datasheet/2/127/plug_seriee-1532082.pdf

OLed
Capacitive Touch
USB
GPIOs, RS232/485, SPI, I2C
easy to use ASCII commands

sparkydog:

--- Quote from: fchk on April 23, 2024, 05:31:10 am ---https://www.mouser.com/ProductDetail/Display-Visions/EA-PLUGL128-6GTCZ?qs=UkDUCjYnTB3JUsCi7MJI3Q%3D%3D
https://www.mouser.com/datasheet/2/127/plug_seriee-1532082.pdf

OLed
Capacitive Touch
USB
GPIOs, RS232/485, SPI, I2C
easy to use ASCII commands

--- End quote ---

Er... 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 is still a lower price.)

xvr:
> $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 bounds :)

Here https://nextion.aliexpress.com/store/4579011 will be cheaper (and better)

Gyro:
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

Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod