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

Precision Waveform Generator FeatherWing

Size
50.8 × 22.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
15
Pads
90
Tracks, vias
145, 20
Pours
8
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
22 Jul 2019
Updated
12 Oct 2022

Overview

Waveform Generator is an open-source printed circuit board by CedarGroveStudios, from the CedarGroveStudios/AD9833_FeatherWing repository on GitHub. It is a 2-layer board of 50.8 × 22.9 mm with 25 parts on 15 nets, routed with 145 tracks and 20 vias.

It is built around the TLV2461ID, AD9833BRM and ASV-25.000MHZ-E-T. Its parts include 11 capacitors, 5 resistors, 2 ICs, 1 diode and 1 connector.

Main components

3

README

README.md

A precision waveform generator FeatherWing

AD9833_FeatherWing

Image of Module

Overview

The AD9833 Precision Waveform Generator FeatherWing is an Adafruit Feather-compatible module. The Waveform Generator 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.

  • Frequency accuracy and stability is determined by the on-board 25MHz +/- 100ppm crystal oscillator (Abracon ASV-25.000MHZ-E-T).
  • Waveform Generator control is via the Feather SPI bus; chip select is provided by the D6 GPIO pin.
  • Output signal peak-to-peak amplitude is adjustable with a maximum unipolar output of slightly less than 3.3 volts.
  • Output can optionally be connected to the A2 analog input pin via an on-board jumper for real-time output signal monitoring.
  • The wing derives its power from the host Feather's 3.3V power.

The AD9833 Precision Waveform Generator FeatherWing was tested with a Feather M4 Express using CircuitPython version 4.1.0 rc-1. Example sweep generator code is provided in the repository (sweep example video: https://youtu.be/O1vMfLoCWzg).

OSH Park project: https://oshpark.com/shared_projects/al6aPN0u

Refer to the Analog Devices' AD9833 Waveform Generator data sheet for device control protocol details.

Fritzing Image

FeatherWing Implementation Chart

Primary Project Objectives

  1. Generate useful waveforms in the audio frequency range a. Highly accurate and stable absolute frequency: ±0.5Hz, 1000ppm
    b. Moderately accurate waveform shape: 8-bit minimum
    c. Fixed 3.0 volt peak-to-peak output, centered at 1.5 volts
  2. Implement with CircuitPython code
  3. Increase SPI communications knowledge
  4. Improve SMD soldering skills
  5. Improve conceptual knowledge
    a. SPI communications
    b. Swept frequency control
    c. Digital signal generation
    d. CircuitPython device drivers
    e. ADSR envelope modulation (optional)
  6. Fabricate physical equipment
    a. Workbench fixed and swept signal generator
    b. MIDI and CV controlled LFO and audio frequency Eurorack oscillator module

Deliverables

  1. Custom FeatherWing PCB, M4 Express pinout
  2. FeatherWing Implementation Chart
  3. CircuitPython device driver
  4. CircuitPython examples and test code
  5. KiCAD schematic and board layout with Gerber code
  6. OSH Park public shared project page
  7. GitHub public repository page
  8. Project description and report
  9. Workbench signal generator
  10. Eurorack module

Concepts Learned

  1. Solder paste stencil was essential for successful SOT-23 and MSOP-10 component soldering
  2. 10-bit waveform accuracy will be sufficient for most anticipated uses
  3. Waveform output amplitude was very stable from 0 to 250kHz
  4. Output buffer op-amp gain-bandwidth product limit contributes significantly to high frequency roll-off but also smooths the digital feedthrough components of the waveform
  5. The low peak of the waveform only reaches +150mV not 0V as anticipated
  6. Waveform generator DAC output filtering capacitance was listed incorrectly in the datasheet example; value used for manufacturer testing was correct
  7. Separate analog ground on the PCB helped to reduce analog output digital noise
  8. ADSR envelope generation will require additional circuitry (see https://github.com/CedarGroveStudios/AD9833_ADSR_FeatherWing for the full discussion of tests)
  9. Output frequency change throughput of the CircuitPython example code (using the cedargrove_AD9833 library) is approximately 450usec, allowing for frequency sweep steps and modulation rates of > 2k changes(steps) per sec
  10. CircuitPython driver code was simpler to create than anticipated
    a. CircuitPython SPI communications techniques are well-documented
    b. Command register protocol was thoroughly explained in the device datasheet
    c. Non-typical clock polarity was the only issue to overcome

Next Steps

  • Finish the ADSR envelope generation tests and incorporate additional components in the v02 PCB design
  • Replace the existing op-amp with higher gain-bandwidth version
  • Consider a FeatherWing-sized dual-output version
  • Incorporate the knowledge and experience gained in this project with the design of an Arbitrary Waveform Generator FeatherWing

Image of Test Setup

Parts

25
QtyValueFootprintReferences
40.1uFCapacitors_SMD:C_0805C1, C2, C6, C8
310uFCapacitors_SMD:C_0805C7, C9, C11
20Adafruit:NetTie_0603R2, R3
20.01uFCapacitors_SMD:C_0805C3, C5
2WAVE_GEN_LOGOAdafruit:WAVE_GEN_LOGOG***, G***
10Resistors_SMD:R_0805R5
1200KPotentiometers:Potentiometer_Trimmer_Bourns_PV36WRV1
120pFCapacitors_SMD:C_0805C4
124.5KResistors_SMD:R_0805R4
140pFCapacitors_SMD:C_0805C10
1470Resistors_SMD:R_0805R1
1AD9833Housings_SSOP:MSOP-10_3x3mm_Pitch0.5mmU1
1ASV-25.000MHZ-E-TOscillators:Oscillator_SMD_Abracon_ASV-4pin_7.0x5.1mmX1
1Feather_M4_ExpressAdafruit:Adafruit_Feather_M4_Express_bareM1
1GRNAdafruit:Cedar_Grove_logo_lightedD1
1TLV2461TO_SOT_Packages_SMD:SOT-23-5_HandSolderingU2
1WAVE_OUTPin_Headers:Pin_Header_Straight_1x02_Pitch2.54mmJ6

Similar boards

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

    Waveform Gen ADSR

    CedarGroveStudios/PCB_AD9833_ADSR_Featherwing

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

    28 parts2
  • 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 Generator PCB?

It measures 50.8 × 22.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Waveform Generator use?

25 parts, built around the TLV2461ID, AD9833BRM and ASV-25.000MHZ-E-T. 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 Generator KiCad files?

From the CedarGroveStudios/AD9833_FeatherWing repository on GitHub, at the commit this page was made from: the board is PCB/Waveform_Generator.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Waveform Generator design in my own project?

Its repository states no licence, so its author keeps all rights: ask CedarGroveStudios before reusing the design.