Project Documentation


Created 7 project docs

Project Specification

View Document

Project Specification Project Overview
Status: Review
A compact, battery-powered tinyML audio and environmental data-collection board based on the RP2040. The device records digital microphone data to microSD, can attach a DHT11/DHT22 sensor, and reports status or summarized data over LoRaWAN through a LoRa-E5 module. It supports USB or solar-assisted charging of a single-cell Li-ion/Li-polymer battery and is packaged in a two-piece FDM enclosure.
Intended Use
  • Community development and field data collection for tinyML audio applications.
  • Local audio capture and storage where Wi-Fi is unavailable.
  • Periodic low-bandwidth LoRaWAN telemetry rather than streaming raw audio over LoRa.
  • Prototype and validation platform; the current revision is not yet production-qualified.

Power Budget

View Document

Power Budget Status and Method
Status: Preliminary engineering budget for review. It is grounded in the live schematic, but several load currents are planning allowances because the exact SD card, DHT sensor, firmware duty cycle, battery, and solar panel are not selected.
The power path is:
Confirmed Electrical Facts
  • Main regulated system rail: +3V3.
  • Internal RP2040 core rail: +1V1, generated by the RP2040 internal regulator.
  • Battery rail: VBAT, a single Li-ion/Li-polymer cell charged to 4.2 V by U5.
  • Charge-current intent: approximately 900 mA according to the schematic annotation and R7 = 2 kOhm.
  • U4 RT8059 is rated in project component data as a 1 A buck converter with 2.8 V to 5.5 V input.

Firmware Getting Started

View Document

Firmware Getting Started Platform and Toolchain
  • MCU: RP2040 U1
  • Framework: Arduino-Pico
  • Build system: PlatformIO
  • Debug: USB serial for logs, SWD through J8 for recovery and source-level debugging
  • Flash: W25Q128JVSIQ external QSPI, 16 MiB
Pin Mapping Recommended Firmware State Machine PlatformIO Configuration
The exact Arduino-Pico release and SDIO/I2S libraries must be pinned after a compile-tested implementation. The microSD wiring is 4-bit SD, not conventional SPI; do not silently substitute an SPI example without rewiring hardware.
Initial Bring-Up Source
This source is intentionally limited to peripherals that can be initialized with stable Arduino-Pico APIs from the confirmed schematic: USB logging, user LED, DHT, LoRa UART/reset,...

Board Bring-Up Plan

View Document

Board Bring-Up Plan Prerequisites
  • Current-limited bench supply, battery simulator or protected single-cell battery, DMM, oscilloscope, logic analyzer, USB cable, SWD probe, known-good microSD card, LoRa antenna, and optional DHT11/DHT22.
  • Start without battery, SD card, antenna pigtail stress, or external sensor fitted unless the step requires it.
  • Use ESD precautions for U1, U2, U6, MK3, and RF connector J4.
  • Never transmit U6 without an appropriate antenna connected.
  • Initial current limit: 100 mA for static rail checks; raise only after the rail is verified.
1. Visual and Unpowered Inspection
  • Verify orientation and solder quality of U1, U2, U4, U5, U6, D1, Q2, LEDs, and polarized connectors.
Show 3 More
Created and verified seven detailed project files grounded in the current schematic, BOM, PCB layout, firmware history, and enclosure design:
Open items
  • Battery capacity, protection, and permitted charge rate remain unspecified.
  • Solar-panel rating, recording duty cycle, LoRa interval, and runtime target are unspecified.
  • The buck-only 3.3 V supply may lose regulation as the Li-ion cell discharges.
  • SDIO and I²S firmware still require compile-tested library implementations.
  • Charge current, power consumption, thermal behavior, RF performance, and enclosure fit require physical measurements.
Suggested next steps
  1. Select the battery and solar panel, then finalize the power budget.
  2. Run a complete schematic/ERC and power-path review.
  3. Implement and compile-test the audio and SDIO firmware.
  4. Execute the board bring-up and validation plans on assembled hardware.

Verification and Validation Plan
Purpose
Define the evidence required to move this revision from digital prototype to a credible field prototype. This plan covers electrical, firmware, RF, storage, acoustic, power, thermal, mechanical, and environmental behavior.
Requirement Traceability

Table


IDRequirementVerification methodPass criterion
SYS-01Boot reliably from all supported sources100-cycle automated power test100/100 successful boots per source
PWR-013.3 V remains valid in active modesOscilloscope and current logging3.135 to 3.465 V, no resets
PWR-02Safe charge behaviorBattery simulator and thermal testCorrect CC/CV behavior, no component exceeds approved limit
PWR-03Defined low-battery behaviorVBAT sweep under loadClean shutdown before rail causes corruption
AUD-01Capture usable audioCalibrated tone/noise recordingsNo dropped buffers; repeatable amplitude and spectrum
SD-01Sustain logging30-minute and 24-hour write testsNo checksum errors or filesystem corruption
RF-01Join and uplinkLoRaWAN gateway testJoin and 100 consecutive acknowledged/observed uplinks at test condition
RF-02Antenna integration is safeMechanical and RF inspectionNo connector strain; acceptable link margin in intended enclosure
SNS-01Read selected DHT sensorChamber/reference comparisonWithin sensor specification and no bus lockups
USB-01Enumerate and transferMultiple hosts/cablesReliable enumeration and firmware update
DBG-01Recover through SWDDeliberately broken applicationMCU detectable and reprogrammable
MEC-01PCB fits enclosurePrinted sample and assembly inspectionNo collisions, pinching, or inaccessible required interface
MEC-02User-accessible controls/interfacesRepeated insertion/operation test100 cycles without damage or unacceptable force
ENV-01Survive intended temperaturePowered thermal soakNo resets, storage errors, or unsafe temperature
Test Articles
  • EVT-A: bare board for probing and rail characterization.
  • EVT-B: assembled board with selected battery, antenna, SD card, and DHT sensor.
  • EVT-C: complete device in the printed enclosure.
  • Keep at least one unmodified control unit.
