Skip to the content
2 layers50.8 × 22.9 mmWaveform Gen ADSR, the printed circuit board in 3D

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

2

README

README.md

PCB_AD9833_ADSR_FeatherWing

An amplitude-controlled version of the original AD9833 Waveform Generator FeatherWing.

Image of 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.

Digital Potentiometer Circuit Digital Potentiometer Circuit

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.

Digital Potentiometer Circuit

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.

FeatherWing Implementation Chart

Primary Project Objectives

  1. Generate a smooth ADSR modulated waveform from the AD9833 across the audio spectrum (1Hz to 20KHz).
  2. Implement with CircuitPython code.
  3. Develop CircuitPython libraries for the AD9833 and AD5245.
  4. Improve output bandwidth.
  5. Reduce power supply noise bleedthrough.

Deliverables

  1. CircuitPython test, example, and library code
  2. Updated custom FeatherWing PCB
    a) FeatherWing Implementation Chart
    b) KiCAD schematic and board layout with Gerber code
  3. OSH Park public shared project page
  4. GitHub public repository page
  5. Project description and report

Concepts Learned

  1. The digital potentiometer approach is very viable and eliminates the multiplying DAC reference input bias distortion issue.
  2. 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.

Digital Potentiometer Circuit

Parts

28
QtyValueFootprintReferences
40.1uFCapacitors_SMD:C_0805C1, C2, C6, C8
310uFCapacitors_SMD:C_0805C7, C9, C11
20Inductors_SMD:L_0805L1, L2
20.01uFCapacitors_SMD:C_0805C3, C5
210KResistors_SMD:R_0805R6, R7
220pFCapacitors_SMD:C_0805C4, C10
2WAVE_GEN_LOGOAdafruit:WAVE_GEN_LOGOG***, G***
10Resistors_SMD:R_0805R5
1200KPotentiometers:Potentiometer_Trimmer_Bourns_PV36WRV1
125.000MHZOscillators:Oscillator_SMD_Abracon_ASV-4pin_7.0x5.1mmX1
125.5KResistors_SMD:R_0805R4
1470Resistors_SMD:R_0805R1
1AD5245TO_SOT_Packages_SMD:SOT-23-8U3
1AD9833Housings_SSOP:MSOP-10_3x3mm_Pitch0.5mmU1
1Feather_M4_ExpressAdafruit:Adafruit_Feather_M4_Express_bareM1
1GRNAdafruit:Cedar_Grove_logo_lightedD1
1LMV116TO_SOT_Packages_SMD:SOT-23-5_HandSolderingU2
1WAVE_OUTPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJ6

Similar boards

  • 4 layers113 × 70.1 mmFull Board, the printed circuit board in 3D

    Full Board

    lballard9/GTRF-PCB

    103 parts
  • 2 layers80 × 65 mmRLCMeterH750 v2, the printed circuit board in 3D

    RLCMeterH750 v2

    balmerdx/RLCMeterH750

    Good RLC meter

    161 parts26
  • 2 layers50.8 × 22.9 mmWaveform Generator, the printed circuit board in 3D

    Waveform Generator

    CedarGroveStudios/AD9833_FeatherWing

    Precision Waveform Generator FeatherWing

    25 parts15
  • 2 layers65 × 85 mmFunction Generator, the printed circuit board in 3D

    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 mmImpedance analyzer, the printed circuit board in 3D

    Impedance analyzer

    Wang-ZiWen2006/impedance-analyzer-pcb

    Custom in-home impedance analyzer pcb

    16 parts1
  • 2 layers28 × 25.5 mmSlowdds, the printed circuit board in 3D

    Slowdds

    brightcloudy/pcb

    Some PCBs, hopefully

    34 partsMIT
  • 2 layers144 × 150 mmDigifant2-pruefstand, the printed circuit board in 3D

    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 mmRippleCharger, the printed circuit board in 3D

    RippleCharger

    HabonRoof/SRC-Charging

    Sinusoidal Charging for Li-ion Battery

    129 parts

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.