User Tools

Site Tools


digispark:tutorials:motor

This is an old revision of the document!


Motor Shield Kit Tutorial

Product Description:

motor.jpgmotor2.jpgmotor1.jpg

The Motor Shield Kit allows you to connect two DC motors to the Digispark development board. The Motor Shield connects the TB6612FNG Dual Motor Driver to the Digispark allowing the Digispark to control up to two DC motors, up to 15VDC, 1.2A per channel (3.2A peak). The Motor Shield kit uses two inverters to allow each motor attached to the TB6612FNG to be controlled with only two i/o lines from the Digispark, four total.

This is an unassembled kit and requires surface mount soldering. This is designed for use with the Digispark development board, which is not included.

Parts:

Part Quantity Identification
Motor Shield PCB1
TB6612FNG Dual Motor Driver1
CMOS Inverter (M74VHC1GT04DTT1G)2
10uf Capacitor - Electrolytic 1
0.1uf Capacitor - Ceramic 1
1x40pin male 0.1“ pitch header 15 pins worth

Note: This kit requires surface mount soldering, if you are new to soldering please practice with other components first.

Soldering: If you are new to soldering we recommend the following tutorials: Soldering Basics (http://www.sparkfun.com/tutorials/106) and Soldering Crash Course from the folks at Sparkfun (http://www.sparkfun.com/tutorials/354). How to solder from the Curious Inventor: http://store.curiousinventor.com/guides/How_to_Solder

Assembly:

Note: While we did not do this for the tutorial photos, if we were going to rewrite and photograph this we'd attach the inverters and motor driver before putting on the capacitors, this will allow those to be soldered to a board that will lay flat.

Empty kit bag (or if using a raw PCB, aquire parts) and verify contents. Note for Kickstarter Backers and Pre-orders: Headers are not included in each kit bag, but the entire order came with more than enough headers for all kits.

motor.jpg

Insert the 0.1uf capacitor. Solder the leads and clip off the excess.

Insert the 10uf capacitor, ensure that the shorter lead is inserted into the hole with the - sign next to it. Solder the leads and clip off the excess.

motor6.jpg

Solder the two inverters to the board.

motor5.jpg

Solder the TB6612FNG Dual Motor Driver to the board- matching the pin one circle on the chip with the one printed on the board.

motor4.jpg

Cut three lengths of male headers 2 pins long. Insert into corresponding positions (on the top of the board) and solder each pin.

motor3.jpg

Cut a length of male headers 6 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin.

motor2.jpg

Tip: Inserting the headers into a breadboard and then placing the board on top can make this process easier.

Note: If you are using stackable headers, use them here instead of the standard male headers.

Code:

See the Motor example included with the Digispark Arduino Addon.

digispark/tutorials/motor.1355904239.txt.gz · Last modified: 2012/12/19 00:03 by digistump