Something like electric bulletin board displaying headlines of news using an ESP-WROOM-32 and a 640×48 LCD.
- An ESP-WROOM-32
- A 640×48 LCD with an FFC cable (by disassembling Majoka Iris)
- A DC-DC converter (9V)
- A LDO module (3.3V)
- A USB to serial UART module
- Two tactile switches
- Two resistors: a 10kΩ and a 270Ω
- A 0.1μF ceramic capacitor
- A USB connector for power supply
- Wires, connectors, etc...
Install ESP32 boards to the Arduino IDE and configure the settings as follows.
Attribute | Value |
---|---|
Board | ESP32 Dev Module |
JTAG Adapter | Disabled |
PSRAM | Disabled |
Partition Scheme | No OTA (2MB APP/2MB SPIFFS) |
CPU Frequency | 240MHz (WiFi/BT) |
Flash Mode | QIO |
Flash Frequency | 80MHz |
Flash Size | 4MB (32Mb) |
Upload Speed | 921600 |
Arduino Runs On | Core 1 |
Events Runs On | Core 1 |
Core Debug Level | None |
Erase All Flash Before Sketch Upload | Disabled |
This sketch depends on following libraries. (You can add these by library manager)
- LovyanGFX version 1.1.16
You must modify some files according to your situation.
- Edit
MY_SSID
andMY_PASSWORD
in "credentials.h" for your Wi-Fi access point
#define MY_SSID "SSID"
#define MY_PASSWORD "PASSWORD"
- Edit arguments of calling
getAndParseRss()
function in "MyRssManager.cpp" as you like. - Get root certificate files and define as arrays of
const char
in "certificates.h".
getAndParseRss("www3.nhk.or.jp", rootCA_NHK, "/rss/news/cat0.xml");
getAndParseRss("www.asahi.com", rootCA_AsahiCom, "/rss/asahi/newsheadlines.rdf");
These codes are licensed under MIT License.