element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum The  L293B  issue
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 402 subscribers
  • Views 851 views
  • Users 0 members are here
  • help
  • drive
  • l263b
  • motor
  • arduino
Related

The  L293B  issue

dirtdiver
dirtdiver over 13 years ago

Hi, im trying to use the L29 with only one (PWM) digital pin.

  normaly Pin 2 and Pin 7 go to digital pins on the arduino and they determine the spin direction. image

The code is aways one high and one low -  meaning that pin2 gets 5 volts and pin7 gets 0 volts or vice versa.

Now i dont need to change directions of the rotation, Can i just hook up pin 2 to 5 volts and leave pin 7 free (or should i connect it to ground)

I have tried whats shown in the picture above, but it doesnt work.

Also I am only running one motor, the other side of the chip doent need to be connected to anything right?

Where could be the problem?

Thanks in advance

  • Sign in to reply
  • Cancel

Top Replies

  • dirtdiver
    dirtdiver over 13 years ago in reply to dirtdiver +3
    here is the finale version of the project http://www.youtube.com/watch?v=zkptoIx9kSA
Parents
  • billabott
    0 billabott over 13 years ago

    Nice Diagram.

     

    Q: Should pin 7 should be connected to ground? 

    A: It depends.  Yes, if you use a four diode bridge.   No, if you are using a single diode to protect pin 3 from back EMF(or counter EMF).  Then pins 6 and 7 can be NC (not connected).

     

    Just thinking about what you said normally "Pin 2 and Pin 7 go to digital pins" to set the direction; these pins are not floating, they are either at +5 volts or ground potential.

     

    Additionally,it appears that the data sheet indicates that you must supply the bridge diodes to make the motor run in both directions with this device.

     

    I can see that if you only need the motor to turn in one direction then you may use either pin 3 OR pin 6 and a single diode.  The direction of rotation will be determined by your choice of pins and your choice of  potential (0 or +5 volts) on the other side of the motor.  Two of the four combinations will result in no rotation - so choose wisely.  Also you must install the diode with the proper polarity.  See the Data Sheet.

     

    Don't forget that pin 9  pin 16 also needs +5 volts.

     

    Pin 8    Vs   is  Supply Voltage

    Pin 16  Vss is  Logic Supply Voltage

    It is pin 16 that needs the positive voltage to drive the IC's logic gates and amplifiers.

     

    Good luck with your project.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • dirtdiver
    0 dirtdiver over 13 years ago in reply to billabott

    Well, theres my problem...i thought that each side is separate and independent (for each of the two motors it can control) so i never tried hooking up pin 9 to 5 volts.

    well Pin 9 is enable pin , but isnt it for the second motor (which in my case is not there image)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • billabott
    0 billabott over 13 years ago in reply to dirtdiver

    I would prefer a "Correct Answer" determination from the Original Poster.   Not for this post but for the other one above.  Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • billabott
    0 billabott over 13 years ago in reply to dirtdiver

    I would prefer a "Correct Answer" determination from the Original Poster.   Not for this post but for the other one above.  Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • dirtdiver
    0 dirtdiver over 13 years ago in reply to billabott

    I cant argue with that image ! Thanks you've been really helpful!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube