UPDATE! This video is now old! There is a new improved method of motor control that is not only easier, but more efficient. Watch my new tutorial here: http://youtu.be/JJXzlCK4vnY
WARNING! ERROR! There is a slight error in this video! Do not connect any of your Pi’s pins to ENA… Simply use a jumper to bridge the two male ENA pins. Watch the video and you’ll see the comment which explains this. Here is the correct configuration: https://www.theraspberrypiguy.com/wp-content/uploads/2014/08/rsz_dsc03386.jpg
I have reuploaded this video for reference’s sake as I have had 100s of requests for it to be made public again. I would like to stress that the new method (linked above) is miles better than the one demonstrated in this video!
In this tutorial I show you how to control a motor with your Raspberry Pi. By the end of this tutorial you will be able to control the direction of the motor, you will understand the basic principles of how that motor works and you will be able to decipher a simple Python program. Personally I think that controlling motors is one of the coolest things that you can do with the Pi and I truly hope that you enjoy this tutorial! Sorry for the long delay in between videos!
Buy a motor similar to my one from here: http://www.ebay.co.uk/itm/Arduino-Smart-Car-Robot-DC-3V-6V-Drive-Gear-Motor-with-tire-/161071687657?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item25809ee7e9
Buy a battery pack similar to my one from here: http://www.ebay.co.uk/itm/1-2-3-4-6-8-x-AA-AAA-23A-9V-Battery-Holder-Snap-On-Connector-Enclosed-Box-Switch-/180814661762?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item2a1964c882
Buy an L298N from this link here: http://www.ebay.co.uk/itm/L298N-Dual-H-Bridge-Stepper-Motor-Driver-Controller-Board-Module-Arduino-Ra-Pi-/130968976501?pt=UK_BOI_Industrial_Automation_Control_ET&hash=item1e7e5bfc75
Wires are easily available on eBay as well!
All of the code and information is in this forum post here: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=37&t=55288
Thanks for watching and please subscribe, like and comment!
The Raspberry Pi Guy
Y U NO SUBSCRIBE?!