0% found this document useful (0 votes)
341 views

Duel Motor Driver With Arduino Using A SN754410NE

This document provides instructions for building a dual motor driver circuit using an Arduino and SN754410NE quad half-bridge integrated circuit. It includes a parts list, steps to build the H-bridge circuit, an Arduino sketch to control the motors, and links to related projects. The circuit allows controlling two DC motors independently with an Arduino by connecting the motors to pins on the H-bridge chip and running code to set the pin states. Comments from readers ask for clarification on the Arduino option and how the circuit controls motor direction.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
341 views

Duel Motor Driver With Arduino Using A SN754410NE

This document provides instructions for building a dual motor driver circuit using an Arduino and SN754410NE quad half-bridge integrated circuit. It includes a parts list, steps to build the H-bridge circuit, an Arduino sketch to control the motors, and links to related projects. The circuit allows controlling two DC motors independently with an Arduino by connecting the motors to pins on the H-bridge chip and running code to set the pin states. Comments from readers ask for clarification on the Arduino option and how the circuit controls motor direction.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

Dual Motor Driver with Arduino using a SN754410NE Quad Half H-Bridge
by ArduinoFun on October 25, 2009 Table of Contents License: Attribution Share Alike (by-sa) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro: Dual Motor Driver with Arduino using a SN754410NE Quad Half H-Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A step by step project guide by ArduinoFun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . step 1: Parts List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . step 2: Build the H-Bridge Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . step 3: Arduino Sketch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 2 3 3 4 6 6 6

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

License: Attribution Share Alike (by-sa) Intro: Dual Motor Driver with Arduino using a SN754410NE Quad Half H-Bridge
A step by step project guide by ArduinoFun
With this Instructable I am going to show you how to use a SN754410NE Quad H-Bridge IC to control two 12 volt DC Motors. I have added a video so that you can see the Dual Motor in action. As you can see in the video, all the wires can be a little confusing to look at. To make things easier to view and understand as we go along, I have also created an illustration for you to refer to. You may also download a printable PDF file of this illustration. I have depicted an Arduino board in the illustration, if you already have one you are good to go, if not... you can do like I have and Build Your Own Arduino following another one of my instructables.

Breadboard Illustration - You may also download a printable PDF file of this illustration

Image Notes 1. 12 Volt DC Motor 2. Breadboard Arduino 3. H-Bridge Duel Motor Driver SN754410NE 4. 22AWG Hook Up Wire Kit 5. On/OFF Switch 6. 12 volt power from power supply unit. 7. +12V 8. +12V 9. +5V 10. +5V

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

step 1: Parts List


Here is the recommended parts you will need in order to complete this project. I have provided sources where you can purchase items from and their prices. These parts are available at others sites as well. 1. 2. 3. 4. 5. 6. Arduino board - $29.95 at CuriousInventor.com or... Build Your Own Arduino - Total build cost $15.95 at ArduinoFun.com SN754410 Quad Half H-Bridge - $2.50 available at ArduinoFun.com 840 Tie Point Breadboard - $6.95 available at ArduinoFun.com Wire Jumper Kit - $12.95 available at ArduinoFun.com Two DC Motors - $3.99 ea. available at ArduinoFun.com

DISCOUNT: 10% OFF Your Total Order at ArduinoFun.com when you use coupon code "INSTRUCTABLES" at time of checkout.

Image Notes 1. DC Motors 2. SN754410NE Quad H-Bridge Driver IC 3. Arduino Duemilanove 4. 840 Tie Point Breadboard 5. 22 AWG Hook Up Wire Kit. Great for prototyping projects.

step 2: Build the H-Bridge Driver


As you are looking at the SN754410NE chip, you will notice a u-shaped notch at one end. This will help to identify pin 1.

Pins 1, 9, and 16 are +5V Pin 8 is +12V and will run the +12V DC motors. Pins 4, 5, 12, and 13 are for GND DC Motors have two hook ups on them. If you hooked one up straight to the source power you would have one lead going to positive and one lead going to GND. For our H-Bridge driver, you will hook the left motor leads to pin 3 & 6. The right motor leads will hook up to pins 11 & 14. Connect h-bridge pin 2 to the Arduino digital pin 2, and h-bridge pin 7 to Arduino digital pin 3. Connect h-bridge pin 10 to Arduino digital pin 8, and h-bridge pin 15 to Arduino digital pin 7

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

