CYD weather station: current conditions and a 3-day forecast on the Cheap Yellow Display touchscreen
Build a tap-to-switch weather station on the Cheap Yellow Display: live conditions and a 3-day forecast on an ESP32-2432S028 touchscreen, no API key.

What it is
A self-contained desk weather station for the Cheap Yellow Display: Wi-Fi pulls current conditions and a 3-day forecast from Open-Meteo, and a tap on the touchscreen flips between the two views. No API key, and the base build needs no wiring at all.
What you need
- Cheap Yellow Display (ESP32-2432S028R) the single micro-USB revision
- USB data cable charge-only cables will not flash the board
- BME280 breakout (optional) indoor temperature and humidity on the CN1 connector
How hard
Beginner: no wiring in the base build, four config lines to edit, one library config file to replace.
Key Facts
- Tap the touchscreen to flip between current conditions and a 3-day forecast; data refreshes every 15 minutes over Wi-Fi, with a 15-second retry on failure and the last data kept on screen offline
- Weather comes from Open-Meteo — free, no API key or account (free tier is non-commercial; a hobby station qualifies)
- Base build wires nothing: display and touch are on the PCB; the optional BME280 indoor sensor adds four connections on the CN1 connector
- Compile-checked 2026-11-13 on esp32 core 3.3.12 with TFT_eSPI 2.5.43, XPT2046_Touchscreen 1.4 and ArduinoJson 7.4.3 — exit 0 in both configurations (82% and 84% flash); not yet bench-tested on hardware
- Display and touch sit on two different SPI buses; the pins live in TFT_eSPI's User_Setup.h (the CYD config file), not in the sketch
- Targets the 2.8-inch ESP32-2432S028R with a single micro-USB port; 2.4 GHz Wi-Fi only (the ESP32 radio does not see 5 GHz networks)
About This Project
The Cheap Yellow Display (ESP32-2432S028R) puts an ESP32, a 2.8-inch 240x320 colour touchscreen, an SD slot and an RGB LED on one board — a first "useful gadget" project with nothing to solder. It shows the current temperature big enough to read across the room, with the condition, what it feels like, wind and humidity underneath. Tap once and it flips to a three-day forecast — high and low for today, tomorrow and the day after, each with its condition line. Tap again to go back. It refreshes every 15 minutes over Wi-Fi using Open-Meteo, a free weather API that needs no key or account, and keeps showing its last data if the network drops.
Parts you need
The short list is the point: a Cheap Yellow Display (ESP32-2432S028R) bought as the single micro-USB revision, a USB data cable — charge-only cables are the single most common reason an ESP32 won't flash — and a 2.4 GHz Wi-Fi network (the ESP32's radio does not see 5 GHz networks). That is the entire bill of materials.
One optional add-on: a BME280 breakout, which measures indoor temperature and humidity, adds one line to the screen, and is the natural next step if you want the station to sense its own room too. The sketch supports it behind a single setting; the wiring is four connections described below.
The pins that matter
For the base build you wire nothing — the screen and the touch layer are already connected to the ESP32 inside the board. But two pin facts are worth knowing, because they explain most CYD confusion later.
First, the display and the touchscreen are on two different SPI buses. The screen (an ILI9341 driver) uses SCK 14, MOSI 13, MISO 12, CS 15 and DC 2; the touch chip (an XPT2046) uses clock 25, data-in 32, data-out 39, chip-select 33 and interrupt 36 — which is why the sketch starts a second SPI bus just for touch. Neither set lives in your sketch: they live in the TFT_eSPI library's User_Setup.h config file, and getting that file right is the main setup step.
Second, almost every GPIO is already taken: the microSD slot, the RGB LED and the light sensor each claim pins, and GPIO 21 drives the screen backlight. What is genuinely free breaks out on two tiny connectors on the back — GPIO 22 and GPIO 27 on the CN1 connector, which also carries ground and 3.3 V, making it a ready-made I2C socket, and GPIO 35 on the P3 connector, which is input-only. The optional BME280 goes exactly there: supply from the CN1 3.3 V pin, ground to ground, SDA to GPIO 22, SCL to GPIO 27. The connectors are 1.25 mm Molex PicoBlade plugs, not breadboard pins — a PicoBlade-to-DuPont pigtail is the easy adapter.
Software setup
You need the Arduino IDE with the ESP32 board package, plus three libraries from the Library Manager: TFT_eSPI by Bodmer for the screen, XPT2046_Touchscreen by Paul Stoffregen for touch, and ArduinoJson for the weather data. For the optional indoor sensor, add the Adafruit BME280 Library and the Adafruit Unified Sensor library.
The one step people trip on: TFT_eSPI does not know what display it is attached to until you replace its User_Setup.h with the config for this board — the same CYD config file Random Nerd Tutorials ships for the ESP32-2432S028R, which the community hub also walks through. Replace the file rather than editing around it — a wrong one produces a white or black screen or backwards colours. PlatformIO users get the same result from build flags instead of editing the file — the sketch itself is identical in both environments.
The sketch
The sketch was written for MCU Atlas and compile-checked on the current ESP32 Arduino toolchain in both configurations — but it has not been bench-tested on hardware yet; the troubleshooting section covers the known traps, and we want to hear about anything new. The complete sketch is served from this page as a plain file, cyd-esp32-touchscreen-weather-station.ino (linked in the Learn more section below), byte-identical to the copy we compiled. Paste it into a new sketch, then edit the four things at the top: Wi-Fi name, Wi-Fi password, latitude and longitude. One more constant switches Fahrenheit to Celsius. Set ADD_BME280 to 1 only if you wired the sensor.
Build it step by step
Install the Arduino IDE and its ESP32 board package, then the libraries listed above. Replace TFT_eSPI's User_Setup.h with the CYD version. Paste the sketch and edit the four configuration lines, plus the temperature unit. Plug the board in with a USB data cable, select ESP32 Dev Module and the port, and hit Upload. The screen shows its Wi-Fi status, fetches the first forecast, and lands on the current view; the serial monitor at 115200 baud narrates if anything stalls. Tap the screen to flip views. With the BME280 wired to CN1, flip ADD_BME280 to 1 and upload once more — an indoor line joins the current view. The full sequence, including the optional sensor wiring, is in the tutorial below.
Troubleshooting
Screen stays dark or flickers. GPIO 21 is the backlight pin, and it is also broken out on the P3 connector — if anything is wired to it, unplug it. A flickering or dim picture usually means a weak USB supply: try a different cable and power brick.
Touch does nothing. The sketch treats the whole screen as one button, so it needs no touch calibration. If taps register on the opposite side, the touch layer is mounted the other way up: change touchscreen.setRotation(1) to 3. For precise on-screen buttons later, run a proper calibration sketch.
Colours look wrong or the image is mirrored. Check the model number printed on the back beside the speaker connector says ESP32-2432S028 — several CYD-family boards look identical but use different display drivers, and the CYD buyer's guide tells them apart. On a genuine 2432S028, swap the driver define in User_Setup.h from ILI9341_2_DRIVER to ILI9341_DRIVER and re-upload.
Weather never appears. The serial monitor says why: a failed fetch means the Wi-Fi credentials are wrong or the network is 5 GHz-only, and the station retries every 15 seconds. It re-asks for weather every 15 minutes once running, so a dropped connection heals itself.
Sketch will not upload. On Linux, the brltty service grabs USB-serial ports — disable it, and make sure your user is in the dialout group. Some PCs also miss the board's bootloader window (esptool reports "wrong boot mode"); holding the BOOT button while the upload starts gets past it.
More CYD builds
This page is one of three CYD pieces. New to the board? Start with What is the Cheap Yellow Display?, our plain-English explainer. Want build two to be more fun than useful? The CYD touchscreen mini-game turns the same tap input into a playable game. And the Cheap Yellow Display community hub collects the pinout, the setup guide and dozens of other community builds — weather apps, emulators, smart-home panels — for when this station has you hooked.
Source & Attribution

