Control DC Motor Via USB
![55edd0e267400cbda5000d9f.jpeg](/proxy/?url=https://content.instructables.com/F0R/YDXI/IE7JALK2/F0RYDXIIE7JALK2.jpg&filename=55edd0e267400cbda5000d9f.jpeg)
![Control a DC motor control via USB](/proxy/?url=https://content.instructables.com/FBE/SGVW/IE7JALKZ/FBESGVWIE7JALKZ.jpg&filename=Control a DC motor control via USB)
Hi guys,
In this project we will control a DC motor with a Windows PC via USB. Check the video to see it working!
you can visit my website for more information, sample code, schematics ....
Parts Required
![55edd45015be4de7cc0003fc.jpeg](/proxy/?url=https://content.instructables.com/FVY/WNX0/IE7JAMA1/FVYWNX0IE7JAMA1.jpg&filename=55edd45015be4de7cc0003fc.jpeg)
1x PC or Laptop with Windows XP, Vista, 7 or 8
1x Simplibox IO USB relay
1x DC motor
2x BreadboardJumper Cables
1x battery pack with cables
1x USB cable
Schematic
![dc motor.png](/proxy/?url=https://content.instructables.com/FWN/5GDD/IE7JAOF4/FWN5GDDIE7JAOF4.png&filename=dc motor.png)
Software
![NET sample.jpg](/proxy/?url=https://content.instructables.com/F2H/T7WQ/IE7JANMF/F2HT7WQIE7JANMF.jpg&filename=NET sample.jpg)
You can download a program to control the usb relay written in C# from our website. The source code is also available for free. Also other sample programs written in Python or C++ are available.
Test Your Work
![CIMG3403.JPG](/proxy/?url=https://content.instructables.com/FJT/QHWE/IE7JAKYI/FJTQHWEIE7JAKYI.jpg&filename=CIMG3403.JPG)
By setting one of the relays ON you will start the motor. You can change the direction of rotation by switching the other relay ON (and the first OFF)...