There is thousands of motor driver, do you find an easy way to measure the drive current? That is what this motor shield do. The drive chip is L298N. The following steps is how to control two DC motors and how to measure the drive current. With it, you will make your control system more smart.
Step 1: Prepare Tools and Parts
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/15/04/63497272130619/0/measure-drive-current.w1456.jpg)
Crowduino with micro USB. (it is 100% compatible with Arduino Duemilanuve, it added an XBee Socket)
Battery Holder With Switch - 4 x AA or DC 9v power supply.
and Computer.
Step 2: Connect DC Motor to Motor Shield.
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/66/41/63497273106291/0/measure-drive-current.w1456.jpg)
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/74/98/63497273155119/0/measure-drive-current.w1456.jpg)
Step 3: Connect Power Supply to Motor Shield
There are two ways to power the system. One is powered by 4XAA battery, the other way is powered by DC 9v power supply
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/66/30/63497272991818/0/measure-drive-current.w1456.jpg)
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/95/25/63497273042783/0/measure-drive-current.w1456.jpg)
Step 4: Connect Crowduino to Computer & Upload Demo Code
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/63/80/63497273205320/0/measure-drive-current.w1456.jpg)
download Motor shield demo code. open it with Arduino IDE, then upload the code to Crowduino.
Step 5: Plus Motor to Crowduino
Disconnect the USB with Crowduino, then plus motor Shield on Crowduino. Connect with DC 9v power supply or push the switch of the battery holder on.
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/03/94/63497274230960/0/measure-drive-current.w1456.jpg)
connect to computer via micro USB.
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/82/99/63497274339395/0/measure-drive-current.w1456.jpg)
Step 6: Watch Current via Serial Port
Open the Serial port, then you can watch the drive current of each DC motor.
![How to Measure the Drive Current.](https://img.gadgethacks.com/img/09/64/63497274491106/0/measure-drive-current.w1456.jpg)
Just updated your iPhone? You'll find new features for Podcasts, News, Books, and TV, as well as important security improvements and fresh wallpapers. Find out what's new and changed on your iPhone with the iOS 17.5 update.
Be the First to Comment
Share Your Thoughts