47. How to Control the PWM Output with the ADC and a Potentiometer - STM32 ARM Microcontroller

Опубликовано: 20 Октябрь 2024
на канале: BuildYourCNC
14,071
216

Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
https://www.amazon.com/dp-B09PHBT859/...

I recommend using the STM32CubeIDE:
https://www.st.com/en/development-too...

You can still download the CoIDE here:
https://sourceforge.net/projects/coide/



Please watch: "Buildyourcnc CNC Router on Love Yurts"
   • Buildyourcnc CNC Router on Love Yurts   -~-
Patrick's Tip Jar:
bitcoin:1Gtawd29Sgu5CdvfUnkRg1YBfowCawjFdH
Ether:0xa962365100011B79097A7bb9DD51A53eE98266bb
If you have found this video to be helpful, consider making a tip. Thanks.

In this video, I start out trying a experiment that does not work where I try to read the PWM voltage out using the ADC, but the speed that the ADC reads the pin is too fast to discern the PWM output as a voltage (only as a pulse).

I continue with a more promising experiment where I control the PWM using the ADC that is varied with a potentiometer.



Equipment that I use to make videos:
Canon EOS Rebel: http://amzn.to/2rJSeh0
Macro Lens: http://amzn.to/2qaSKmK
Microphone: http://amzn.to/2qO2RB4
3D Mouse to rotate/zoom/move the object (Must have for CAD!!!): http://amzn.to/2ruFnSn
The drafting pencil I use on these videos: http://amzn.to/2qioYg2
The cheap oscilloscope that I use (because it's cheap and will work all of the projects in these tutorials): http://amzn.to/2rSHnBa
A better oscilloscope and the one I would recommend: http://amzn.to/2qizK5M
The brand of multimeter that I use and the one I recommend: http://amzn.to/2qicUez


Want to have your own Patreon campaign?   / wpllxz