Blogroll

Powered by Blogger.

Saturday, 29 March 2014

Control DC Motor Direction Using L293D Motor Driver and Arduino

by realfinetime  |  in Motor Driver at  23:23

L293D is a popular motor driver. It is special by its high current and voltage rating. Each L293D can be used to control two motors. Each side controls each motor. 1A and 2A is the control pins for motor M1. Similarly 3A and 4A is the control pins for motor  M2. Here, the circuit is demonstrated to control M1 only. Control pins are normally connected to Microcontrollers. I used Arduino to give control signals. Circuit Diagram is as shown in figure given below.


Direction of rotation as per the control signals is represented in the following table.

Program for clockwise rotation of motor.

int oneA = 13;
int twoA = 12;

void setup() {                
  pinMode(oneA, OUTPUT);      
  pinMode(twoA, OUTPUT);   
}

void loop() {
  digitalWrite(oneA, HIGH);   // 1A = 1
  digitalWrite(twoA, LOW);    // 2A = 0
  delay(1000);                       // wait for a second
}


Program for anticlockwise rotation of motor.

int oneA = 13;
int twoA = 12;

void setup() {                
  pinMode(oneA, OUTPUT);      
  pinMode(twoA, OUTPUT);   
}

void loop() {
  digitalWrite(oneA, LOW);     // 1A = 0
  digitalWrite(twoA, HIGH);    // 2A = 1
  delay(1000);                       // wait for a second
}

32 comments:

  1. Thanks, i will try this schematic for 2 motors.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Hii You post a nice blog about Arduino Uno. You have good Explained of this Arduino Uno post .
      Thanks for sharing. https://robomart.com/arduino-uno

      Delete
  3. The information is meaningful and magnificent which is shared here aboutwebster oem motors

    ReplyDelete
  4. good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. I hope you post again soon. Big thanks for the useful info.Pto Generators For Sale Ireland

    ReplyDelete
  5. You have a genuine capacity to compose a substance that is useful for us. You have shared an amazing post about Linear Motor. Much obliged to you for your endeavors in sharing such information with us.

    ReplyDelete
  6. Great article by the great author, it is very massive and informative but still preaches the way to sounds like that it has some beautiful thoughts described so I really appreciate this article. Best Used Outboard motors for sale service provider.

    ReplyDelete
  7. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
    VideoPad Video Editor Crack
    Jihosoft File Recovery

    ReplyDelete
  8. I am thankful to this blog giving unique and helpful knowledge about this topic. Auto Glass Repair Near Me

    ReplyDelete
  9. Great set of tips from the master himself. Excellent ideas. Thanks for Awesome tips Keep it up
    cracksbin.com

    ReplyDelete
  10. So nice I am enjoying for that post as for u latest version of this Security tool Available
    wondershare dr.fone crack

    ReplyDelete
  11. Your Content is amazing and I am glad to read them. Thanks for sharing the Blog.this blog is very helpful information for every one.
    english short english stories

    ReplyDelete
  12. I guess I am the only one who comes here to share my very own experience guess what? I am using my laptop for almost the post 2 years.

    Driver Toolkit Crack
    Modo Bass Crack
    Lexicon Bundle Crack
    EagleFiler Crack

    ReplyDelete
  13. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    Adobe Photoshop CC Crack
    JetBrains PyCharm Crack
    DriverToolkit Crack

    ReplyDelete
  14. So nice I am enjoying for that post as for u latest version of this Security tool Available
    wincatalog-crack-key-download

    ReplyDelete
  15. Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! murata capacitor replacement

    ReplyDelete
  16. THANKS ADMIN FOR THIS GREAT POST. I LOVE YOUR CONTANT.
    Krisp Crack Eliminate foundation commotion and experience HD Voice. Krisp eliminates all undesirable commotion from your call while conveying HD Voice quality. All progressively!
    VyprVPN Crackworks by encrypting your internet connection to secure it and protect your privacy every time you go online. VyprVPN Crack Free Download was founded in response to governmental surveillance, and our strong encryption keeps your information safe from hackers, identity theft, and malware.

    ReplyDelete
  17. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named ProCrackHere
    VideoPad Video Editor Crack
    Lumion Pro Crack

    ReplyDelete
  18. Thank you so much for what you've done. I appreciate it, and I appreciate you sharing it with me.
    PyCharm Crack

    ReplyDelete
  19. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named ProCrackHere
    DropBox Crack
    Wondershare Filmora Crack
    Waves Plugins Crack
    Tenorshare Ultdata Crack
    Mathworks Matlab Crack

    ReplyDelete
  20. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 year! but I had no idea of solving some basic issues. I do not know how to Latest Software Crack Free Download With Activation Key ,Serial Key & Keygen But thankfully, I recently visited a website namedCrack Premium Softwares Free Download
    fullcrackerz.co
    Hitman Pro crack
    Windows Movie Maker crack/
    ADINA System crack
    Vectric Aspire Pro crack
    Enscape 3D crack

    ReplyDelete
  21. Amazing blog! I really like the way you explained such information about this post with us. And blog is really helpful for us this website
    DAEMON Tools Pro Crack
    Sony Vegas Pro Crack
    VSDC Video Editor Pro Crack
    Dr Fone Crack
    Traktor Pro Crack
    up4crack.net

    ReplyDelete
  22. Wow, amazing block structure! How long
    Have you written a blog before? Working on a blog seems easy.
    The overview of your website is pretty good, not to mention what it does.
    In the content!
    vstkey.com
    Enscape 3D Crack
    Wise Care 365 Pro Crack
    plugin alliance all bundle Crack
    Sound theory Gullfoss Crack
    Overloud TH-U Full Crack

    ReplyDelete

IMPORTANT NOTICE

All the circuits, published in this blog is only after testing and getting proper results in my private lab. When you try these circuits, you should check the supply voltage, polarity of components, presence of childrens nearby and shorts in the circuits. This website will not be responsible for any harm happened to you or your components caused by your carelessness.

For More Electronic Tips



Proudly Powered by Blogger.