LVGL memory calculator
An LVGL screen that runs fine in the simulator can still run out of memory on the board. Images are usually the reason: a 100×100 picture counts as about 40 KB on its own. Type in roughly what your UI has and see where the RAM goes.
Estimated RAM: 103.9 KB
25 widgets on 3 screens, 480×320 px. A minimum: the heap, font cache and task stacks add more.
| Widgets and screens | 6.9 KB |
|---|---|
| Images | 78.2 KB |
| Draw buffers (2 × 10 lines) | 18.8 KB |
| Wi-Fi + MQTT | 0 B |
| Full frame buffer (RGB565) | 300.0 KB |
The frame buffer isn't in the total: when a board needs one, it usually sits in PSRAM.
Design the UI next
Build LVGL screens and events in the browser without code, then export an Arduino project.
How it counts
It's the same estimate the LCD Ultra Pro™ editor shows for a project: the LVGL 8.4 object size for each widget, an average of six style properties, the text, and a little allocator overhead per allocation. Images are counted at 4 bytes a pixel, two draw buffers of ten lines each, and about 55 KB for Wi-Fi with MQTT.
Treat the result as a floor. The font cache, FreeRTOS task stacks and the C runtime come on top, and they differ between projects. If the estimate is already close to the board's SRAM, it won't fit as it is. The board finder can show you boards with 8 MB of PSRAM.
More free tools
- Board finderNarrow the ESP32 display boards down by size, resolution, touch, PSRAM, shape, display interface, CAN / RS485, battery and free GPIOs.
- Arduino IDE settingsThe board type, PSRAM mode, flash size and partition scheme to pick in the Tools menu, plus the library versions the driver was compiled with.
- Pin plannerPick a board and the sensors you want to add. It hands out the free GPIOs and warns about strapping pins, pins the display uses and I2C address clashes.
- Board comparisonTwo or three ESP32 display boards side by side: screen, controller, touch, PSRAM, free GPIOs and driver status, with the differences highlighted.
- Boards by controller chipLook up a display or touch controller (ST7789, ST7701, GT911, CST816…) and see which boards use it.
- LVGL symbol browserEvery built-in LV_SYMBOL icon of LVGL 8.4 with a preview, its code point and UTF-8 bytes, ready to copy.
- I2C address checkerCheck if your I2C sensors can share one bus with the chips already on the board, and how to move an address.