Direct Digital Synthesis - How DDS Works and an Arduino Example

6 Просмотры
Размещено
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 https://github.com/GadgetReboot/DDS_Generator_For_Uno
DDS System block diagram, info, and equation from Analog.com https://www.analog.com/en/analog-dialogue/articles/all-about-direct-digital-synthesis.html
Tinkercad Circuits https://www.tinkercad.com/learn/circuits
Resistor Ladder DAC https://en.wikipedia.org/wiki/Resistor_ladder
Nyquist conditions https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem
Numerically controlled oscillator https://en.wikipedia.org/wiki/Numerically-controlled_oscillator

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 https://www.banggood.com/custlink/KKvhiw1F6F
946C Solder Hot Plate 200mm x 200mm https://www.banggood.com/custlink/K3DyiNZy0l
ANENG AN8008 True RMS Multimeter https://www.banggood.com/custlink/KKDh9267Fz
Minleaf NPS3010W Power Supply https://www.banggood.com/custlink/KKKdtaNN9A
FY6900 Dual Channel 60MHZ Signal Generator https://www.banggood.com/custlink/vGKR9r6RkR
Siglent SDS1104X-E 100Mhz Digital Oscilloscope 4 Channels Standard decoder
Amazon.com: https://amzn.to/36fH1ui
Amazon.ca: https://amzn.to/36fNWUc

Support me on Patreon: https://www.patreon.com/gadgetreboot
LBRY/Odysee: https://odysee.com/@GadgetReboot:4
Категория
Ардуино
Комментариев нет.