Papers
Topics
Authors
Recent
Search
2000 character limit reached

On-Device Wavetable Sonification

Updated 12 July 2026
  • The paper presents an edge-first approach that maps soil moisture sensor data directly to acoustic output with low latency and high reliability.
  • The prototype uses a Raspberry Pi Pico with a wavetable synthesis engine and linear interpolation, rendering a three-voice chord for precise, real-time auditory feedback.
  • The study demonstrates that perceptually informed mappings of pitch and timbre can support effective water management by encoding moisture trends in embedded systems.

Searching arXiv for the specified paper and closely related work on sonification, IoS, and wavetable synthesis. On-device wavetable sonification is a device-level sonification approach in which sensor data are mapped directly to acoustic parameters and rendered locally on embedded hardware, rather than being transmitted to cloud services for later auditory display. In the Internet of Sounds (IoS), this positions synthesis at the network edge and makes audible feedback available during the sensing task itself. A representative implementation is described for soil moisture monitoring in water-scarcity contexts, where immediate, local feedback is intended to support irrigation decisions by encoding dryness and moisture through pitch, timbre, and temporal structure (Roddy, 23 Sep 2025).

1. Scope, motivation, and IoS context

Sonification is defined as “the mapping of data to sound to communicate information about the original data source.” In the cited implementation, the target domain is soil moisture monitoring within the broader context of globally increasing water scarcity. The motivating use case is practical and local: during watering, stakeholders often need immediate feedback to avoid overwatering and to optimize irrigation (Roddy, 23 Sep 2025).

The device-level placement is central. Earlier work is described as focusing on sonifications operating on the applications and services level of the IoS network infrastructure, whereas the present approach explores on-device sonification. The reported advantages over cloud-level sonification are lower latency, higher reliability, lower power and bandwidth demand, privacy and data minimization, and robustness to environmental constraints. Audible feedback is generated within the device’s audio buffer, “typically a few milliseconds,” enabling real-time response while watering. Sonification also remains available without network connectivity, because there is no dependency on gateways or back-end services. Only sensor polling and local audio are required, and data can be logged locally with only summary statistics sent when needed. Headphone output is specifically identified as a way to avoid acoustic masking by ambient noise and to remove the need for external speakers or remote audio endpoints (Roddy, 23 Sep 2025).

Within this framing, on-device wavetable sonification is not merely an overview choice but an edge-computing strategy for IoS. A plausible implication is that the method is best understood as an “edge-first” auditory display architecture: sensing, mapping, and rendering are co-located, while uplink is optional and summary-oriented rather than central to operation.

2. Edge architecture and operating modes

The prototype implements on-device wavetable sonification at the IoS network edge. The sensor is an MH-series soil moisture hygrometer, characterized as a resistive voltage-divider probe for which increased moisture reduces resistivity and increases sensed voltage. Its typical probe length is approximately 6 cm6\ \mathrm{cm}, which is described as suitable for shallow-rooting plants. The signal chain in the second prototype is:

Sensor probe \rightarrow ADC (RP2040 analog input) \rightarrow MCU/DSP (Raspberry Pi Pico) \rightarrow wavetable engine (CircuitPython synthio; ulab-backed arrays) \rightarrow I2S \rightarrow DAC (PCM5100A on Pimoroni Pico Audio Pack) \rightarrow headphone amplifier (PAM8908JER) \rightarrow headphones (Roddy, 23 Sep 2025).

The microcontroller is a Raspberry Pi Pico with RP2040, dual-core ARM Cortex-M0+ at 133 MHz133\ \mathrm{MHz}, approximately 264 KB264\ \mathrm{KB} SRAM, and approximately \rightarrow0 on-board flash, expandable via SD. Audio is rendered through a PCM5100A DAC, with stereo 16-bit at \rightarrow1 in practice, and a PAM8908JER headphone amplifier. The software environment is CircuitPython 9.2.7 with synthio for audio synthesis and ulab for vectorized numeric arrays. Although interpreted Python is slower than C/C++, the synthio and ulab cores are described as compiled for performance.

Three operating modes are defined. In datalogging mode, the device performs \rightarrow2 sensor logging to flash as a text file. In live sonification mode, the current readings are mapped in real time while a button is pressed. In historical sonification mode, the logged time series is replayed as impulses at \rightarrow3. Mode selection occurs via boot script, and switching modes requires reboot to change file access between read and write. Scheduling is cooperative rather than RTOS-based: audio runs as a continuous stereo I2S stream from synthio with internal buffering, while the application loop updates oscillator parameters and mappings. With typical audio buffer sizes such as 128 samples, output latency at \rightarrow4 is approximately \rightarrow5. Sensor polling is \rightarrow6 for logging, and faster polling is described as possible for live mode, such as tens of hertz, with smoothing to reduce jitter (Roddy, 23 Sep 2025).

The IoS communication layer is intentionally secondary. The prototype emphasizes local operation and logging, while noting that integration with MQTT, CoAP, or HTTP can be added to publish aggregated statistics or threshold events. The on-device sonification remains primary, and example uplink content includes daily minimum and maximum moisture values and watering events.

