#72 Arduino controlled Dual PWM controller & Timer thoughts
New! https://ralphbacon.blog
PWM is easy to do on the Arduino, but flawed in its native implementation. Thank goodness we have a brilliant PWM library to help us out. Flawed? Help out? Why do we need helping out? Watch the video and find out!
Here's how to control TWO PWM motors independently with a single rotary potentiometer (resistor) and a switch to tell the Arduino which output you're currently controlling.
I also show you why the three independent timers on the Arduino are so useful but why you should never adjust the Timer Zero if you want your sketches to run without potentially weird results.
This is a personal project that implements several of the techniques I've described in my previous videos and demonstrates I really do what I say in those videos. It's not just theory, it's real life implementation. You might want to do something similar to control two motors on a robot arm, car, tank or something else.
Oh, there's a short clip in the video of me constructing this on my workbench - please forgive the total chaos there as I was in the middle of another project when I decided to complete this one. I'm ashamed of the mess shown there! But you do get to look at the "Strange Third Hand" unit which I'm finding invaluable when building projects like this.
---------------------------
DOWNLOAD
---------------------------
The PWM library, the project (demo) sketch and anything else I can find that might be useful can all be found here on GitHub. Just click the "Clone or Download" button to download a zipped file which Windows or Mac will unzip for you.
https://github.com/RalphBacon/Dual-PWM-Controller
If you like this video please give it a thumbs up, share it and if you're not already subscribed please do so :)
My channel is here:
------------------------------------------------------------------
https://www.youtube.com/c/RalphBacon
------------------------------------------------------------------
How can I remember this? Memory tip: "See" Ralph Bacon, geddit?
Видео #72 Arduino controlled Dual PWM controller & Timer thoughts канала Ralph S Bacon
PWM is easy to do on the Arduino, but flawed in its native implementation. Thank goodness we have a brilliant PWM library to help us out. Flawed? Help out? Why do we need helping out? Watch the video and find out!
Here's how to control TWO PWM motors independently with a single rotary potentiometer (resistor) and a switch to tell the Arduino which output you're currently controlling.
I also show you why the three independent timers on the Arduino are so useful but why you should never adjust the Timer Zero if you want your sketches to run without potentially weird results.
This is a personal project that implements several of the techniques I've described in my previous videos and demonstrates I really do what I say in those videos. It's not just theory, it's real life implementation. You might want to do something similar to control two motors on a robot arm, car, tank or something else.
Oh, there's a short clip in the video of me constructing this on my workbench - please forgive the total chaos there as I was in the middle of another project when I decided to complete this one. I'm ashamed of the mess shown there! But you do get to look at the "Strange Third Hand" unit which I'm finding invaluable when building projects like this.
---------------------------
DOWNLOAD
---------------------------
The PWM library, the project (demo) sketch and anything else I can find that might be useful can all be found here on GitHub. Just click the "Clone or Download" button to download a zipped file which Windows or Mac will unzip for you.
https://github.com/RalphBacon/Dual-PWM-Controller
If you like this video please give it a thumbs up, share it and if you're not already subscribed please do so :)
My channel is here:
------------------------------------------------------------------
https://www.youtube.com/c/RalphBacon
------------------------------------------------------------------
How can I remember this? Memory tip: "See" Ralph Bacon, geddit?
Видео #72 Arduino controlled Dual PWM controller & Timer thoughts канала Ralph S Bacon
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
#71 How to create an Arduino Library - easy!Arduino Basics Change your PWM FrequencyCargador de Baterías de Gel con Arduino PWM | Sponsor LCSC#19 How to use a Rotary Encoder with an Interrupt routine on your ArduinoArduino Temperature Controlled Fan Speed#228 ESP32 Over the Air (OTA) Updates with ONE LINE are EASY!Complete Guide for 15A 400W MOSFET AOD4184A to control motor or loadGoing Beyond Arduino #6: Timer 0 and PWMDIY Detector de Metales/DIY metal detectorCoordinated stepper motor control (arduino)Arduino PulseIn - Wie analoge PWM-Signale einer RC Fernsteuerung eingelesen und ausgewertet werdenArduino Tutorial #3 - Shift Registers (74HC595)You can learn Arduino in 15 minutes.Make a cheaper and good quality AC-DC power supply by our DPS5005 USB-BT and our caseArduino Deep Dive - Digital Input and Output - Analog Input - PWM Output - Simply Put#BB5 Moving your Arduino to a multi-tasking State Machine - Easy IntroFuente Digital Ajustable con Arduino 2019 (video 3) : Placa de Control de Potencia.Using LCD Displays with ArduinoArduino Timer Interrupts tutorial