Illustration
How to Build It
Parts Needed
- A Cheap Yellow Display (ESP32-2432S028R) with a single micro-USB port — catalog link in the page's Parts list
- A USB data cable (micro-USB) — charge-only cables will not flash the board
- A 2.4 GHz Wi-Fi network (the ESP32's radio does not see 5 GHz networks)
- Optional: a BME280 breakout for indoor temperature and humidity, wired to the CN1 connector
Steps
- 1
Install the IDE and libraries
Install the Arduino IDE and its ESP32 board package, then three libraries from the Library Manager: TFT_eSPI by Bodmer (screen), XPT2046_Touchscreen by Paul Stoffregen (touch) and ArduinoJson (weather data). For the optional indoor sensor, add the Adafruit BME280 Library and the Adafruit Unified Sensor library.
- 2
Replace TFT_eSPI's User_Setup.h with the CYD config
TFT_eSPI does not know what display it is attached to until you replace its User_Setup.h with the config for this board — the same CYD config file Random Nerd Tutorials ships for the ESP32-2432S028R (ILI9341_2_DRIVER, TFT_MOSI 13, TFT_MISO 12, TFT_SCLK 14, TFT_CS 15, TFT_DC 2, TFT_BL 21). Replace the file rather than editing around it: a wrong one produces a white or black screen or backwards colours. PlatformIO users get the same result from build flags — the sketch is identical in both environments.
- 3
Paste the sketch and edit the config
The complete sketch is served from this page at /firmware/cyd-esp32-touchscreen-weather-station/cyd-esp32-touchscreen-weather-station.ino — byte-identical to the copy we compile-checked. Paste it into a new sketch, then edit the four lines at the top: Wi-Fi name, Wi-Fi password, latitude and longitude (decimal degrees). One more constant, TEMP_UNIT, switches Fahrenheit to Celsius. Set ADD_BME280 to 1 only if you wired the sensor.
- 4
Wire the optional BME280 (skip for the base build)
The BME280 goes on the CYD's CN1 connector, which breaks out GPIO 22 and GPIO 27 with ground and 3.3 V — a ready-made I2C socket. Four connections: sensor VIN to CN1 3.3 V, GND to GND, SDA to GPIO 22, SCL to GPIO 27. The connectors are 1.25 mm Molex PicoBlade plugs, not breadboard pins — a PicoBlade-to-DuPont pigtail is the easy adapter. With it wired, flip ADD_BME280 to 1 and upload once more; an indoor line joins the current view.
- 5
Upload and tap
Plug the board in with a USB data cable, select board ESP32 Dev Module and the port, and hit Upload. The screen shows its Wi-Fi status, fetches the first forecast, and lands on the current view; the serial monitor at 115200 baud narrates if anything stalls. Tap anywhere on the screen to flip between the current-conditions and 3-day forecast views.
Bill of Materials
Parts list
3 parts · 3 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× ESP32-2432S028R
≈$15–48 per board delivered (checked 2026-11-13) — the band our Cheap Yellow Display community hub records; 2-packs often halve the per-board cost.
Not included: 3D-printed case, PicoBlade-to-DuPont adapter
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
- The complete weather station sketch (.ino)Single Arduino sketch, byte-identical to the compile-checked copy (sha256 9f55cd66…); edit the four config lines at the top and uploadDocs
- What is the Cheap Yellow Display?The lane's plain-English explainer — what the board is, why it's everywhere, which revision to buyDocs
- Your first project on a Cheap Yellow DisplayThe toolchain setup in full detail, if any step here is newDocs
- witnessmenow's ESP32-Cheap-Yellow-Display (community project)The community project this page's pin facts and display config build on (PINS.md, TROUBLESHOOTING.md, MIT)Docs
- Open-Meteo weather API docsThe free, keyless weather API the station polls every 15 minutesDocs
Related Projects




