Changes between Version 9 and Version 10 of ControlSystems/Electrical/Training/Arduino/Lesson6
- Timestamp:
- Oct 25, 2015, 10:26:16 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/Electrical/Training/Arduino/Lesson6
v9 v10 51 51 We will use an [https://www.adafruit.com/products/81 Arduino motor shield] to control the direction and speed of the DC motors in our mini-bots. Although you can program the shield yourself, a convenient [https://learn.adafruit.com/adafruit-motor-shield/library-install library] is available for download. 52 52 53 The motor shields are based on the [http://www.rakeshmondal.info/L293D-Motor-Driver L293D motor driver]. The L293D is an integrated circuit (IC) designed for DC motor control made by Texas Instruments; you can see the datasheet [http://www.ti.com/lit/ds/symlink/l293.pdf here]. The L293D allows the 5v outputs of your Arduino to control the flow of electricity to motors up to 36v and 600mA (with suitable heat sink). We use the L293D shields because they are very inexpensive, however they use BJT technology, not MOSFETs so they can easily overheat. An easy upgrade to the motor shields we have is to replace the socketed L293D chips with a more modern TI [http://www.ti.com/lit/ds/symlink/sn754410.pdf SN754110] (available [https://store.ti.com/SN754410NE.aspx here]) which can supply more current (see [http://webbot.org.uk/WebbotLibDocs2/44212.html here]. Note that for either chip, if running at high current, it would probably be a good idea to attach a heat sink to the package using thermally conductive glue to help withdissipation.53 The motor shields are based on the [http://www.rakeshmondal.info/L293D-Motor-Driver L293D motor driver]. The L293D is an integrated circuit (IC) designed for DC motor control made by Texas Instruments; you can see the datasheet [http://www.ti.com/lit/ds/symlink/l293.pdf here]. The L293D allows the 5v outputs of your Arduino to control the flow of electricity to motors up to 36v and 600mA (with suitable heat sink). We use the L293D shields because they are very inexpensive, however they use BJT technology, not MOSFETs so they can easily overheat. An easy upgrade to the motor shields we have is to replace the socketed L293D chips with a more modern TI [http://www.ti.com/lit/ds/symlink/sn754410.pdf SN754110] (available [https://store.ti.com/SN754410NE.aspx here]) which can supply 1A vs. 600mA (see [http://webbot.org.uk/WebbotLibDocs2/44212.html here]). Note that for either chip, if running at high current, it would probably be a good idea to attach a heat sink to the IC package using thermally conductive glue to help with heat dissipation. 54 54 55 55 **Exercise**: Connect a motor shield to an arduino and use it to control the speed and direction of one of the mini-bot gear motors. If your USB port can't power the motor (very possible), use an AA battery pack (see a mentor) to provide a separate power source for the motors via the motor shield power connections.