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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum what is the best way to attach a dc motor to the bbb without a cape or motor controler???
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 2 answers
  • Subscribers 304 subscribers
  • Views 846 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

what is the best way to attach a dc motor to the bbb without a cape or motor controler???

Former Member
Former Member over 12 years ago

what is the best way to attach a dc motor to the bbb without a cape or motor controler???

 

 

thanks so much,

JonnyZ

  • Sign in to reply
  • Cancel
  • saurocksall
    0 saurocksall over 12 years ago

    Hi Jonny,

    i am sorry to tell you that you can't run a DC Motor from BBB as the out put current from the GPIO's  is very low only about 4 to 6 uA. So the motor will not run because of lack of power. I would suggest you to use the L293D Motor Driver IC.. And You can also run a micro servo directly from the BBB.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 12 years ago

    Hi JohnnyZ,

     

    I agree, you'll need some additional circuitry, you won't get more than a few mA out of most of these types of boards. It depends on the type of motor (e.g. a small DC hobby type motor may require just a few hundred mA current at a low voltage) and whether you need bidirectional control. Something like L293D as mentioned is a popular method. You don't necessarily need a cape, but you do need some driver (e.g. transistor or mosfet based or maybe even a relay) if not a dedicated controller circuit/board.

    To control I/O pins, there are lots of options, depending on the programming language you wish to use. Bonescript is one method you may wish to try, since it is built-in to the default image. Adafruit has Python tutorials. There is a C library for I/O too.

    Assuming your DC motor is (say) 6V or 12V and uses just a few hundred mA, then L293D is not a bad choice for experimentation purposes - there are some cheap pre-built boards from China on ebay.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    what i meant was possibly through a transistor and then have a resistor isolating the beaglebone from the other power supply

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    i just wasn't too sure as to what would damage the board or not, and how to handle the spikes when the dc motor turns on or off

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 12 years ago in reply to Former Member

    Hi Jonny,

     

    If you're talking about a smallish motor (say a few hundred mA and maybe no higher than 12V) then a single BJT/resistor is fine (resistor of maybe 1k in series with the base of the transistor). Note that you may need a darlington type arrangement because the gain of the transistor may likely not be sufficient. Yes definitely place some diode across the motor it will fail without it - a small 1N4148 should be fine for a small motor. And a capacitor, maybe 100nF across the supply rails. (Also, you may need to power this from a separate supply, rather than from the BBB header, unless it really is a low power motor. Some motors don't need a lot of current at all, but some do :-(

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • saurocksall
    0 saurocksall over 12 years ago

    Hi Jonny,


    If you want to eliminate spikes produced by the motor connect a small ceramic capacitor say 0.1mF parallel to the motor, i do this regularly with my projects to handle the spikes which burned my ic once...


    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Thanx guys so much for all da help!!!

     

    JonnyZ

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 12 years ago in reply to Former Member

    Jonny Z wrote:

     

    i just wasn't too sure as to what would damage the board or not, and how to handle the spikes when the dc motor turns on or off

    The standard way to prevent spikes form motors or other inductive loads is a Flyback Diode.  If you drive a motor directly through a transistor, everything is fine until the transistor turns off.  The current still needs to flow through the motor until the magnetic field collapses, and since this current can't go anywhere the voltage builds until it finds something to zap, such as the transistor.  The flyback diode provides a safe way for the collapsing current to flow back through the motor.

     

    You might find this Raspberry Pi thread useful: Raspberry Pi • View topic - Relay not switching....  The OP was having trouble getting enough current through a relay using a single NPN transistor, but a Darlington pair "did the trick".

    • 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 © 2026 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