Having a display is good and fine, but at some point it needs to be useful, or its just a silly toy.
So…, I updated the code to have some useful functionality (for me at least). Now it pulls AQI data for PM25 info, gets the latest stock data for a given stock, and scrolls the latest Business News. Power usage is quite low too, at a meagre 2.5W/hr
Working out quite well for me, as I can keep an eye on the stock i’m interested in at a glance from the sofa, without actively having to have my computer in front of me.
Other amendments included adding some EEPROM saving functionality, and web ui for config. Progress..
// Pin mapping when using SPI mode. // With this mapping, SD card can be used both in SPI and 1-line SD mode. // Note that a pull-up on CS line is required in SD mode.
// Pin mapping when using SPI mode.
// With this mapping, SD card can be used both in SPI and 1-line SD mode.
// Note that a pull-up on CS line is required in SD mode.
#define PIN_NUM_MISO 35
#define PIN_NUM_MOSI 22
#define PIN_NUM_CLK 23
#define PIN_NUM_CS 32 //Needs 10k pullup resistor??
SPI.begin(PIN_NUM_CLK ,PIN_NUM_MISO ,PIN_NUM_MOSI,PIN_NUM_CS ); //sck, miso, mosi, ss
SD.begin(PIN_NUM_CS, SPI, 24000000, "/sd"));
New PCB arrived, first test to (not) let the magic smoke out worked.
I’ll probably do another revision to add space for a zener diode on the board input just in case(tm), and an on/off switch, and move the 3.3v, 5v, gnd to a separate pin header than the gpio’s, and maybe finalize the SD card pins, but it works, and i’m happy(ish).
Work in progress on adding tpm2.net compatibility. Still a little buggy, as having some issues with UDP packet framing. Psuedo-working, albeit in small area, although a little glitchy still. Once debugged should be fine to drive the whole panel.
Addendum – found the issue – memory leak in the ESP32 arduino UDP library, the patch on github doesn’t seem to work, so reverted to 1.0.1
Using Windows laptop (bleh!) as Jinx! is windows only.