

Waveform Gen ADSR
An amplitude-controlled version of the original AD9833 Waveform Generator FeatherWing.
- Size
- 50.8 × 22.9 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 28
- Nets
- 18
- Pads
- 102
- Tracks, vias
- 247, 27
- Pours
- 10
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 15 Nov 2022
- Updated
- 25 Jan 2025
Overview
Waveform Gen ADSR is an open-source printed circuit board by CedarGroveStudios, from the CedarGroveStudios/PCB_AD9833_ADSR_Featherwing repository on GitHub. It is a 2-layer board of 50.8 × 22.9 mm with 28 parts on 18 nets, routed with 247 tracks and 27 vias.
It is built around the AD9833BRM and LMV116MF. Its parts include 11 capacitors, 5 resistors, 3 ICs, 2 inductors and 1 diode.
Main components
2README
README.mdPCB_AD9833_ADSR_FeatherWing
An amplitude-controlled version of the original AD9833 Waveform Generator FeatherWing.

Overview
The AD9833 ADSR FeatherWing project is a software and hardware extension of previous work done on the AD9833 Waveform Generator FeatherWing. The ADSR project adds output amplitude control to simulate the Attack-Decay-Sustain-Release envelope needed to simulate musical instrument sounds. The AD9833 ADSR FeatherWing is an Adafruit Feather-compatible module. The Waveform Generator portion, controlled by SPI, produces an op-amp buffered sine, triangle, or square wave output with a practical frequency range of 0.5Hz to 100KHz with 0.1Hz resolution. The on-board AD5245 Digital Potentiometer is a 256-step 10K potentiometer controlled by I2C. This PCB version includes enhanced power supply noise reduction and an improved output buffer amplifier with higher gain-bandwidth product.
Example MIDI synthesizer and sweep generator code is provided in the repository (sweep example video: https://youtu.be/O1vMfLoCWzg). MIDI synthesizer and sweep generator code was tested with a Feather M4 Express using CircuitPython version 4.1.0 rc-1.
MIDI note input was received by a Classic MIDI Interface FeatherWing from a variety of MIDI sources. See https://github.com/CedarGroveStudios/Classic_MIDI_FeatherWing for details.
OSH Park shared PCB project: https://oshpark.com/shared_projects/nDZsxzWR
AD5245 Digital Potentiometer for Envelope Control
Unlike using the Feather's internal DAC as a multiplying DAC by applying a waveform to the DAC's reference voltage input, the digital potentiometer doesn't require a reference bias, eliminating the distortion that happens when the DAC's reference voltage is less than about 1v. The digital potentiometer's internal MOSFET switches are biased differently than a DAC, allowing the AD5245 potentiometer to control voltage values between ground and Vcc.

The resulting envelope met the original design expectations for distortionless scaling of the waveform's amplitude. The only issue faced was limited I2C data transfer rates during short-duration envelope segments such as shown during the Sustain segment below.

The latest version of the envelope segment control algorithm was modified to use a fixed time interval approach rather than a variable time interval based on segment duration. In the newest code, the digital potentiometer updates regularly every 1ms during segment generation, a speed easily accommodated by CircuitPython and the Feather M4 Express.

Primary Project Objectives
- Generate a smooth ADSR modulated waveform from the AD9833 across the audio spectrum (1Hz to 20KHz).
- Implement with CircuitPython code.
- Develop CircuitPython libraries for the AD9833 and AD5245.
- Improve output bandwidth.
- Reduce power supply noise bleedthrough.
Deliverables
- CircuitPython test, example, and library code
- Updated custom FeatherWing PCB
a) FeatherWing Implementation Chart
b) KiCAD schematic and board layout with Gerber code - OSH Park public shared project page
- GitHub public repository page
- Project description and report
Concepts Learned
- The digital potentiometer approach is very viable and eliminates the multiplying DAC reference input bias distortion issue.
- The digital potentiometer's 256-step resolution appears to be sufficient for artifactless envelope generation.
Next Steps
- Create a version of the PCB for the low-power AD9837 device (thanks to @jeffwurz).
- Design a Eurorack-compatible version that provides MIDI and CV/Gate inputs.
- Design a desktop test equipment version with display and selector knob.
- Incorporate the knowledge and experience gained in this project into the design of an Arbitrary Waveform Generator FeatherWing.

Parts
28| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 0.1uF | Capacitors_SMD:C_0805 | C1, C2, C6, C8 |
| 3 | 10uF | Capacitors_SMD:C_0805 | C7, C9, C11 |
| 2 | 0 | Inductors_SMD:L_0805 | L1, L2 |
| 2 | 0.01uF | Capacitors_SMD:C_0805 | C3, C5 |
| 2 | 10K | Resistors_SMD:R_0805 | R6, R7 |
| 2 | 20pF | Capacitors_SMD:C_0805 | C4, C10 |
| 2 | WAVE_GEN_LOGO | Adafruit:WAVE_GEN_LOGO | G***, G*** |
| 1 | 0 | Resistors_SMD:R_0805 | R5 |
| 1 | 200K | Potentiometers:Potentiometer_Trimmer_Bourns_PV36W | RV1 |
| 1 | 25.000MHZ | Oscillators:Oscillator_SMD_Abracon_ASV-4pin_7.0x5.1mm | X1 |
| 1 | 25.5K | Resistors_SMD:R_0805 | R4 |
| 1 | 470 | Resistors_SMD:R_0805 | R1 |
| 1 | AD5245 | TO_SOT_Packages_SMD:SOT-23-8 | U3 |
| 1 | AD9833 | Housings_SSOP:MSOP-10_3x3mm_Pitch0.5mm | U1 |
| 1 | Feather_M4_Express | Adafruit:Adafruit_Feather_M4_Express_bare | M1 |
| 1 | GRN | Adafruit:Cedar_Grove_logo_lighted | D1 |
| 1 | LMV116 | TO_SOT_Packages_SMD:SOT-23-5_HandSoldering | U2 |
| 1 | WAVE_OUT | Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm | J6 |
Similar boards
- 4 layers113 × 70.1 mm

- 2 layers80 × 65 mm

- 2 layers50.8 × 22.9 mm

Waveform Generator
CedarGroveStudios/AD9833_FeatherWing
Precision Waveform Generator FeatherWing
25 parts15 - 2 layers65 × 85 mm

Function Generator
MUDAL/Function-Generator
Custom Function Generator designed and developed by Olaoluwa Raji. This project is a complete embedded system solution with both hardware and software implemented by me. Relevant reference materials are included.
30 parts1GPL-3.0 - 2 layers127.1 × 61.8 mm

Impedance analyzer
Wang-ZiWen2006/impedance-analyzer-pcb
Custom in-home impedance analyzer pcb
16 parts1 - 2 layers28 × 25.5 mm

- 2 layers144 × 150 mm

Digifant2-pruefstand
designer2k2/digifant2-pruefstand
Automated test bench for the VW Digifant-2 ECU: Raspberry Pi Pico signal simulator and capture board (KiCad + firmware)
78 partsMIT - 2 layers295 × 150 mm

Questions
How big is the Waveform Gen ADSR PCB?
It measures 50.8 × 22.9 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Waveform Gen ADSR use?
28 parts, built around the AD9833BRM and LMV116MF. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Waveform Gen ADSR KiCad files?
From the CedarGroveStudios/PCB_AD9833_ADSR_Featherwing repository on GitHub, at the commit this page was made from: the board is PCB/Waveform_Gen_ADSR.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Waveform Gen ADSR design in my own project?
Its repository states no licence, so its author keeps all rights: ask CedarGroveStudios before reusing the design.