Arduino Tutorial 40: Controlling DC Motor Speed and Direction with Pushbuttons

6 6 views
11m Dec 10, 2019

In this tutorial we show how to control the speed and direction of a DC motor using two push buttons. One increments speed, and the other decrements speed. We look at the special cases needed to make things work smoothly.

You can get the kit I am using for this series at the following link:

Follow these lessons for free at our WEB site:

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

[Disclosure of Material Connection: I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to This means if you visit the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.]

About Paul McWhorter

I am Paul McWhorter from and I will be putting together a series of tutorials on use of the Arduino microcontroller.


Markdown is supported.
EEVblog – E1214
1 year ago
EEVblog – E1306
6 months ago
The Defpom – E47
4 years ago