3. Wavetable synthesis implementation

The synthesis engine uses single-cycle waveforms of length \rightarrow7 samples stored in ulab arrays as signed 16-bit integers. Two tables are used: sine and falling sawtooth. The storage format is 16-bit fixed-point samples, and oscillator math can use fixed-point phase for efficiency. The oscillator core is described by the phase increment

\rightarrow8

and the phase update

\rightarrow9

Linear interpolation is used within a table, with \rightarrow0 and \rightarrow1:

\rightarrow2

Timbre morphing is achieved by linear interpolation between the sine and saw tables, controlled by the normalized or filtered moisture value \rightarrow3:

\rightarrow4

The sawtooth table is anti-aliased through additive construction with a controlled number of harmonics \rightarrow5:

\rightarrow6

The design rule is to choose \rightarrow7 such that the highest partial remains below Nyquist. With \rightarrow8 for D5 and \rightarrow9, the highest partial is approximately \rightarrow0, which is below \rightarrow1 at a \rightarrow2 sampling rate, thereby avoiding aliasing while retaining brightness (Roddy, 23 Sep 2025).

Amplitude and spectral shaping are intentionally conservative. The system applies a gentle amplitude envelope with approximately \rightarrow3 attack and \rightarrow4 decay, used per-note impulse in historical mode and sustained while the button is held in live mode. A resonant low-pass filter with cutoff approximately \rightarrow5 and \rightarrow6 is used to reduce harshness and alias-prone energy. Stereo panning assigns the root to center, the third to approximately \rightarrow7 left, and the fifth to approximately \rightarrow8 right. Polyphony consists of a three-voice chord—root, third, and fifth—whose pitch relationships are musical and MIDI-coded before conversion to frequency, with the stated purpose of aiding perceptual discrimination.

The implementation details reinforce the embedded orientation of the method. The sample rate is \rightarrow9, output is stereo 16-bit, and the memory footprint for the two core tables is approximately \rightarrow0. CPU utilization is described as bounded by synthio’s C-coded engine, with adequate headroom on RP2040 for a 3-voice chord and simple filtering at \rightarrow1. The paper also recommends a 32-bit fixed-point phase accumulator, for example Q16.16 format, to minimize floating-point overhead and maintain precision. Application-loop parameter updates occur at a control rate such as \rightarrow2–\rightarrow3, relying on I2S clocking and synthio to maintain the continuous stream.

4. Soil-moisture mapping strategy

The sensor measurement \rightarrow4 may be ADC counts or voltage. The normalization procedure uses calibration bounds \rightarrow5 and \rightarrow6:

\rightarrow7

To reduce jitter, smoothing is recommended through an exponential moving average:

\rightarrow8

Pitch mapping uses inverse polarity, so higher moisture yields lower pitch. For the three chord tones, the low-frequency set associated with moist conditions is G3 \rightarrow9, B3 \rightarrow0, and D4 \rightarrow1; the high-frequency set associated with dry conditions is G4 \rightarrow2, B4 \rightarrow3, and D5 \rightarrow4. The per-voice mapping is

\rightarrow5

This produces a one-octave span per voice. Dry soils therefore produce brighter, higher chords, while moist soils produce lower, smoother chords (Roddy, 23 Sep 2025).

Amplitude mapping is optional:

\rightarrow6

Timbre selection uses the moisture-dependent wavetable index. With \rightarrow7 tables, sine and saw, the system can use

\rightarrow8

or continuously interpolate with \rightarrow9 for smoother timbre transitions. In live mode, timbre morphs as watering changes moisture, while the initial chord encodes baseline moisture. In historical mode, each data point is rendered as an impulse at \rightarrow0, making trend perception possible over time; the paper reports that participants recognized decreasing moisture. The design also proposes threshold earcons for crossing dry or moist thresholds and trend earcons for rapid change as an extension rather than a completed part of the prototype.

Calibration is treated as site-specific. The paper advocates observing minimum and maximum sensor values for the relevant soil composition and remapping accordingly. If a voltage-to-volumetric water content model is required, the standard forms given are

\rightarrow1

No coefficients are provided for the MH-series probe, and the dependence on sensor and soil type is stated explicitly.

A worked example in the paper fixes \rightarrow2, \rightarrow3, \rightarrow4 counts, \rightarrow5 counts, and a measured value \rightarrow6 counts. The raw normalization is approximately \rightarrow7; with \rightarrow8 and previous smoothed \rightarrow9, the updated smoothed value is approximately \rightarrow0. That value is also used as the timbre factor \rightarrow1, placing the sound midway between sine and saw. For the root voice, the mapped frequency is approximately \rightarrow2, with a phase increment of approximately \rightarrow3 samples per audio sample. The resulting chord is described as lying in the middle of the specified octave span with a moderately bright timbre.

5. Evaluation and perceptual interpretation

