element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Learning about H-bridges and transistors
  • 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 38 replies
  • Answers 8 answers
  • Subscribers 397 subscribers
  • Views 2943 views
  • Users 0 members are here
  • frontpage
  • h-bridge
  • transistors
Related

Learning about H-bridges and transistors

ovidiub13
ovidiub13 over 9 years ago

I'm trying to learn about transistors and H bridges towards a final goal of controlling a bipolar stepper motor with Arduino.

 

I've done the following half H-bridge in the process of learning:

image

My first question: Why can't I use a single resistor to connect the base of both transistors to ground?

  • Sign in to reply
  • Cancel

Top Replies

  • strb
    strb over 9 years ago +1 suggested
    I'm not sure that this schematic works... the led isn't reverse polarized? Anyway use a pnp as pullup transistor and a npn as pulldown, it's a good thing to put also a limiter resistor to control the current…
  • strb
    strb over 9 years ago in reply to clem57 +1
    Great "how link" clem57
  • mcb1
    mcb1 over 9 years ago in reply to ovidiub13 +1 suggested
    What I'm having issues understanding is how transistors work You can consider a transistor as a switch (in this case they are either ON or OFF) The control part of the switch is the base to emitter (NPN…
  • mcb1
    0 mcb1 over 9 years ago in reply to Robert Peter Oakes

    i'm surprised the LEDs have not burned out,

    That is because 5v - 0.6v( E-B of Q2) thru 330 ohm is at most 13mA.

    If you factor in a LED forward voltage drop of 1.7v you have 2.7v thru 330 is 8mA.

     

    I can't see that Q2 even turns ON as it would turn off immediately.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ovidiub13
    0 ovidiub13 over 9 years ago

    I fixed it. I think.

     

    I've added a resistor for the LEDs, and 2 bigger resistors for the transistors bases to + to make sure the gates are closed when the button is not pressed.

     

    image

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

    There are unipolar and bipolar motors. Bipolar motors want the current in the coils to be reversed.  Five volt six or eight wire unipolar stepper motors can be used as ten volt bipolar motors.  4-phase unipolar motors use four coils, bipolar motors use two coils, but four phases 'cuz +/-.

     

    There are five phase motors.  These are less likely to 'cog' or resonate, but they are expensive.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 9 years ago in reply to ovidiub13

    I can't recall you indicating that it stayed ON at any point ... maybe I missed it.

    But adding the 2 x 4k7 resistors are good practice.

     

    If you've been reading our replies, you'll note that Q2 and Q1 never switch ON.

    You can prove this by shorting the Emitter to Base of Q2 and Q1 and you'll find it works exactly the same.

     

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ovidiub13
    0 ovidiub13 over 9 years ago in reply to mcb1

    How can I fix this? How can I make them work?

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

    There are likely many errors in this circuit but it is difficult to follow because the parts are thrown together on the schematic not even resembling a H-bridge formation since the left side has its ends folded back on itself (why?).

     

    I can't follow the circuit the way it has been drawn (if you've already studied H-bridge circuits which you say you have, then you know that yours is drawn as a mess - not something to show to teachers perhaps if you're a student), so I can't spot all the errors without more effort.

     

    However, one negative is that you're using 4 identical BJT's.

    There is close to a 1V drop loss for lower legs of the H-bridge (and by lower I mean the ones at the bottom if you'd drawn it the correct way up rather than up-side down), plus about 0.2V for the top legs of the H-bridge, so there will be less than 4V available to the LED or motor. As people have mentioned, if you're using LEDs then there should be a series resistor for them.

    The circuit would be better if the lower BJT's were NPN. Or even better if MOSFETs were used.

    And won't work (well or for long) with inductive loads. If you google H-bridge, you'll see how people resolve that.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 9 years ago in reply to ovidiub13

    How can I fix this? How can I make them work?

    prove my point by shorting out the E-B first to confirm the suspicion.

     

     

    A quick check using Google shows this.

    H Bridge motor driver theory & practical circuit using transistors- animation/ simulation: Getting started with Robotics…

    This also explains how it works.

     

     

    We already pointed out that you don't require a bridge to drive a stepper.

    HOWEVER unless you advise what stepper you intend using, then it's hard to help.

     

    shabaz is quite right that your circuit is not designed for inductive loads, and there are plenty of simple IC's that take all the hard work out of it for you.

     

    Mark

     

    edit 3x spelling mistakes .. I blame the keyboard not keeping up.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to mcb1
    For the how to, read nathandumont.com : H-Bridge Tutorial that explains the how.

    5 days ago my sentiment exactly. Thanks mcb1 for getting back to reality. What goes on above is playing with circuits without understanding them trying to reach H bridges.

    Cheers!

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 9 years ago in reply to clem57

    clem57

    Thanks.

    I did look at you links, but it relied on 4 seperate inputs, and given the issues the OP had, I felt he needed something closer to his circuit.

     

    The other danger with two seperate switches, is that if both are on .... bye bye transistors.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 9 years ago in reply to mcb1

    of course the Vf of the Blue diode is more like 3.2-3.8 and we have 2? junctions worth of drop between 5V and GND so even less current all told

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject 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