Back to Browse

How To Control Brushed DC Motors & H-bridge in Python

1.3K views
Dec 16, 2024
22:07

This is a followup video on using PWM with Python and the Raspberry Pi. The first video covered how to control LED brightness using PWM, while this video goes into detail on how to control the speed and direction of brushed DC motors using an H-bridge, and covers topics both on the hardware side of things and the software side as well. Like, subscribe, and stay tuned for more guides, tutorials, and projects in future videos. Practical Electronics & Circuits 101 playlist: https://youtube.com/playlist?list=PLlLR7EXXYZ0YcMaDjlh_1T-_dr_zAZpFM&si=RtpQ4EEvT2swVO0A Raspberry Pi & SBC Playlist: https://www.youtube.com/playlist?list=PLlLR7EXXYZ0bZl0azi5-OelwdpHxFYX5G Written Guide: https://phazertech.com/tutorials/rpi-gpio.html Article on dealing with motor noise: https://www.pololu.com/docs/0J15/9 L293D H-bridge 10 pack on Amazon: https://amzn.to/49DTHul Purchase a Raspberry Pi on Amazon Raspberry Pi 5 8GB: https://amzn.to/4gb1ceq Raspberry Pi 5 4GB: https://amzn.to/4igE404 Raspberry Pi 4 Model B 4GB: https://amzn.to/4252Xnr Raspberry Pi 3 Model B+: https://amzn.to/424PegC Raspberry Pi Zero 2 W: https://amzn.to/3UQhmSD Raspberry Pi Zero WH: https://amzn.to/4aZLlNU These are affiliate links where I earn a small commission for purchases at no extra cost to you. This is the easiest way to help the channel, thank you! Amazon: https://amzn.to/484HUnU Website: https://phazertech.com/ Donations Buy me a coffee: https://www.buymeacoffee.com/phazertech Chapters 00:00 Intro 01:15 H-bridge circuit & how to connect everything 07:20 Decoupling capacitors 09:54 Today's example & bug in RPi-lgpio library 12:37 Explaining the code 18:17 Demo running the program 21:26 Outro

Download

0 formats

No download links available.

How To Control Brushed DC Motors & H-bridge in Python | NatokHD