The evaluation is a preliminary user study with \rightarrow4. In live discrimination, 6 users correctly identified the more moist plant, and the Likert moisture rating mean for the wet soil was \rightarrow5 with \rightarrow6. The same number, 6 users, correctly identified the drier plant, and the Likert moisture rating mean for the dry soil was \rightarrow7 with \rightarrow8. In historical mode, 6 users correctly identified that moisture levels were falling; perceived rate of change was \rightarrow9 with 133 MHz133\ \mathrm{MHz}0 on a 1–5 scale. On the BUZZ scale for auditory interface user experience, the mean was 133 MHz133\ \mathrm{MHz}1 with 133 MHz133\ \mathrm{MHz}2, corresponding to approximately 133 MHz133\ \mathrm{MHz}3 effectiveness with moderate inter-user disagreement (Roddy, 23 Sep 2025).

The stated interpretation is cautious. While preliminary, users generally distinguished moisture differences and recognized decreasing trends. The sonification is said to support decision-making by encoding dryness as higher, brighter, rougher timbres and moisture as lower, smoother timbres, allowing listeners to gauge when to stop watering and to perceive short-term trends. Because the study is explicitly preliminary and because the BUZZ result indicates moderate inter-user disagreement, the evidence supports feasibility rather than definitive generalization.

A common misconception in this area is that increased synthesis complexity necessarily improves perceptual clarity. The prototype history points in the opposite direction for this task. The first prototype used FM synthesis, but audio fidelity and the need to discriminate sidebands were reported as mismatched for single-variable moisture sonification on minimal hardware. Wavetable synthesis was then selected because it provided efficient timbral control at low CPU cost, a direct mapping between data and spectral brightness via table morphing, and alignment with auditory display literature emphasizing parametric mappings and timbre control. This does not imply that FM is categorically unsuitable; it indicates that, in this particular single-variable embedded monitoring context, wavetable synthesis was judged more appropriate.

6. Trade-offs, constraints, and deployment practice

The design trade-offs are presented explicitly. Table size trades timbral richness against memory consumption: larger tables reduce interpolation error but increase memory usage, and 133 MHz133\ \mathrm{MHz}4 samples is described as a good compromise. Interpolation method trades CPU cost against refinement: linear interpolation is inexpensive and perceptually adequate, while cubic interpolation is heavier and “rarely necessary on RP2040.” Anti-aliasing strategy trades memory against spectrum management: a bandlimited saw created additively avoids aliasing without multiple sub-tables, whereas multi-band tables would increase memory use (Roddy, 23 Sep 2025).

Several limitations and risks are identified. Sensor reliability and calibration drift are important because resistive probes can corrode, and calibration must be revisited for each soil type due to large variability in wilting point, field capacity, and available water across textures such as clay and sand. Environmental noise remains a concern despite the mitigation provided by headphones; in communal settings, speaker-based diffusion may require louder output or earcons. The energy budget constrains long-term battery operation, which requires careful duty-cycling and low control-rate polling, and the headphone amplifier adds power draw. Scalability across many nodes is limited by the local nature of on-device sonification, although fleet management can publish summaries via MQTT or CoAP, with TLS or DTLS required for secure uplink. Accessibility is also identified as a design consideration: mappings should be perceptually informed, and alternative cues such as earcons or haptics should be considered for users with hearing differences. Future work is expected to refine mappings in order to improve inter-user agreement, a need suggested by the BUZZ scores.

The deployment guidance consolidates these constraints into practice. The paper recommends modular separation of sensing, calibration, mapping, synthesis, and logging, with clear interfaces and isolated testing. Calibration should be performed per soil and site by recording minimum and maximum values under known wet and dry conditions, and, if VWC is needed, fitting a linear or quadratic model with site-specific coefficients. Perceptually informed mappings are emphasized: inverse pitch mapping with dry mapped higher, and timbre brightness with dry mapped toward saw, are recommended because they align with listener expectations summarized in the text as “rough/bright 133 MHz133\ \mathrm{MHz}5 dry; smooth/dark 133 MHz133\ \mathrm{MHz}6 moist.” The octave span should remain limited to one octave, and overcomplicated timbres should be avoided. Audio hygiene involves bandlimiting the saw content through additive construction and keeping the filter and envelope gentle. Scheduling guidance is to keep audio buffers short for low latency, poll sensors at a reasonable control rate with exponential moving average smoothing, and avoid blocking I/O in the audio loop. Field maintainability includes preference for headphone output, protection of probes from corrosion, documentation of calibration steps, SD-based logging, and choosing probe depth consistent with the root zone, with the given prototype being suited to shallow-root plants.

Taken together, these design choices define on-device wavetable sonification as a lightweight, perceptually structured, and edge-resident auditory display method for soil moisture monitoring. In the reported IoS implementation, its technical identity is determined by local synthesis, low-latency buffered audio, site-specific calibration, and a tightly constrained mapping from moisture to pitch and spectral brightness, all directed toward immediate irrigation feedback under water-scarcity conditions (Roddy, 23 Sep 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to On-Device Wavetable Sonification.