Buck Converter Transient Simulation

Done — I reran the full 0 to 5 ms transient for U4.
Result summary

Table


MetricResult
Startup to 90% of 3.3 V283.75 µs
Startup to 99% of 3.3 V494.50 µs
Peak startup voltage3.2956 V
Startup overshoot above 3.3 V0.0 mV
Pre-step average VOUT3.2961 V
Minimum VOUT after 2 ms load step2.8787 V
Peak undershoot below 3.3 V421.3 mV
Maximum rebound after step3.5786 V
Peak overshoot above 3.3 V after step278.6 mV
Post-step settled average VOUT3.2607 V
Settled within ±1% of final post-step value by2.4655 ms
What the plots show
  • Startup ramp: monotonic rise, reaching regulation in about 0.5 ms
  • Load step at 2 ms: significant droop, then rebound above nominal before settling
  • Transient behavior: this condition looks fairly aggressive for the requested 100 mA → 1 A step
Files now available
You should see these in the Files section:
  • rt8059_full_0_5ms.png
  • rt8059_startup_zoom.png
  • rt8059_load_step_zoom.png
  • rt8059_equiv_buck_transient.csv
  • rt8059_metrics.txt
Important note
I could not use a vendor SPICE macro-model for U4, so this run used a datasheet-equivalent closed-loop buck model. That means the startup and load-step waveforms are useful for engineering guidance, but the exact overshoot/undershoot numbers should be treated as approximate rather than silicon-accurate.
If you want, I can next:
  • tune the equivalent model for a more realistic response, or
  • extract ripple / inductor current details from the generated CSV.
Extract ripple metrics
Tune transient model
Check compensation parts
MK1
C2
Capacitance
100nF
C28
Capacitance
100nF
C4
Capacitance
100nF
C14
Capacitance
27pF
C20
Capacitance
10uF
C12
Capacitance
100nF
C13
Capacitance
27pF
C1
Capacitance
100nF
C10
Capacitance
100nF
C26
Capacitance
100nF
C9
Capacitance
100nF
C5
Capacitance
100nF
C6
Capacitance
100nF
C25
Capacitance
100nF
C11
Capacitance
1uF
C8
Capacitance
1uF
C27
Capacitance
100pF
C3
Capacitance
100nF
C7
Capacitance
100nF
C17
Capacitance
10uF
MIC_SCL
QSPI_SD0
QSPI_SS
SD_DATA1
LORA_RX
LORA_NRST
SD_CLK
QSPI_SD2
SD_CMD
MIC_WS
QSPI_SD1
SD_DATA3
USB_D-
XOUT
LORA_RX
LORA_NRST
C24
Capacitance
10uF
SD_DATA0
C18
Capacitance
100nF
XIN
~USB_BOOT
QSPI_SS
SD_CMD
MIC_SDA
QSPI_SD3
SD_CLK
C29
Capacitance
100nF
LORA_TX
SD_DATA2
C19
Capacitance
68pF
SD_DATA2
C15
Capacitance
10uF
DHT_DATA
LORA_TX
SD_DATA1
QSPI_SCLK
USB_D-
QSPI_SD1
C21
Capacitance
100nF
C16
Capacitance
4u7 F
C22
Capacitance
4u7 F
XOUT
SD_DATA0
DHT_DATA
XIN
MIC_SDA
SD_DATA3
QSPI_SD2
QSPI_SCLK
QSPI_SD3
MIC_SCL
QSPI_SD0
USB_D+
MIC_WS
USB_D+
C23
Capacitance
100nF
EXTERNAL FLASH CIRCUIT
+3V3
D2
Color
Green
VUSB
D1
J5
R15
Resistance
10kΩ
Can connect a DHT11 or DHT22 Sensor
User LED for blinking and testing the board
R10
Resistance
470 Ω
R19
Resistance
1k5 Ω
One-Wire protocol relies on the bus being pulled high by the pull-up resistor when not actively transmitting
Cl = 2(Ccap_load - Cstray)
R9
Resistance
10kΩ
SOLAR POWER INTERFACE
R14
Resistance
6k8 Ω
R8
Resistance
15kΩ
VBAT
R13
Resistance
68kΩ
VUSB
VBAT
+3V3
VSOLAR
LoRa MODULE
R4
Resistance
1kΩ
VSOLAR
TEMP & HUMIDITY CIRCUIT
R2
Resistance
27.4 Ω
POWER CIRCUIT
Pull up resistors
Line 1
R6 and r9 are are pull ups for the SD Card line
Line 2
Line 2
Termination resistors
+3V3
+3V3
R18
Resistance
1kΩ
C8 Should be close to pin 44 of RP2040
R11
Resistance
1k5 Ω
Q1 Disconnects SOLAR input when both SOLAR and USB are connected. NOTE: This is a depletion type mosfet
MICROCONTROLLER
R16
Resistance
50 Ω
VBAT
+1V1
D4
Color
Red
+3V3
+1V1
+3V3
C11 Should be close to pin 45 of RP2040
RF filter capacitors, C27, should be the closest to the microphone
+3V3
Iset = 6800 / Rset = 1A
R17
Resistance
50 Ω
R7
Resistance
2kΩ
R12
Resistance
50 Ω
R1
Resistance
27.4 Ω
I_ch = (Vset / Rset) * 900 = 900mA
MICROPHONE CIRCUIT
+1V1
R5
Resistance
5kΩ
+3V3
R3
Resistance
10kΩ
R6
Resistance
10kΩ
+3V3
+3V3
SD CARD CIRCUIT
+3V3
+3V3
+3V3
USB INTERFACE
+3V3
D5
Color
Green
J2
SW1
J6
J3
U3
SW2
Q1
U5
L2
Inductance
2u2 H
J4
U1
Y1
J1
U2
U6
U4

