How-To #7: Assemble an H-bridge Circuit Board

Similar documents
How-To #3: Make and Use a Motor Controller Shield

Digital Pins and Constants

Number Name Description Notes Image 0101 Resistor, 100 ohm. brown-black-browngold. ¼ watt, 5% tolerance, red-red-brown-gold. brown-black-red-gold.

Assembly Guide. LEDs. With these assembly instructions, you can easily build your own SWT16. All required components are included in this kit.

PN PSTK-120 PowerSwitch Tail 120vac Kit PN PSTK-240 PowerSwitch Tail 240vac Kit

Installation/assembly manual for DCC/Power shield

AXE Stack 18. BASIC-Programmable Microcontroller Kit. An inexpensive introduction to microcontroller technology for all ability levels

!There are two kit models. The ZCTK-120 is designed to operate with.!the pulse output is isolated from the mains line voltage. A pull-up resistor

Button Code Kit. Assembly Instructions and User Guide. Single Button Code Entry System

Lesson 8: Digital Input, If Else

Post Tenebras Lab. Written By: Post Tenebras Lab

How-To #8: Work with Smart LEDs

SPIRIT. Phase 5 Analog Board Computer and Electronics Engineering

Insert the male, 90 angled, 2x10 connectors into the corresponding 2x10 sockets and put them in place, flat under the PCB. Solder.

Pi PoE Switch HAT Quick Start And FAQ. Getting started. Kit contents

Onwards and Upwards, Your near space guide Overview of the NearSys Two Sensor Temperature Array Figure 1. A complete Two Sensor Temperature Array

Building the VMW Time Circuitry Meter by Vincent M. Weaver 6 May 2014

RC Tractor Guy Controller V2.1 Assembly Guide

Construction Construction Instructions

Universal Keying Adapter 3+

Phi-panel backpack assembly and keypad options Dr. John Liu 12/16/2012

HUB-ee BMD-S Arduino Proto Shield V1.0

Figure 1. A complete Temperature Sensor

CP5176 Assembly guide. Soldering. CP5176 Assembly guide Main PCB PCB split. Document revision 2.1 Last modification : 12/11/17

Instruction Manual for BE-SP3 Circuit. 10/21/07

Rover 5. Explorer kit

Adafruit USB Power Gauge Mini-Kit

ARDUINO MEGA 2560 REV3 Code: A000067

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

4.1 Parts and Components... IV Assembly Tips... IV Assembly Precautions... IV Required Tools, Equipment and Materials..

Goal: We want to build an autonomous vehicle (robot)

DLP-RFID2-EDK2 SETUP PROCEDURE

KDS Channel DMX Controlled Servo Kit

MAIN PCB (The small one with the square cut out from one side)

OpenSprinkler v2.2u Build Instructions

GRBL SHIELD FOR ARDUINO UNO USER MANUAL

Light & Sound Control Module

HUB-ee BMD-S Arduino Proto Shield V1.1

MK5 5-Axis Controller

Lab 2.2 Ohm s Law and Introduction to Arduinos

Assembling the Printed Circuit Board for the EDE1200 Robot

Hardware Manual 1240i-485

EQ573 Assembly guide. EQ573 Assembly guide Main board 1. Diodes. 2. Resistors (1) 3. Test pins. 4. Ceramic capacitors.

UF-3701 Power Board Construction Guide

ROBOT LINE TRACKING MOUSE KIT C-9801

Chill Interface PCB Assembly Instructions

Building the RGBW LED Controller

Electrical Interface 21MTC

The Big Idea: Background:

SRI-02 Speech Recognition Interface

Microsystems. SCI-6 Sound Card Interface Kit Version 1.09 January 2015

ON4AKH Antenna Rotator controller Version 1.0

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Wind Logger Shield. Parts included: Date: 29/07/14 Version: 1.0 By: Matt Little

User manual DinaSys DTC/DTS and DTC/DTZ

KDR00101 DMX Controlled Relay Kit

3 pyro output datalogger altimeter with an ATmega 328 microcontroller Kit assembly instructions

MICRO-TRAK 300 MANUAL VER 1.4

Cheap Control Systems. Cheap Six Channel (C6C) Servo Controller Version 2.3 OVERVIEW

Bill of Materials: Picaxe-based IR Control Module Pair PART NO

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

Prototyping & Engineering Electronics Kits Basic Kit Guide

ARDUINO UNO R3 BASED 20A ROBOT CONTROL BOARD [RKI-1580] Page 1

