Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Dual Function Generator (DAC/DMA) part 2 | STM32 Tutorial #89

269 views on YouTube

This is part 2 of a multi-part video creating a dual channel function generator on a STM32 MCU.

Buy Streamline here: https://currentmakers.com/products/streamline

Raspberry Pi Pico World channel: https://www.youtube.com/@RPPicoWorld

Part 1 of this video: https://www.youtube.com/watch?v=50bHuO2Dfg0

ADC and DAC page on the STM32World wiki: https://stm32world.com/wiki/STM32_ADC_and_DAC_with_DMA

Original 1 channel Sine Wave: https://www.youtube.com/watch?v=0N4ECamZw2k
Blinky Orgy video explaining LED connectivity: https://www.youtube.com/watch?v=69pR3Eufhao

#STM32 #GettingStarted #Tutorial #STM32CubeIDE #STM32CubeMX #STM32World #CurrentMakers #Streamline #STM32F407

00:00 Intro
01:27 Recap of part 1 (but do go watch it if you have not)
02:15 The promise of part 1 to test calculation speed
07:08 Turning the dual sine generator into a proper function generator
07:36 Analyzing the user button on Streamline MCU STM32F407
08:18 Enabling the button interrupt in STM32CubeMX
09:58 Creating the external interrupt callback and set a flag
11:20 Handling the flag in the superloop
11:51 Running and testing
12:44 Adding an enum with the wave forms
13:28 Adding a wave type to our channel handler
14:46 Testing that it is still working
15:04 Changing the superloop to change wave type
16:20 Implementing new process_buffer thoughts
18:02 The full implementation – going through the steps
22:50 Successful build – testing it
27:40 Final thoughts and outtro