Direct Digital Synthesis - How DDS Works and an Arduino Example @GadgetReboot
Direct Digital Synthesis - How DDS Works and an Arduino Example  @GadgetReboot
Uploaded April 2021 | Updated September 2026, 2 weeks ago
Direct digital synthesis (DDS) generators can make it easy to generate signals from square/ramp/sine to any arbitrary waveform with Arduino. The frequency can be set in the sketch and the system takes care of making it happen.

Here's an overview of how the DDS concept works and a demo for an Uno. The circuit is shown with the waveforms on a scope and is also simulated online with Tinkercad's free Uno simulator.

Timing:
0:00 Intro
1:03 Basic DDS: Counter with R-2R Resistor ladder DAC simulated on an Uno in Tinkercad
2:58 Change from Ramp to Square wave
3:18 DDS Sine wave generator using look up table
4:21 DDS block diagram and functional description
7:05 Phase accumulator - lots of bits
9:57 DDS system equation for calculating the tuning word
10:36 DDS generator Uno sketch and hardware demo on a scope
13:18 Summary

Sketch github.com/GadgetReboot/DDS_Generator_For_Uno
DDS System block diagram, info, and equation from Analog.com analog.com/en/analog-dialogue/articles/all-about-direct-digital-synthesis.html
Tinkercad Circuits tinkercad.com/learn/circuits
Resistor Ladder DAC en.wikipedia.org/wiki/Resistor_ladder
Nyquist conditions en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem
Numerically controlled oscillator en.wikipedia.org/wiki/Numerically-controlled_oscillator

Support the channel by using these affiliate links to check out Banggood's sale on Tools & Electronics this month (2021 4.07 - 4.18) :
Banggood hot brand tools bit.ly/3dSyO2l
Electronic Brand Sale bit.ly/2PHpeau
Creality 7th Anniversary Sale bit.ly/3d0fLUi

Equipment I regularly use (support the channel by shopping through these affiliate links - I may earn a small commission and it doesn't cost you extra):
Mustool MT315 Digital Microscope banggood.com/custlink/KKvhiw1F6F
946C Solder Hot Plate 200mm x 200mm banggood.com/custlink/K3DyiNZy0l
ANENG AN8008 True RMS Multimeter banggood.com/custlink/KKDh9267Fz
Minleaf NPS3010W Power Supply banggood.com/custlink/KKKdtaNN9A
FY6900 Dual Channel 60MHZ Signal Generator banggood.com/custlink/vGKR9r6RkR
Siglent SDS1104X-E 100Mhz Digital Oscilloscope 4 Channels Standard decoder
Amazon.com: amzn.to/36fH1ui
Amazon.ca: amzn.to/36fNWUc

Support me on Patreon: patreon.com/gadgetreboot
LBRY/Odysee: odysee.com/@GadgetReboot:4
#ElectronicsCreators
Direct Digital Synthesis - How DDS Works and an Arduino ExampleMIDI In/Out/Thru Interface for ArduinoHow to Use a Digital Pot with Arduino - AD5242Mailbag!MCP42100 Digital Pot Breakout BoardMailbagUPDI Programmer using Arduino Uno for ATTiny 0-Series 1-Series etcESP32-C3 Based Super Mini Mega TesterOven Repair: Broil Element Not Working - Relay ReplacementMailbag!A Sketchy ToolMailbag!
Gadget Reboot |

Direct Digital Synthesis - How DDS Works and an Arduino Example

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER