Vous êtes sur la page 1sur 11

(http://cdn.instructables.com/FYE/YE59/H4AGI8P0/FYEYE59H4AGI8P0.LARGE.

jpg)
(http://cdn.instructables.com/F6F/19VL/H4AG8UVU/F6F19VLH4AG8UVU.LARGE.jpg)
About This Instructable
License:
59,195 views
27 favorites
(/member/AgentWolf/)
AgentWolf
(/member/AgentWolf/)
Follow
I am a Second Year University
Political Science Student.
25
Bio:
More by AgentWolf
(/)
let's make
share what you make >
(/editInstructable/)
(/)
Explore (/tag/type-id/) Create (/about/submit.jsp) Contests (/contest/) Community (/community/) Login (/account/login) | Sign Up (/account/gopro?sourcea=header)
Here is part 1 of the Arduino and L293D Robot.This is part of a series
of instructables leading to a Line follower Robot.
This is a basic Robot made by controlling two motors via the L293D chip through an
Arduino Board.
I have done this project in the past with similar set up just not with an Arduino
Board.
Do let me know what you think of this project and if I made any mistakes.

Monitor Continuo
Glucosa
novalab.es
Dexcom G4 Platinum. A partir de 2 aos
de edad
GSM Shield for
Arduino
Remove these ads by Signing Up (/account/gopro?
sourcea=removeads&nxtPgName=Arduino+and+L293D+Robot+%28+Part+1+%29&nxtPg=/id/Arduino-and-L293D-Robot-Part-1-/)
Step 1: Parts
Arduino Board
Breadboard
L293D Chip
Two Motors
9 Volt Battery
6 Volt Battery Pack
Step 2: Wiring the L293D Chip
Related
See More (/tag/type-id/?q=)
(http://cdn.instructables.com/FR3/0RBJ/H4AGJ523/FR30RBJH4AGJ523.LARGE.jpg)
(http://cdn.instructables.com/FM1/B26X/H4AFZBTE/FM1B26XH4AFZBTE.LARGE.jpg)
(/id/Tiger-Forklift)
(/id/Most-Basic-Form-of-
Hydroponics)
(/id/Arduino-and-L293D-
Robot-Part-2-Infrared-Sensor)
L293D (/tag/type-id/category-technology/keyword-
l293d/)
Arduino (/tag/type-id/category-
technology/keyword-arduino/)
Basic Robot Arduino Robotics (/tag/type-
id/category-technology/keyword-basic robot
arduino robotics/)
Tags:
GOduino II = Arduino +
L293D Variable Speed
Motor Controller
(/id/GOduino-II-Arduino-
L293D-Variable-Speed-
GOduino - The Arduino
Uno + Motor Driver clone
(/id/GOduino-The-
Arduino-Uno-Motor-
Driver-clone/)
Arduino and L293D Robot
( Part 2 ) Infrared Sensor
(/id/Arduino-and-L293D-
Robot-Part-2-Infrared-
Sensor/)
Control your motors with
L293D and Arduino
(/id/Control-your-motors-
with-L293D-and-Arduino/)
by guibot (/member/guibot/)
Wirelessly Control A
Robot Using Arduino and
RF Modules !
(/id/Wirelessly-Control-A-
Robot-Using-Arduino-and-
Pin 4 ,Pin 5,Pin 12 and Pin 13 from L293D Chip Connect to Ground (Negative On
Breadboard)
Pin 1,Pin 9 and Pin 16 from L293D Chip Connect to 5 Volts (Positive On
Breadboard)
Pin 8 from L293D Chip Connects to 6 Volts (Positive On Breadboard)
Pin 3 from L293D Chip Connects to Right Motor
Pin 6 from L293D Chip Connects to Right Motor
Pin 11 from L293D Chip Connects to Left Motor
Pin 14 from L293D Chip Connects to Left Motor
Output pins on Arduino to control Right Motor :
Pin 2 from L293D Chip Connects to Output Pin on Arduino
Pin 7 from L293D Chip Connects to Output Pin on Arduino
Output pins on Arduino to control Left Motor :
Pin 10 from L293D Chip Connects to Output Pin on Arduino
Pin 15 from L293D Chip Connects to Output Pin on Arduino
(http://cdn.instructables.com/F7S/F6RQ/H4AGJ4GA/F7SF6RQH4AGJ4GA.LARGE.jpg)
(http://cdn.instructables.com/FJQ/BJOO/H4AFZBPZ/FJQBJOOH4AFZBPZ.LARGE.jpg)
Arduino and L293D Robot ( Part 1 ) by AgentWolf (/member/AgentWolf/)
+ Collection I Made it!
Download (/id/Arduino-and-L293D-Robot-Part-1-/?download=pdf)
(/id/Arduino-and-L293D-Robot-Part-1-/?ALLSTEPS) 11 Steps (/id/Arduino-and-L293D-Robot-Part-1-/step5/Output-pins-on-Arduino-to-control-the-Motors/)
Favorite
Step 3: Connecting the Motors to L293D Chip
Pin 3 from L293D Chip Connects to Right Motor
Pin 6 from L293D Chip Connects to Right Motor
Pin 11 from L293D Chip Connects to Left Motor
Pin 14 from L293D Chip Connects to Left Motor
Step 4: Connecting the pins to 5 Volts and Ground
(http://cdn.instructables.com/FIM/ZGSM/H4AFZBQV/FIMZGSMH4AFZBQV.LARGE.jpg)
Next (/id/Arduino-and-L293D-Robot-Part-1-/step5/Output-pins-on-Arduino-to-control-the-
Motors/)
View All Steps (/id/Arduino-and-L293D-Robot-Part-1-/?ALLSTEPS)
Make Comment
(/member/tisaconundrum/)
4 months ago
Reply (C5WNJIMHTTFT358)
Pin 4 ,Pin 5,Pin 12 and Pin 13 from L293D Chip Connect to Ground (Negative On
Breadboard)
Pin 1,Pin 9 and Pin 16 from L293D Chip Connect to 5 Volts (Positive On
Breadboard)
Pin 8 from L293D Chip Connects to 6 Volts (Positive On Breadboard)
tisaconundrum (/member/tisaconundrum/)
So I figured out how to get it wired correctly. All the batteries need to be grounded
together.
(http://cdn.instructables.com/FL6/JZPG/HTTFT357/FL6JZPGHTTFT357.LARGE.jpg)
(http://cdn.instructables.com/F0U/4095/H4AFS9DV/F0U4095H4AFS9DV.LARGE.jpg)
Previous
(/member/tisaconundrum/)
4 months ago
Reply (CUKVXXWHTTFT3G5)
(/member/tisaconundrum/)
4 months ago
Reply (C6U9GK2HTSZ0ORE)
(/member/asarkar9/)
5 months ago
Reply (C7EL6ASHSM54BTJ)
(/member/skant1/)
4 months ago
Reply (CYLPFOPHTN0VC1O)
(/member/paras11/)
5 months ago
Reply (CEVV7QBHS5QA025)
(/member/beginner13/)
8 months ago
Reply (CHGUJ1GHP1Q4OPD)
tisaconundrum (/member/tisaconundrum/) tisaconundrum
Edit: I had the batteries connected to
the wrong pins. I was testing and the
motor wasn't even running. So here
is the correct schemtaic
(http://cdn.instructables.com/FVO/1UUX/HTTFT3G4/FVO1UUXHTTFT3G4.LARGE.jpg)
tisaconundrum (/member/tisaconundrum/)
Now where does the ground for the 5 V battery go?
(http://cdn.instructables.com/FQC/A7XK/HTSZ0ORD/FQCA7XKHTSZ0ORD.LARGE.jpg)
asarkar9 (/member/asarkar9/)
Do we have to convert a program written in C++ to machine language, in order to
make ARDUINO UNO work? If yes, then how to do it? And can you please give a link
for downloading the software required for ARDUINO? Please reply ASAP.... it's very
important. Thanks.
skant1 (/member/skant1/) asarkar9
NO WE DON'T HAVE TO CONVERT THE CODE TO ASSEMBLY(IT IS
ACTUALLY AN ADVANTAGE WITH ARDUINO).....PROGRAMMING
ARDUINO IS VERY VERY SIMPLE...GO TO www.arduino.cc
(http://www.arduino.cc) AND DOWNLOAD THE ARDUINO ZIP FOLDER
then open zip folder and save it to desktop and connect your arduino board to
usb port using usb cable and open device manager and find your arduino in
ports section and right click on it and click update driver and choose from pc
then open arduino folder saved in desktop and choose drivers that is it....your
arduino is connected and then do hardware as per above given and program
the arduino using arduino application and upload it....you are done
paras11 (/member/paras11/)
hey i tried to follow d steps but my l293d gets really heated
can u tell me why is this happening???
:O
beginner13 (/member/beginner13/)
wat r the output pins for arduino,where do i connect the pin2,pin7,pin10 and pin15 to
arduino
Haitham khedr (/member/Haitham+khedr/)
(/member/Haitham+khedr/)
9 months ago
Reply (CMGSW0LHN4ZLN6T)
(/member/Haitham+khedr/)
9 months ago
Reply (CNE929UHN4ZLN6O)
(/member/Vee20/)
10 months ago
Reply (C09DE09HLZRRWCT)
(/member/AgentWolf/)
10 months ago
Reply (CHEIBS1HLZRH7OD)
Hello, i am trying to drive a dc motor with L293D ,i supply 5 volts to pin 8 and when i
measure the output voltage it is reduced to 2.6 volt when i connect the motor only,if
the motor is not connected all the input is transfered to the output . Would you please
help solving this problem?
Thanks
Haitham khedr (/member/Haitham+khedr/)
Hello, i am drive a dc motor with L293D ,i supply 5 volts to pin 8 and when i measure
the output voltage it is reduced to 2.6 volt when i connect the motor only,if the motor is
not connected all the input is transfered to the output . Would you please help solving
this problem?
Thanks
Vee20 (/member/Vee20/)
Hi there. Lovely instructable! Is there any way to slow down the speed of the motor? I
find that it moves a bit too fast for my intended purpose. Thank you!
AgentWolf (/member/AgentWolf/) (author) Vee20
Try the following to see if it
works,if it doesn't i will have to
test it to figure it out.
Option 1 :
delay(10000); // waits for 10
seconds
This line will keep the motor on
for 10 seconds.
delay(1000); // waits for a
second
This line will keep the motor on
for 1 second.
By adjusting the amounts of
seconds you adjust the amount
of time the motor stays on and
this can be used to slow down
turns.
Option 2 :
To slow down the motor try the
following command.
The following is an Example
for the Right Motor Only.
Follow the same structure for
other motors you want to
control.
Replace the command
digitalWrite(RightMotorForward,
HIGH);
with
analogWrite(RightMotorForward,N);
Let "N" be any number
between 0 and 255, 0 is stop
and 255 is the Highest speed.
Example:
(/member/Vee20/)
10 months ago
Reply (CFH21HDHMNNEUJD)
(/member/mgarg5/)
10 months ago
Reply (CRNXXS9HMKLN583)
(/member/AgentWolf/)
10 months ago
Reply (CG1QK9GHMK7MGD2)
(/member/cdragos+george/)
1 year ago
Reply (CJ5SWW9HIGFASJ4)
(/member/AgentWolf/)
10 months ago
Reply (C00KHICHLZRH7OJ)
(/member/volt107/)
1 year ago
Reply (CAJNJOEHHMHY412)
(/member/AgentWolf/)
10 months ago
Reply (CC92F74HLZRH7OH)
analogWrite(RightMotorForward,155);
This is a modification of the
fade example from the Arduino
Library.
Hope This Helps.
Vee20 (/member/Vee20/) AgentWolf
thank you. will try it out and get
back to you :)
mgarg5 (/member/mgarg5/)
Does the motor need to have a feedback? I have a DC motor. Can i use it using this
method.
Regards.
And i do hope you rspond fast . i need to et this done by this weekend :)
AgentWolf (/member/AgentWolf/) (author) mgarg5
No this project does not
require Feed Back as it does
not rely on sensory feedback
to control movement. This
project is based on
predetermined
preprogrammed commands.
You can however edit the
code to fit your needs.
Yes this Project can be done
with a DC motor. A DC Motor
can be controlled through the
application of Voltage
change and can be made to
turn slower or faster.
Follow through the Steps and
carefully read the instructions
while using the images as aid
and you should be fine.
cdragos george (/member/cdragos+george/)
A wonderful guide to start working with Arduino Uno. As you can see I add a link in my
article where is an impressive collection of guides and tutorials to start working with
Uno (http://www.intorobotics.com/arduino-uno-setup-and-programming-tutorials/).
AgentWolf (/member/AgentWolf/) (author) cdragos george
Thanks for including my
project.
volt107 (/member/volt107/)
Thanks a lot for this tutorial man. This is probably the clearest and simplest arduino
robot tutorial on the web! Got mine to work. Thanks again.
AgentWolf (/member/AgentWolf/) (author) volt107
Glad you Liked it.
Thanks.
(/member/AgentWolf/)
1 year ago
Reply (CWH72JYHHOFXM2H)
(/member/ajimzack/)
1 year ago
Reply (C9Q02B7HHS9SL9Y)
(/member/AgentWolf/)
10 months ago
Reply (C1GHGKUHLZRH7OF)
(/member/volt107/)
1 year ago
Reply (C69NG3MHHJOIQV2)
(/member/AgentWolf/)
1 year ago
Reply (CTSIBTWHHJOKOPP)
(/member/volt107/)
1 year ago
Reply (C6L5SXRHHJOIQOS)
(/member/AgentWolf/)
1 year ago
Reply (CPEHC3QHHJOKOO6)
(/member/ajimzack/)
1 year ago
Reply (C8TUWHRHHJOAUX0)
(/member/ajimzack/)
1 year ago
Reply (CI1BHV4HH2VW5I6)
(/member/AgentWolf/)
1 year ago
Reply (CYFPSANHHJE2GG8)
AgentWolf (/member/AgentWolf/) (author) volt107
Thanks.
I think it could have been of better
Quality but Thanks again.
ajimzack (/member/ajimzack/)
my project has been done...this is the link
video..thanks,,http://www.youtube.com/watch?v=v2Y_s3R8EOY&feature=youtu.be
AgentWolf (/member/AgentWolf/) (author) ajimzack
Looks Good.
Good Job.
volt107 (/member/volt107/)
Also, how are pins 1, 9, 16 connected to 5V? I just see them connected to negative
on the breadboard.
AgentWolf (/member/AgentWolf/) (author) volt107
If you look closely the Pins 1,9,16
are connected correctly to positive
on the breadboard.
The positive and negative on the
breadboard are then inturn
connected to battery pack.
Unfortunatly the pictures are not of
best quality so they give the
illusion that they are not connected
properly.As long as you follow the
schematic you should be fine.
volt107 (/member/volt107/)
Hi, sorry to bother you but can you let me know where exactly to put the 9 volt battery
wires? It's a bit blurry in the pictures and I don't completely understand the schematic..
Thanks.
AgentWolf (/member/AgentWolf/) (author) volt107
You positive from 9V goes to VIn
on the Arduino and the Negative
goes GND(ground)
ajimzack (/member/ajimzack/)
thank you for your suggestion..before this i power up ardunio using usb and motor
using 9V battery...next time i will try using 2 batteries..
ajimzack (/member/ajimzack/)
hi, im currently do a project of line following robot using ardunio,l293d, ir sensor..i
have problem with the power supplied to the motor..why motor that connected from
l293d motor driver not enough power to make the motor works? means that, i need to
rotate it first, only then the motor will working. I connect l293d with 9v battery to
supplied the voltage. anyone can give your idea?
AgentWolf (/member/AgentWolf/) (author) ajimzack
Best i can think of is try fresh
batteries for two different power
sources.
(/member/speak2sainow/)
1 year ago
Reply (CATHUT0HCV90PT1)
(/member/AgentWolf/)
1 year ago
Reply (CV4X5SGHD7U0KS7)
(/member/Amper386/)
1 year ago
Reply (C4HHBH3HBHGL5KX)
(/member/AgentWolf/)
1 year ago
Reply (CXVOE07HBHGIK0X)
Make Comment
One for The Arduino and one for
you circuit/Breadboard.Dont use
one power supply to power up
both of them.
speak2sainow (/member/speak2sainow/)
can any one guide me in the code with L293D IC
""***CODE***""to operate from both PC and android mobile
AgentWolf (/member/AgentWolf/) (author) speak2sainow
I am also trying to learn that.
I think you would have to connect
one of the Xbee wireless modules
to the Arduino controlling the
L2393D Robot and have the
second one connected to an
Ethernet shield on the Arduino
connected to the PC.
Write a web based controller
which you control from your phone
or PC via the Ethernet and
transmit the command to the
second wireless xbee module on
the L293D Chip.
I think thats how it works but at the
moment i am not completely sure.I
will let you know If and When i
figure it out.
You can look for other tutorials
dealing with arduino
communications to help you.
Amper386 (/member/Amper386/)
Bla
AgentWolf (/member/AgentWolf/) (author) Amper386
?
About Us
Who We Are (/about/)
Advertise (/advertise/)
Contact (/about/contact.jsp)
Jobs (/community/Positions-available-at-Instructables/)
Help (/community?categoryGroup=Help)
Find Us
Facebook (http://www.facebook.com/instructables)
Youtube (http://www.youtube.com/user/instructablestv)
Twitter (http://www.twitter.com/instructables)
Pinterest (http://www.pinterest.com/instructables)
Google+ (https://plus.google.com/+instructables)
Tumblr (http://instructables.tumblr.com)
Resources
For Teachers (/teachers/)
Artists in Residence (/group/air/)
Gift Pro Account (/account/give?sourcea=footer)
Forums (/community/)
Answers (/tag/type-question/?sort=RECENT)
Sitemap (/sitemap/)
Go Pro Today (/account/gopro?sourcea=footer)
We're Hiring! (/community/Positions-available-at-Instructables/)
Mobile
Download our new apps for iOS,
Android and Windows 8!
Android
(https://play.google.com/store/apps/details?
id=com.adsk.instructables)
iOS
(https://itunes.apple.com/app/instructables/id586765571)
Windows
(http://apps.microsoft.com/windows/en-
us/app/7afc8194-c771-441a-9590-
54250d6a8300)
Join our newsletter:
Terms of Service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/) | Mobile Site (http://m.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
Join!
2014 Autodesk, Inc.
English enter email

Vous aimerez peut-être aussi