Electrical Tests
  • Static rail accuracy at minimum, nominal, and maximum source voltage.
  • Startup/shutdown waveforms and rail sequencing.
  • Dynamic droop during SD write, LoRa TX, and simultaneous operation.
  • Quiescent current in charger-only, dormant, idle, logging, and radio modes.
  • Short-circuit/current-limit behavior of U3 using controlled electronic load.
  • Battery reverse connection policy and outcome; do not perform destructive reversal unless protection is explicitly designed.
  • USB/solar source handover and reverse-current checks.
Thermal Tests
  • Measure U5, U4, U3, D1, Q2, L2, U6, battery connector, and enclosure interior.
  • Conditions: low battery while charging, maximum USB input, representative solar input, continuous recording, repeated LoRa TX, and worst overlap.
  • Run open-board and enclosed tests.
  • Define component-specific limits from exact datasheets before final pass/fail; until then, stop any test showing rapid thermal runaway, odor, deformation, or battery temperature rise.
Audio Tests
  • Sample-rate accuracy and long-term clock drift.
  • Silence noise floor, 1 kHz amplitude, frequency sweep, clipping level, and channel selection.
  • Buffer overrun counter during SD and radio activity.
  • Compare bare board versus enclosure and free-air versus resting on a flat surface.
  • Check self-noise from buck converter, SD activity, LEDs, and LoRa transmissions.
  • Evaluate whether a hydrophobic acoustic membrane is needed for field deployment.
Storage Tests
  • Card identification and filesystem mount across at least three card models/capacities.
  • Sustained write throughput and maximum write latency.
  • Power interruption during active logging, followed by filesystem recovery.
  • Full-card and write-protect behavior.
  • File rollover, timestamps, metadata integrity, and corrupted-record handling.
LoRaWAN Tests
  • Correct regional band and channel plan.
  • OTAA join success after cold boot and network loss.
  • Payload encoding/decoding and frame-counter persistence.
  • Duty-cycle/dwell-time compliance.
  • Link margin at intended deployment distance and antenna orientation.
  • Coexistence with audio and SD operation.
  • Recovery after module reset, UART error, and gateway outage.
Firmware Robustness
  • Watchdog recovery from deliberate task stalls.
  • Boot-loop prevention after repeated peripheral failure.
  • Configuration CRC/version migration.
  • SD absent, DHT absent, LoRa absent, and antenna-test lockout behaviors.
  • Log reset cause and critical faults.
  • Fuzz or boundary-test all command/configuration inputs.
Mechanical and User Tests
  • Print at least three enclosure sets on the intended printer/profile.
  • Measure tongue/pocket fit, screw engagement, board support, and connector alignment.
  • Cycle USB, SD, battery, sensor, debug, antenna pigtail, BOOT, and RESET access 100 times.
  • Verify no screw tip protrudes and no cable is pinched.
  • Confirm LED visibility under expected lighting.
  • Inspect microphone openings for support material and occlusion.
Environmental Tests
  • Temperature targets must be selected from the battery, SD card, enclosure, and intended use; do not inherit the MCU rating for the whole product.
  • Condensation, dust, moisture, UV, and corrosion tests are required for outdoor claims.
  • The current enclosure has open acoustic and connector paths and therefore has no ingress rating.
  • Perform ESD testing at user-accessible connectors and buttons after adding a defined protection strategy.
Data Recording
For each test record:
  • Board serial number and hardware revision.
  • Firmware commit and build flags.
  • Battery, SD card, antenna, DHT, solar source, and enclosure revision.
  • Test equipment and calibration status.
  • Raw logs, waveforms, photos, ambient conditions, result, and anomaly disposition.
Release Gates
Field prototype
  • Bring-up plan passed.
  • No destructive power, charging, or thermal faults.
  • 24-hour combined logging test passed.
  • Low-battery shutdown and filesystem recovery demonstrated.
  • Enclosure access and antenna strain relief accepted.
Production-intent revision
  • Final requirements approved.
  • ERC/DRC and manufacturing review clean.
  • BOM lifecycle and alternates approved.
  • EMC/RF pre-scan complete.
  • Battery and charging safety reviewed against the selected cell.
  • Regulatory test plan and labeling complete.
  • Production programming and end-of-line test defined.
  • Purpose

  • Requirement Traceability

  • Test Articles

  • Electrical Tests

  • Thermal Tests

  • Audio Tests

  • Storage Tests

  • LoRaWAN Tests

  • Firmware Robustness

  • Mechanical and User Tests

  • Environmental Tests

  • Data Recording

  • Release Gates

  • Field prototype

  • Production-intent revision