Image Notes 1. U-Shaped Notch 2. Pin 1 3. Pin 8 4. Pin 9, opposite side 5. Pin 16

Image Notes 1. Positive Leg 2. Negative Leg 3. DC Motor 4. Shaft 5. Connector

step 3: Arduino Sketch


Once you have your h-bridge circuit completed, you can upload the sketch to your Arduino. The sketch will cycle back and forth on the dc motors driving them forward and backwards and then light an led connected to pin 13 on the arduino. // Use this code to test your motor with the Arduino board: // if you need PWM, just use the PWM outputs on the Arduino // and instead of digitalWrite, you should use the analogWrite command // Motors int motor_left[] = {2, 3}; int motor_right[] = {7, 8}; int ledPin = 13; // LED connected to digital pin 13 // Setup void setup() { Serial.begin(9600); // Setup motors int i; for(i = 0; i < 2; i++){ pinMode(motor_left[i], OUTPUT); pinMode(motor_right[i], OUTPUT); pinMode(ledPin, OUTPUT); } } // Loop void loop() { drive_forward(); delay(1000); motor_stop(); Serial.println("1"); drive_backward(); delay(1000); motor_stop(); Serial.println("2"); turn_left(); delay(1000); motor_stop(); Serial.println("3");

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

turn_right(); delay(1000); motor_stop(); Serial.println("4"); motor_stop(); delay(1000); motor_stop(); Serial.println("5"); digitalWrite(ledPin, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(ledPin, LOW); // set the LED off delay(1000); // wait for a second } // Drive void motor_stop(){ digitalWrite(motor_left[0], LOW); digitalWrite(motor_left[1], LOW); digitalWrite(motor_right[0], LOW); digitalWrite(motor_right[1], LOW); delay(25); } void drive_forward(){ digitalWrite(motor_left[0], HIGH); digitalWrite(motor_left[1], LOW); digitalWrite(motor_right[0], HIGH); digitalWrite(motor_right[1], LOW); } void drive_backward(){ digitalWrite(motor_left[0], LOW); digitalWrite(motor_left[1], HIGH); digitalWrite(motor_right[0], LOW); digitalWrite(motor_right[1], HIGH); } void turn_left(){ digitalWrite(motor_left[0], LOW); digitalWrite(motor_left[1], HIGH); digitalWrite(motor_right[0], HIGH); digitalWrite(motor_right[1], LOW); } void turn_right(){ digitalWrite(motor_left[0], HIGH); digitalWrite(motor_left[1], LOW); digitalWrite(motor_right[0], LOW); digitalWrite(motor_right[1], HIGH); }

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

Related Instructables

BLDC Motor Control with Arduino, salvaged HD motor, and Hall Sensors by dlginstructables
Advertisements

Simple 2-way motor control for the arduino by computergeek

Simple Robotics Solderless Breadboard by Breadboard doctek Layout Sheets (plug and play electronics) by oomlout

Make a Rotating Microphone by noxidgerg

Ard-e: The robot with an Arduino as a brain by imadami

Comments
4 comments

Add Comment
Sep 6, 2010. 6:25 PM REPLY

hughligen says:
I'm confused as to why you have in the parts list, the Arduino as well as the build your own arduino. Is it a choice? as in either a off the shelf arduino or a homebuilt one?

johnnyhellfire says:
So can you control the direction the motors go or is it only single directional circute

Jul 7, 2010. 8:15 PM REPLY

oshondrom says:
This is stupid!Jou coud use just 2 digial pins 2 transistors and no other chips!

May 8, 2010. 1:12 PM REPLY

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

amando96 says:
I really don't understand anything of your code.

Feb 7, 2010. 5:49 AM REPLY

http://www.instructables.com/id/Duel-Motor-Driver-with-Arduino-using-a-SN754410NE-/

You might also like