2010, 2013 Azatrax.com MRD2-S USB with Switch Control installation instructions pg. 1 of 6

One Grove Base Shield board this allows you to connect various Grove units (below) to your Seeeduino board; Nine Grove Grove units, consisting of:

Building the FlipChip Tester

KDR00301 DMX Controlled Relay Kit

ARDUINO LEONARDO WITH HEADERS Code: A000057

Index. Jeff Cicolani 2018 J. Cicolani, Beginning Robotics with Raspberry Pi and Arduino,

Vector 3D printer complete wire list including extruder PWA listing

Assembly Instructions (8/14/2014) Your kit should contain the following items. If you find a part missing, please contact NeoLoch for a replacement.

PARTS LIST 1 x PC Board 36 x 5mm Red LED 36 x 12mm LED Standoff 36 x NPN Transistor 36 x 10kΩ Resistor OTHER PARTS YOU MAY NEED

Holland Computers, Inc. Crane Kit Manual Part Number RA-CRANE-KIT

QRPometer Assembly Manual Copyright 2012 David Cripe NM0S The 4 State QRP Group. Introduction

GUIDE TO SP STARTER SHIELD (V3.0)

MAIN PCB (The small one)

Cytron 3A Motor Driver Shield SHIELD-3AMOTOR. User s Manual Rev 1.0 April 2017

Arduino Compatible Do-it-Yourself Kit

Bill of Materials: 8x8 LED Matrix Driver Game PART NO

User Guide v1.0. v1.0 Oct 1, This guide is only available in English Ce manuel est seulement disponible en Anglais

OpenSprinkler v2.1u Build Instructions

Storage Card Interface Kit

Manual Main PCB Small-MIDI 4

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

Connecting a Cisco Input Module

BS2p40tm OEM Module. Surface mount/through hole kit By Robert L. Doerr. Manual Revision.5

Advanced Lantern 1.0 Kit. Introduction to the Advanced Lantern 1.0 Kit

Part 2: Building the Controller Board

