ESP32-WROVER-E
Screen-Free NFC Story Card Audio Player
总览
A low-cost simple MVP handheld screen-free audio player for kids bedtime stories that uses NFC cards to trigger playback and supports Wi-Fi syncing and updates with USB-C rechargeable battery power.
系统架构
- POWER → BATTERYPowerBattery charging, protection, and power-path management for single-cell Li-Ion battery
- POWER → MCUPowerRegulated 3.3V supply for ESP32 module
- POWER → NFC_READERPower3.3V supply for PN532 NFC reader
- POWER → FLASH_STORAGEPower3.3V supply for microSD card socket
- POWER → AUDIO_AMPPower5V supply for MAX98357A amplifier to maximize speaker output power
- MCU → NFC_READERSPIESP32 communicates with PN532 over SPI for NFC tag detection and reading
- MCU → FLASH_STORAGESPIESP32 accesses story audio files and configuration data from microSD card
- MCU → AUDIO_AMPGPIOESP32 outputs I2S digital audio stream to MAX98357A amplifier
- AUDIO_AMP → SPEAKERPowerAmplified audio output drives the mono speaker
- MCU → BUTTONSGPIOGPIO inputs from user buttons for playback and power control
- POWER → MCUUSBUSB-C 5V input used for charging and optional system power path
物料清单(BOM)
| 型号 | 类型 | 组件 | 制造商 | 封装 | 数量 | 数据表 | 匹配 |
|---|---|---|---|---|---|---|---|
| IP5306 | POWER | USB-C 5V input + Li-Ion charger/protection + 3.3V/5V regulation Accepts USB-C 5V power, charges single-cell Li-Ion battery, provides protected battery power and regulated rails for system operation | INJOINIC | eSOP8L | 1 | 已匹配 | |
| ESP32-WROVER-E-N4R8 | MCU | ESP32-WROVER-E Main controller handling Wi-Fi connectivity, NFC card logic, audio streaming/decoding control, content sync, and firmware update | Espressif Systems | 38-SMD Module | 1 | 已匹配 | |
| 113020006 | SENSOR | PN532 NFC Reader Reads NFC story cards/tags to trigger associated audio playback | Seeed Studio | — | 1 | 已匹配 | |
| NAU8315YG | ACTUATOR | MAX98357A I2S Class-D Audio Amplifier Converts digital I2S audio from MCU into amplified mono speaker output | Nuvoton Technology Corporation | 20-WFQFN Exposed Pad | 1 | 已匹配 | |
| FS3128NB0430-H14.6 | ACTUATOR | 4 Ohm 3W Speaker Outputs bedtime story audio for child-friendly playback | FUET | Rectangular | 1 | 已匹配 | |
| MICROSD-PI | MODULE | MicroSD Card Socket Stores audio story files, configuration data, and cached synced content | Gravitech | — | 1 | 已匹配 | |
| PUSH-04 | SENSOR | Tactile Buttons Provides simple child-friendly controls such as play/pause, volume up, volume down, and power/wake | OSEPP Electronics LTD | — | 4 | 已匹配 | |
| UBBP01 | POWER | Single-cell Li-Ion Battery Portable rechargeable energy source for handheld operation | Ultralife Corporation | — | 1 | 已匹配 |
组装指南
Procurement & Preparation
- Order all core parts for one MVP unit: IP5306 power module, ESP32-WROVER-E-N4R8, PN532 NFC reader module 113020006, NAU8315YG audio amplifier, FS3128NB0430-H14.6 4 Ohm 3W speaker, MICROSD-PI socket, four PUSH-04 tactile buttons, and one UBBP01 single-cell Li-Ion battery.
- Procure supporting build materials: custom PCB or perfboard, USB-C receptacle breakout if not integrated on the PCB, 28 to 30 AWG hook-up wire, speaker wires, battery connector or solder tabs, standoffs, enclosure screws, insulating tape, and heat-shrink tubing.
- Prepare the PCB design or wiring plan with the required nets: 3V3 and GND from the power stage to ESP32, PN532, and MICROSD-PI; 5V and GND from the power stage to NAU8315YG; SPI from ESP32 to PN532 and microSD; I2S lines BCLK, LRC, and DIN from ESP32 to amplifier; GPIO lines for four buttons; and speaker outputs from amplifier to the 4 Ohm speaker.
- Assign practical ESP32 GPIOs before assembly, for example SPI shared bus on GPIO23 MOSI, GPIO19 MISO, GPIO18 SCK; PN532 chip select on GPIO5 and IRQ on GPIO27; microSD chip select on GPIO13; I2S BCLK on GPIO26, LRC on GPIO25, DIN on GPIO22; buttons on GPIO32, GPIO33, GPIO14, and GPIO12.
- Inspect every received part for package damage, correct part marking, and solderability, then pre-test module-level power rails with a bench supply where applicable before committing to final assembly.
Hardware Assembly & Wiring
- Assemble the power section first: mount the USB-C 5V input and IP5306 power/charging circuit, connect BAT+ and BAT- to the UBBP01 battery pads or connector, and verify the 3.3V rail for logic and 5V rail for the audio amplifier are available at the correct output nodes.
- Mount the ESP32-WROVER-E-N4R8 on the PCB or module headers, wire 3V3 and GND from the power stage, and expose USB-to-UART or programming pads for EN, IO0, TX, RX, 3V3, and GND so firmware can be flashed reliably.
- Install the PN532 NFC reader and connect it in SPI mode to the ESP32: MOSI, MISO, SCK, CS, IRQ, plus 3V3 and GND. Position the PN532 close to the intended card-tap area on the front enclosure to maximize read consistency for story cards.
- Mount the MICROSD-PI socket and connect it to the ESP32 using the shared SPI bus with a dedicated CS line. Add 3V3 and GND, and route the socket so the card can be inserted or serviced from the enclosure without opening the entire product.
- Install the NAU8315YG audio amplifier, connect its power input to the regulated 5V rail and GND, and wire the ESP32 I2S lines BCLK, LRC, and DIN to the amplifier input pins according to the amplifier reference design.
- Wire the FS3128NB0430-H14.6 speaker to the amplifier outputs SPK+ and SPK-, then mechanically secure the speaker to the enclosure front with a gasket or foam ring to improve sound quality and reduce rattling during playback.
- Install the four PUSH-04 tactile buttons and connect them to the ESP32 GPIO lines for Play/Pause, Volume Up, Volume Down, and Power/Wake. Configure each button to pull to ground with internal pull-ups enabled in firmware or fit external pull-up resistors if needed.
- Perform full wiring inspection and continuity checks: confirm no short between 3V3 and GND, no short between 5V and GND, correct battery polarity, valid SPI line continuity to PN532 and microSD, valid I2S line continuity to the amplifier, and proper button operation to ground.
Firmware Setup
- Set up the ESP32 firmware environment using ESP-IDF or Arduino-ESP32 with libraries for PN532 over SPI, microSD over SPI, Wi-Fi networking, HTTPS file download, I2S audio output, and OTA update support.
- Create a device configuration file on the microSD card with Wi-Fi credentials, default volume level, local content folder paths, and a simple NFC mapping table that links each NFC tag UID to an audio file or playlist such as /stories/story01.mp3.
- Implement boot logic so the ESP32 powers up, mounts the microSD card, initializes the PN532, scans button states, and starts the audio subsystem. Add a startup sound or short chime to confirm successful initialization without needing a screen.
- Program NFC behavior so when a PN532-detected card UID matches an entry in the mapping table, the ESP32 stops any current playback if needed and starts the assigned story file from the microSD card. If the UID is unknown, play a short 'card not recognized' sound.
- Add child-friendly button logic: Play/Pause toggles playback state, Volume Up and Volume Down adjust gain in safe increments, and Power/Wake enters or exits low-power mode. Limit the maximum volume in firmware to protect hearing.
- Implement Wi-Fi sync so the player connects to a configured network, checks a remote manifest for new story files and updated NFC mappings, downloads changed content to the microSD card, and verifies file integrity with checksums before activating the update.
- Enable OTA firmware update support over Wi-Fi and keep a recovery path through the serial flashing interface. Log key events such as boot result, NFC UID reads, sync status, and battery state to the serial console for manufacturing diagnostics.
Testing & Calibration
- Power the unit from USB-C first, verify charging behavior on the IP5306 stage, measure 3.3V and 5V rails under idle and playback load, then disconnect USB-C and confirm seamless battery-powered operation from the UBBP01 cell.
- Test the audio path by playing a known reference story file from the microSD card, listening for clean output, no clipping, and no idle hiss. Adjust firmware gain and amplifier configuration so bedtime stories are clearly audible but not excessively loud.
- Validate NFC performance by testing multiple story cards at the final enclosure position, checking read speed, repeatability, and orientation tolerance. If read range is poor, reposition the PN532 farther from the battery and speaker or reduce nearby metal.
- Test all four buttons for correct function, long-press and short-press behavior, wake from low-power mode, and reliable operation after repeated use. Confirm there are no accidental presses caused by enclosure interference.
- Run Wi-Fi sync and OTA tests with real content: upload a new story file and updated NFC mapping to the server, trigger sync, verify the file appears on the microSD card, then perform an OTA firmware update and confirm the device returns to normal playback afterward.
- Perform a final runtime and thermal check by looping story playback on battery for several hours, monitoring battery life, enclosure temperature near the amplifier and power section, and overall stability. Record the measured battery runtime as the MVP baseline.
设计文档
screen-free NFC story card audio player
A low-cost simple MVP handheld screen-free audio player for kids bedtime stories that uses NFC cards to trigger playback and supports Wi-Fi syncing and updates with USB-C rechargeable battery power.
Design Overview
| Item | Details |
|---|---|
| Product Type | screen-free NFC story card audio player |
| Key Functions | Play kids bedtime stories by reading NFC cards, Screen-free audio playback for simple child-friendly use, Wi-Fi content sync and firmware updates, Portable handheld operation with rechargeable battery |
| Power Source | USB-C 5V / Li-Ion Battery |
| Connectivity | WiFi |
| Size | small handheld player |
| Environment | indoor |
| Difficulty | Intermediate |
| Est. Time | 12-18 hours |
System Architecture
Power Topology: USB-C 5V enters the POWER module, which manages single-cell Li-Ion battery charging, protection, and power-path switching. The battery provides portable energy storage. The POWER module generates a regulated 3.3V rail for ESP32, PN532, and microSD storage, and a 5V rail for the MAX98357A audio amplifier. System can operate from USB-C power while charging the battery or from battery alone during handheld use.
Module List
| Module ID | Type | Name | Function | Voltage |
|---|---|---|---|---|
| POWER | POWER | USB-C 5V input + Li-Ion charger/protection + 3.3V/5V regulation | Accepts USB-C 5V power, charges single-cell Li-Ion battery, provides protected battery power and regulated rails for system operation | 5V/3.7V/3.3V |
| MCU | MCU | ESP32-WROVER-E | Main controller handling Wi-Fi connectivity, NFC card logic, audio streaming/decoding control, content sync, and firmware update | 3.3V |
| NFC_READER | SENSOR | PN532 NFC Reader | Reads NFC story cards/tags to trigger associated audio playback | 3.3V |
| AUDIO_AMP | ACTUATOR | MAX98357A I2S Class-D Audio Amplifier | Converts digital I2S audio from MCU into amplified mono speaker output | 5V |
| SPEAKER | ACTUATOR | 4 Ohm 3W Speaker | Outputs bedtime story audio for child-friendly playback | Audio output |
| FLASH_STORAGE | MODULE | MicroSD Card Socket | Stores audio story files, configuration data, and cached synced content | 3.3V |
| BUTTONS | SENSOR | Tactile Buttons | Provides simple child-friendly controls such as play/pause, volume up, volume down, and power/wake | 3.3V |
| BATTERY | POWER | Single-cell Li-Ion Battery | Portable rechargeable energy source for handheld operation | 3.7V |
Key Components
8/8 modules matched to real parts. See the BOM tab for the full component table.
USB-C 5V input + Li-Ion charger/protection + 3.3V/5V regulation (IP5306)
Best general match: IP5306 is the standard power-bank PMIC that accepts 5V input, charges a single-cell Li-ion battery,
ESP32-WROVER-E (ESP32-WROVER-E-N4R8)
ESP32-WROVER-E specifically matches the requested module family; N4R8 is a standard ESP32-WROVER-E variant, whereas opti
Single-cell Li-Ion Battery (UBBP01)
Best match for a single-cell rechargeable Li-Ion battery: explicitly a 3.7V 1.8Ah Li-Ion battery pack. More directly mat
Build Summary
- Difficulty: Intermediate
- Estimated time: 12-18 hours
- Tools required: soldering iron, solder, flux, multimeter, bench power supply, USB power meter
See the Build tab for the full step-by-step assembly guide.
Generated by YuanQi AI Design System · Query: I want ot design a screen-free story card audio player like Yoto (using NFC card)