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 Seems odd can I get an explation?
  • 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 Not Answered
  • Replies 5 replies
  • Subscribers 402 subscribers
  • Views 511 views
  • Users 0 members are here
  • transistor
  • behavior
  • basic
  • odd
Related

Seems odd can I get an explation?

Former Member
Former Member over 11 years ago

Hallo Element 4 I am rather new here, in fact its my first post. I've been playing around with Arduino and various components for it. I was trying to understand transistors and looked up a few tutorials on it. Thus in all examples the transistors I bought behaved rather odd. I've made a schematic of my build on a breadboard where I use the Arduino as a power source and a NPN transistor and I am unsure of the part number so please ignore it on the first picture.

Fullscreen contentimage_76498.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>

At the picture most at the right thats how I understand a button switch to a transistor works. I know the transistor is rather pointless in this, but it was a good way to experiment with the transistor without changing code all the time image

 

However the odd behavior I was talking about just now is shown on the picture on the right. It yields the same resualt as picture on. As far as I understand an NPN transistor means the Collector have to be negative base should be possitive and the emitter should be negative to get an output. So in the drawing on the left it should nullify all cause its "PPN" and shouldn't light up the LED but it does.

 

I decided to try to make an AND gate to test some theory. The build looks like this:

Fullscreen contentimage_76499.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>

 

Whats happening here is this:

when I press A nothing happens. When I press  B it lights up. If I press A and B it still lights up. Which is wrong for an AND gate. Can anyone please explain why it behaves like this? Did I buy the wrong set of transistors?

  • Sign in to reply
  • Cancel
Parents
  • johnbeetem
    0 johnbeetem over 11 years ago

    In the top figure, R2 is operating independently of Q1 + R1 + D2.  When you throw the switch, 5V goes across 1KΩ resistor R2 and it simply conducts 5V/1KΩ = 5mA of current, and R2 warms up a tiny bit.

     

    Also, when you throw the switch, a second current path goes through Q1's base-emitter (BE) junction followed by R1 followed by D2.  In this mode Q1 behaves like a forward-biased diode and it couldn't care less what's happening with the collector.  You get a 0.7V drop across Q1 BE and 2.4V or so across D2, depending on the color.  This leaves 5V - 0.7V - 2.4V = 1.9V across 360Ω resistor R1, which gives us 1.9V/360Ω = 5.3 mA which gives you a nice, bright light with a modern LED.

     

    In the lower figure, if you only close switch A you just get 5 mA across R5.  Q4 can't turn on because Q5 is off.  When you close switch B, Q5 BE behaves like a diode and it couldn't care less what switch A is doing.

     

    I found a nice tutorial on LEDs on the 'net.  Please ignore the title and call it "LEDs for Beginners" instead.  Fig 4 shows the standard way to drive LEDs using an NPN transistor.

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

    Everything works as it should. Now thank you. I get the point thus it seems as I missunderstood the usage of a pull down resistor thats what I was thinking R2 for aswell as R4 image I was thinking you needed to force it to ground so no power was comming in to add noise to the transistor o: ...Oh well we all learn thank you everybody (: ~ Have a wonderful day.

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

    Everything works as it should. Now thank you. I get the point thus it seems as I missunderstood the usage of a pull down resistor thats what I was thinking R2 for aswell as R4 image I was thinking you needed to force it to ground so no power was comming in to add noise to the transistor o: ...Oh well we all learn thank you everybody (: ~ Have a wonderful day.

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