LCD Prototype Circuit on Solderless Breadboard. 840 Pin Solderless Breadboard ( # ND)

Adafruit TB A DC/Stepper Motor Driver Breakout Board

FITTING INSTRUCTIONS

AX1500. Dual Channel Digital Motor Controller. Quick Start Manual. v1.9b, June 1, 2007

ARDUINO MEGA ADK REV3 Code: A000069

Touch Sense Controller

Design Modular Planning

Issue : 1.1 Date : 19/1/2004. Trigger IO. C-Cam Technologies. a division of. Vector International 1 / 6

Perform general SC916 electrical testing. With external power removed, step on one or both of the pedal arms

IOX-16 User s Manual. Version 1.00 April Overview

Ultimate LPF kit: Relay-switched LPF kit

G540 4-AXIS DRIVE REV 4: MAY 28, 2010

Transcription:

How-To #7: Assemble an H-bridge Circuit Board Making a DC motor turn is relatively easy: simply connect the motor's terminals to a power supply. But what if the motor is to be controlled by an Arduino, and what if that motor requires more current at a higher voltage than the Arduino can deliver? For this we use the H-bridge, a device under the control of two digital pins that can turn a motor on and off and set its direction. Further, if one of these pins is capable of pulse-width modulation, the H-bridge can also control the speed of that motor. In this How-To we assemble an H-bridge that brings the ability to control two DC motors to the Motor Controller Shield of How-To #3, simply by plugging it in. Figure HT7-1. H-bridge circuit board HT Background: The DC motors this H-bridge can control are common, inexpensive, and extremely useful. They are "brushed" motors, meaning each is composed of a coil of wire inside a magnet. When electrical current is run through the wire a magnetic field is created that opposes the field of the permanent magnet, causing the coil to move. How such a motor works is described and illustrated on Wikipedia at https://en.wikipedia.org/wiki/brushed_dc_electric_motor#simple_two-pole_dc_motor. An Arduino can directly control such a motor, provided the motor requires about 5 volts and very little current. Most useful motors, however, are designed for higher voltages and currents. The motors used in the lessons in this book and the companion website (LearnCSE.com), for example, run best at six volts and draw between 0.15 and 0.4 amps, depending on how much work they are attempting. An H-bridge connects a DC motor to an appropriate power supply but does it in such a way that a pair of Arduino digital pins can turn that power on and off, and set the polarity, thus setting the spin direction. How-To #7 Assemble an H-bridge Circuit Board 257

Figure HT7-2. H-bridge control of a DC motor The values of the Arduino pins turn the DC motor on or off and set the directions, as shown in Table HT7-1. Table HT7-1. Motor direction as a function of inputs to MC pins MC1 MC2 Motor HIGH HIGH Stopped HIGH LOW Spins one direction LOW HIGH Spins reverse direction LOW LOW Stopped 258 Learn to Program in Arduino TM C: 18 Lessons, from setup() to robots

Description: The heart of the H-bridge circuit board built here is the L293 integrated circuit. The pinout for these is in Figure HT7-3. HT Figure HT7-3. Pinout of L293 integrated circuit Notice how each side of this integrated circuit controls one motor from a pair of Arduino pins. Pins 1 and 9 can be used to enable and disable their respective motors. For this circuit board we permanently enable both motors by connecting these pins to +5 volts. Important The notch at the top indicates the end of the integrated circuit close to pin 1. Use this notch to orient the circuit with the circuit board. Reversing it will result in an H-bridge circuit board that cannot function. Building or Buying the Circuit Board The raw circuit board used here is double-sided. It has been designed for ease of assembly by using large traces for easy soldering. It can be obtained in the following ways: 1. Buy it directly from LearnCSE.com. The board can be purchased by itself or as part of a kit containing all the other necessary components. 2. Do-It-Yourself fabrication. The Fritzing (www.fritzing.org) project file is available for download from LearnCSE.com. The Fritzing application can print accurately scaled masks for each side of the board. 3. Have the board commercially made by a board fabricator such as OSH Park. Instructions for submitting a Fritzing-designed board to OSH Park can be found on LearnCSE.com. How-To #7 Assemble an H-bridge Circuit Board 259

Procedure: Where to get the parts Begin by assembling the materials. Among the options for finding these parts are: 1. Buy a kit of parts directly from the LearnCSE.com store. If you are also purchasing the prefabricated circuit board, both the board and the parts can be purchased as a kit. 2. Purchase each part from various suppliers. Look up each item in the LearnCSE.com Parts Catalog via the catalog number in the Materials table. The catalog provides a source and, usually, the source's part number. Materials: Quantity 1 Arduino Uno 1 USB Cable Part Image Notes Single-board computer. This board is delicate and should be handled with care. When you are not using it, keep it in a box or plastic bag. This is a standard USB adapter cable with a flat connector on one end and a square connector on the other. Catalog Number 3102 2301 1 Circuit board Purchase from LearnCSE. com or DIY. PCB505 1 H-bridge integrated circuit, L293 Dual-inline pin. UI 1307 2 Resistor, 220 ohm (red-red-brown) R1, R2 0102 2 Screw Terminal 2 position, J2, J3 4108 260 Learn to Program in Arduino TM C: 18 Lessons, from setup() to robots

Quantity Part Image Notes Catalog Number 2 Red / Green bi-color LED 2 lead, LED1, LED2 1310 1 Male header, 12 pin J1. 2204 Steps 1. Familiarize yourself with the parts. Be sure you recognize each part and know where it goes on the circuit board. In the image on the materials list, the circuit board is green, but the actual color will depend on where the board itself was made. Still, the white outlines and lettering are always the same. HT Important All parts are inserted on the top of the raw board and soldered on the bottom except the male header. It is inserted from the bottom of the board and soldered on the top. 2. Begin by placing the integrated circuit on the top of the circuit board, taking care to align the notch on the top of the board to the gap in the white rectangle drawn on the board, as shown in Figure HT7-4. Solder the integrated circuit in place from the bottom. Figure HT7-4. Pin soldered to integrated circuit How-To #7 Assemble an H-bridge Circuit Board 261

3. Insert and solder the two 220 ohm resistors. Trim excees leads from the bottom. Figure HT7-5. Resistors soldered 4. Insert and solder the two screw terminals. Figure HT7-6. Screw terminals soldered 5. Prepare a 12-pin male header as shown in HT7-7. Figure HT7-7. 12-pin male header 262 Learn to Program in Arduino TM C: 18 Lessons, from setup() to robots

6. Insert the male header through the bottom of the circuit board and solder on the top. HT Figure HT7-8. Header inserted into circuit board, then soldered The H-bridge, as shown in HT7-9, is now complete. Check for good solder connections and remove any solder that bridges connections. Figure HT7-9. Complete H-bridge How-To #7 Assemble an H-bridge Circuit Board 263

264 Learn to Program in Arduino TM C: 18 Lessons, from setup() to robots