Refine this doc
Ask about this doc
AvocAudio — Core Project Definition
1. Project Purpose
AvocAudio is a compact field-deployable TinyML audio acquisition board built around the Raspberry Pi RP2040. Its primary role is to capture usable audio for on-device or offline TinyML workflows, store recordings locally, and transmit low-bandwidth status or event data over LoRaWAN. The platform is intended for battery-powered outdoor or remote deployments with optional solar support.

2. Primary Product Goals
  • Capture speech and environmental audio with sufficient quality for TinyML feature extraction and classification
  • Log audio data reliably to removable storage for dataset creation and validation
  • Operate from lithium-ion battery power with support for solar-assisted deployment
  • Use LoRaWAN for telemetry, health reporting, and event summaries rather than continuous audio transport
  • Remain compact, low-power, and practical for community and research use

3. System Definition
Core Processing
  • MCU: Raspberry Pi RP2040
  • Handles microphone data capture, buffering, storage control, local preprocessing, and system coordination
Audio Front End
  • Microphone: Digital MEMS microphone, Knowles SPH0645LM4H-B
  • Intended for speech and environmental sound capture
  • Digital interface reduces analog routing sensitivity but still depends on clean clocks, power integrity, and good physical placement
Data Storage
  • Primary storage: microSD card
  • Used for raw or preprocessed audio logging, dataset collection, and field retrieval
Wireless Connectivity
  • Radio: LoRa-E5 LoRaWAN module
  • Used for low-data-rate telemetry, event flags, summaries, and device status
  • Not intended for raw audio streaming
Power Subsystem
  • Sources: Lithium-ion battery and solar input
  • Must support stable low-noise operation during audio capture, storage writes, and radio activity

4. Functional Requirements
Audio Capture Requirements
  • Must reliably capture the fundamental pitch range of human speech from approximately 85 Hz to 255 Hz
  • Must preserve useful harmonics and speech detail to at least 1 kHz for robust TinyML feature extraction
  • Must support audio sampling at 16 kHz minimum
  • Should support higher sampling rates when broader environmental sound analysis is needed
  • Audio quality must remain usable during normal operation, including SD logging and periodic radio activity
TinyML Suitability Requirements
  • Captured audio must be suitable for speech recognition, keyword spotting, and general sound classification workflows
  • The signal chain must preserve time-domain and frequency-domain features used by common TinyML pipelines, such as spectrogram and mel-feature generation
  • The system should favor consistency and repeatability over hi-fi playback quality
Storage Requirements
  • Must log audio to microSD without routine sample loss during nominal operation
  • Must tolerate repeated power cycles and field deployment use
  • Firmware must buffer writes so temporary SD latency does not immediately cause dropped audio
Communication Requirements
  • Must support LoRaWAN transmission of low-bandwidth information such as device health, event counts, summaries, and inferred labels
  • The project does not require continuous wireless audio transmission
Power Requirements
  • Must operate stably from lithium-ion battery power
  • Power architecture must avoid introducing noise that materially degrades microphone performance or digital audio integrity
  • The design should support long-duration, low-maintenance deployment scenarios

