

Waveform Generator
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
3TLV2461ID
SOIC-8-40℃~+125℃ 1 1.3nA 1.6V/us 11nV/√Hz@1kHz 2.7V~6V 500uV 550uA 6.4MHz 7nA 80mA 85dB Enable/shutdown function Rail-to-Rail Input, Rail-to-Rail Output SOIC-8 Operational Amplifier ROHSTexas InstrumentsOperational AmplifierAD9833BRM
-- Direct Digital Synthesis (DDS)Analog DevicesDirect Digital Synthesis (DDS)ASV-25.000MHZ-E-T
SMD7050-4P-20℃~+70℃ 15mA 25MHz 3.3V HCMOS SMD7050-4P Crystal Oscillators ROHSAbraconCrystal Oscillators
README
README.mdA precision waveform generator FeatherWing
AD9833_FeatherWing

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.


Primary Project Objectives
- 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 - Implement with CircuitPython code
- Increase SPI communications knowledge
- Improve SMD soldering skills
- Improve conceptual knowledge
a. SPI communications
b. Swept frequency control
c. Digital signal generation
d. CircuitPython device drivers
e. ADSR envelope modulation (optional) - Fabricate physical equipment
a. Workbench fixed and swept signal generator
b. MIDI and CV controlled LFO and audio frequency Eurorack oscillator module
Deliverables
- Custom FeatherWing PCB, M4 Express pinout
- FeatherWing Implementation Chart
- CircuitPython device driver
- CircuitPython examples and test code
- KiCAD schematic and board layout with Gerber code
- OSH Park public shared project page
- GitHub public repository page
- Project description and report
- Workbench signal generator
- Eurorack module
Concepts Learned
- Solder paste stencil was essential for successful SOT-23 and MSOP-10 component soldering
- 10-bit waveform accuracy will be sufficient for most anticipated uses
- Waveform output amplitude was very stable from 0 to 250kHz
- 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
- The low peak of the waveform only reaches +150mV not 0V as anticipated
- Waveform generator DAC output filtering capacitance was listed incorrectly in the datasheet example; value used for manufacturer testing was correct
- Separate analog ground on the PCB helped to reduce analog output digital noise
- ADSR envelope generation will require additional circuitry (see https://github.com/CedarGroveStudios/AD9833_ADSR_FeatherWing for the full discussion of tests)
- 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
- 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

Parts
25| 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 | Adafruit:NetTie_0603 | R2, R3 |
| 2 | 0.01uF | Capacitors_SMD:C_0805 | C3, C5 |
| 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 | 20pF | Capacitors_SMD:C_0805 | C4 |
| 1 | 24.5K | Resistors_SMD:R_0805 | R4 |
| 1 | 40pF | Capacitors_SMD:C_0805 | C10 |
| 1 | 470 | Resistors_SMD:R_0805 | R1 |
| 1 | AD9833 | Housings_SSOP:MSOP-10_3x3mm_Pitch0.5mm | U1 |
| 1 | ASV-25.000MHZ-E-T | Oscillators:Oscillator_SMD_Abracon_ASV-4pin_7.0x5.1mm | X1 |
| 1 | Feather_M4_Express | Adafruit:Adafruit_Feather_M4_Express_bare | M1 |
| 1 | GRN | Adafruit:Cedar_Grove_logo_lighted | D1 |
| 1 | TLV2461 | TO_SOT_Packages_SMD:SOT-23-5_HandSoldering | U2 |
| 1 | WAVE_OUT | Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm | J6 |
Similar boards
- 2 layers80 × 65 mm

- 2 layers50.8 × 22.9 mm

Waveform Gen ADSR
CedarGroveStudios/PCB_AD9833_ADSR_Featherwing
An amplitude-controlled version of the original AD9833 Waveform Generator FeatherWing.
28 parts2 - 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

- 2 layers100 × 100 mm

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.