Back to List
OfficialFactory DemoBattery

Battery Test Demo

This example shows how to estimate battery level using ADC sampling and display the percentage and charging state on the LCD of OpenNextion 2.8" and 3.5" devices.

Preview

battery test-01

Hardware Requirements

Development Boards

ONX2432G028
ONX2432G028Required
ONX3248G035
ONX3248G035Required

Accessories

Nextion Dual MIC Board
Nextion Dual MIC BoardOptional
Nextion BOX Speaker
Nextion BOX SpeakerOptional
Nextion IO Adapter V2
Nextion IO Adapter V2Optional

Getting Started

Preparation

  • 1 × supported OpenNextion ESP32-S3 smart display
  • 1 × USB data cable
  • 1 × Lithium battery
  • 1 × Windows/Mac computer

Before starting, ensure the USB cable supports data transfer and maintain a stable connection between the board and your computer.

Flashing the Firmware

  1. Click Flash Online at the top of the page.
  2. Select the OpenNextion device model you are using.
  3. Choose the corresponding serial port when prompted in the browser.
  4. Wait for erasing, writing, and verification to complete. Do not unplug the USB cable during this process.

After successful flashing, the board will automatically restart.

Operating Instructions

Connect the battery, and the screen will display the battery level and charging status.

Resources

FAQ

No content available yet.