ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

ESP32-S3 Based Dual-Screen Stereo True dB Audio Visualizer: Analog VU Meter, PPM, Spectrum Analyzer

Автор: QazWsx

Загружено: 2026-09-13

Просмотров: 725

Описание: Update History:
Update :    • ESP32-S3 Based Dual-Screen Stereo True dB ...  


I wanted to share a project I've been working on for a while: an ESP32-S3 based, true dB-measuring stereo audio level meter with a touch LCD screen, designed to resemble real analog VU meters. I also used code to simulate the music for testing.

Inspiration
I saw and liked this idea from the following project: hackaday.io/project/205735-esp32-analog-vu-meter

The original project uses ready-made CrowPanel 3.5" HMI ESP32 modules with a built-in ESP32, meaning the display and microcontroller come on a single board. I didn't have such a module, so I adapted it from scratch to my own available hardware (a separate ESP32-S3 + standard SPI TFT displays). From the display driver to the dB calibration, I had to rebuild most things for my specific hardware. The concept and the LVGL/SquareLine approach are inspired by it, but the implementation itself was written from scratch for different hardware.

Materials Used
ESP32-S3-N16R8 development board (16MB Flash, 8MB PSRAM)
2x 3.5" TFT LCD displays (480x320, ILI9486 driver, XPT2046 touch), Raspberry Pi compatible models with 40-pin headers
2x 10k ohm resistors per channel for audio input (voltage divider)
Jumper wires, breadboard

Software
The interface (needle graph, dB scale, three-color level LED) comes from the project I was inspired by, designed using LVGL and SquareLine Studio. I integrated this into my own hardware, and the firmware was rewritten from scratch on the ESP32-S3 using PlatformIO.

Challenges Faced Along the Way

The Frozen Needle: Even keeping the display alive was a challenge at first. The needle wasn't moving at all, and I debugged it for hours. The reason was quite silly: I never called the lv_tick_inc() function, which tells LVGL that time has passed. Without this call, LVGL's internal refresh timer only ran once at startup and never triggered again. It was a single-line fix, but finding it really took time.

True dB Calibration: Putting a screen that says "dB" isn't enough; you actually need to measure dB. The first version directly converted the raw signal read from the ADC into an angle-this wasn't real dB, it just showed high/low. For real dB, I calculated the RMS voltage of the signal, converted it to actual dB using the formula dB = 20 * log10(Vrms / Vref), and calibrated it by measuring with a multimeter (using the professional audio standard +4dBu, which is 1.228V, as the reference voltage). Analog VU meter scales are non-linear and compressed at the ends, so I measured the needle angle at fixed points and matched them with a lookup table.

ADC Protection: While testing high levels (+3dB), I faced the risk of burning out the ESP32's ADC pin. The signal generator output could easily exceed the ESP32's 3.3V limit. As a solution, I placed a simple 2:1 voltage divider (two 10k ohm resistors) between the AWG output and the ADC pin; this both protected the pin and provided an approach similar to signal conditioning logic in real audio equipment.

Dual-Screen Stereo Setup: When adding the second screen for stereo, I used the interface code generated by SquareLine without changing it at all. By specifying which screen was active using lv_disp_set_default(), I ran the exact same interface creation function separately on both screens. Code repetition was avoided.

Simulating Background LEDs: I also got the -3, 0, and +3 LEDs working. These were actually fixed boxes drawn inside the background image of the SquareLine design, not LVGL objects. This meant I couldn't turn them on and off from code. The solution was to overlay three separate LVGL rectangles of the exact same size directly on top of these boxes, initially invisible. As the signal crosses the -3dB, 0dB, and +3dB thresholds, I make these rectangles visible, simulating illumination by layering them over the static box underneath. It works cumulatively like real audio gear-when reaching a higher level, the lower ones stay lit, and the +3 (peak/clip) LED stays lit for 800ms even if it makes a short peak, similar to real peak-hold circuits.

Multi-Mode UI via Touch: By touching the screen, the system switches between VU mode, DIN PPM mode, and a Spectrum Analyzer mode. I later decided to add the Spectrum Analyzer mode on my own, as it was not included in the project I was inspired by. I used my own custom design for the Spectrum Analyzer mode, which also includes a peak hold feature to track frequency peaks.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
ESP32-S3 Based Dual-Screen Stereo True dB Audio Visualizer: Analog VU Meter, PPM, Spectrum Analyzer

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]