5. Engineering Constraints
  • RP2040 memory and processing resources are limited, so buffering and preprocessing must be designed carefully
  • LoRaWAN bandwidth is far too limited for continuous raw audio transport
  • Battery and solar operation impose a strict energy budget
  • Real audio quality depends on firmware timing, PCB layout, enclosure acoustics, and power cleanliness, not just component selection
  • Simultaneous audio capture, SD writes, and radio activity can create contention for timing, power, and EMC margin

6. Current Capability Assessment
Based on the current project definition and audio subsystem selection:
  • The hardware is fundamentally capable of capturing the human voice pitch range required for speech-oriented TinyML tasks
  • The microphone choice is suitable for speech and general embedded sound classification work
  • The strongest technical risks are not basic bandwidth limitations, but rather implementation quality in firmware, layout, buffering, and power behavior
7. Major Technical Risks
  • Incorrect digital microphone timing may produce corrupted, shifted, or unstable audio samples
  • Power-supply noise may reduce effective audio quality or introduce artifacts
  • microSD write latency may cause dropped samples if buffering is insufficient
  • Radio activity or poor layout partitioning may inject interference into the audio subsystem
  • Poor enclosure design or microphone placement may reduce real-world capture quality even if the electronics are correct
  • Very loud near-field sources may cause clipping or loss of detail even if normal speech is handled well

8. Success Criteria
The project is successful when all of the following are true:
  • Speech is captured clearly enough to support TinyML preprocessing and classification
  • Audio across the key speech band is stable, intelligible, and free of major corruption
  • No persistent clipping, gross distortion, or severe data loss occurs during normal operation
  • Audio can be logged to removable storage reliably and retrieved consistently
  • The system remains stable on battery power under realistic field conditions
  • LoRaWAN telemetry functions correctly for status and event reporting

9. Validation Priorities
  1. Verify microphone clocking, framing, and digital data integrity
  2. Measure practical audio quality using recorded speech, FFT inspection, and spectrogram review
  3. Validate buffered SD logging under worst-case write latency conditions
  4. Check whether concurrent radio and storage activity degrade audio capture
  5. Confirm stable operation on battery and solar-assisted power scenarios
  6. Evaluate real enclosure and placement effects on microphone performance

  • Add or confirm any microphone interface details recommended by the microphone datasheet, especially bus-biasing and power decoupling practices
  • Treat firmware buffering and timing validation as first-order design tasks, not secondary polish
  • Prioritize low-noise power delivery and physical separation between audio, radio, and switching power domains
  • Test with both speech-focused and environmental-sound datasets to confirm the board meets actual TinyML workflow needs
11. Condensed Conclusion
  • AvocAudio is a practical TinyML audio capture platform centered on reliable embedded data collection rather than high-fidelity audio reproduction
  • The current architecture is appropriate for speech and sound classification tasks
  • Final system quality will be determined primarily by implementation discipline in firmware, layout, storage handling, and acoustic integration
  • 1. Project Purpose

  • 2. Primary Product Goals

  • 3. System Definition

  • Core Processing

  • Audio Front End

  • Data Storage

  • Wireless Connectivity

  • Power Subsystem

  • 4. Functional Requirements

  • Audio Capture Requirements

  • TinyML Suitability Requirements

  • Storage Requirements

  • Communication Requirements

  • Power Requirements

  • 5. Engineering Constraints

  • 6. Current Capability Assessment

  • 7. Major Technical Risks

  • 8. Success Criteria

  • 9. Validation Priorities

  • 10. Recommended Near-Term Improvements

  • 11. Condensed Conclusion

Assets

oshw-logo.svg

oshw-logo

microphone.svg

microphone

ESD_(Susceptible).svg

ESD_(Susceptible)

AvocAudio v1.svg

AvocAudio v1Default

AvocAudio: A tinyML community board v1

AvocAudio: A tinyML community board v1 thumbnail
AvocAudio is a compact tinyML community board designed for extensive audio data collection for various tinyML applications. It leverages the Raspberry Pi RP2040 and integrates a LoRa-E5 LoRaWAN Transceiver Module for connectivity. Equipped with an SD card slot for local data storage, the board ensures efficient data collection. The board operates on solar power or a lithium-ion battery, ensuring flexible and efficient energy use. #audioDevices #raspberryPi #rp2040 #lorawan #iot #solar

Properties

Scientific

RoHS

3.3

LoRaWAN

Buttons

Microphone, Temperature sensor, Humidity sensor

SD Card

Audio

Pricing & Availability

Distributor

Qty 1

Controls