What's the function of this transistor on Arduino Mega?











up vote
1
down vote

favorite












I am trying to get information about the transistor on the Arduino Mega board below:



enter image description here



It says "340P" on the transistor. I want be able to know which model transition is this so that I can check its documentation. It also want to know what it is driving or its function on the Arduino board.










share|improve this question


























    up vote
    1
    down vote

    favorite












    I am trying to get information about the transistor on the Arduino Mega board below:



    enter image description here



    It says "340P" on the transistor. I want be able to know which model transition is this so that I can check its documentation. It also want to know what it is driving or its function on the Arduino board.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to get information about the transistor on the Arduino Mega board below:



      enter image description here



      It says "340P" on the transistor. I want be able to know which model transition is this so that I can check its documentation. It also want to know what it is driving or its function on the Arduino board.










      share|improve this question













      I am trying to get information about the transistor on the Arduino Mega board below:



      enter image description here



      It says "340P" on the transistor. I want be able to know which model transition is this so that I can check its documentation. It also want to know what it is driving or its function on the Arduino board.







      arduino-mega transistor documentation






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      Programmer

      1656




      1656






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          It's a P-channel MOSFET. It's job is to act as a "dropless" diode.



          The principle is this:




          • MOSFETs have a built-in diode across them in reverse bias (an effect of the chemistry)

          • The P-channel MOSFET is connected backwards in series with the incoming USB power.

          • The internal diode conducts power when there is +5V in to the USB to give power to the board.

          • The diode imposes a voltage drop, but there is enough voltage still to run the circuitry.

          • An op-amp compares the incoming voltage from the barrel jack (divided by 2) against 3.3V. If it's less than 3.3V (6.6V incoming) or not there at all, it turns on the P-channel MOSFET

          • The MOSFET then short circuits the internal diode removing the voltage drop, giving the full 5V from the USB to the rest of the board.


          schematic





          simulate this circuit – Schematic created using CircuitLab



          Note: diode shown is internal to the MOSFET.



          The MOSFET is designated T2 in the schematic, and is a FDN340P on the reference design, although the actual model is not that critical, as long as the threshold voltage is above about -3V and it can happily handle 500mA or more.






          share|improve this answer























          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            3 hours ago











          Your Answer






          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("schematics", function () {
          StackExchange.schematics.init();
          });
          }, "cicuitlab");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "540"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f58124%2fwhats-the-function-of-this-transistor-on-arduino-mega%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote



          accepted










          It's a P-channel MOSFET. It's job is to act as a "dropless" diode.



          The principle is this:




          • MOSFETs have a built-in diode across them in reverse bias (an effect of the chemistry)

          • The P-channel MOSFET is connected backwards in series with the incoming USB power.

          • The internal diode conducts power when there is +5V in to the USB to give power to the board.

          • The diode imposes a voltage drop, but there is enough voltage still to run the circuitry.

          • An op-amp compares the incoming voltage from the barrel jack (divided by 2) against 3.3V. If it's less than 3.3V (6.6V incoming) or not there at all, it turns on the P-channel MOSFET

          • The MOSFET then short circuits the internal diode removing the voltage drop, giving the full 5V from the USB to the rest of the board.


          schematic





          simulate this circuit – Schematic created using CircuitLab



          Note: diode shown is internal to the MOSFET.



          The MOSFET is designated T2 in the schematic, and is a FDN340P on the reference design, although the actual model is not that critical, as long as the threshold voltage is above about -3V and it can happily handle 500mA or more.






          share|improve this answer























          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            3 hours ago















          up vote
          3
          down vote



          accepted










          It's a P-channel MOSFET. It's job is to act as a "dropless" diode.



          The principle is this:




          • MOSFETs have a built-in diode across them in reverse bias (an effect of the chemistry)

          • The P-channel MOSFET is connected backwards in series with the incoming USB power.

          • The internal diode conducts power when there is +5V in to the USB to give power to the board.

          • The diode imposes a voltage drop, but there is enough voltage still to run the circuitry.

          • An op-amp compares the incoming voltage from the barrel jack (divided by 2) against 3.3V. If it's less than 3.3V (6.6V incoming) or not there at all, it turns on the P-channel MOSFET

          • The MOSFET then short circuits the internal diode removing the voltage drop, giving the full 5V from the USB to the rest of the board.


          schematic





          simulate this circuit – Schematic created using CircuitLab



          Note: diode shown is internal to the MOSFET.



          The MOSFET is designated T2 in the schematic, and is a FDN340P on the reference design, although the actual model is not that critical, as long as the threshold voltage is above about -3V and it can happily handle 500mA or more.






          share|improve this answer























          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            3 hours ago













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          It's a P-channel MOSFET. It's job is to act as a "dropless" diode.



          The principle is this:




          • MOSFETs have a built-in diode across them in reverse bias (an effect of the chemistry)

          • The P-channel MOSFET is connected backwards in series with the incoming USB power.

          • The internal diode conducts power when there is +5V in to the USB to give power to the board.

          • The diode imposes a voltage drop, but there is enough voltage still to run the circuitry.

          • An op-amp compares the incoming voltage from the barrel jack (divided by 2) against 3.3V. If it's less than 3.3V (6.6V incoming) or not there at all, it turns on the P-channel MOSFET

          • The MOSFET then short circuits the internal diode removing the voltage drop, giving the full 5V from the USB to the rest of the board.


          schematic





          simulate this circuit – Schematic created using CircuitLab



          Note: diode shown is internal to the MOSFET.



          The MOSFET is designated T2 in the schematic, and is a FDN340P on the reference design, although the actual model is not that critical, as long as the threshold voltage is above about -3V and it can happily handle 500mA or more.






          share|improve this answer














          It's a P-channel MOSFET. It's job is to act as a "dropless" diode.



          The principle is this:




          • MOSFETs have a built-in diode across them in reverse bias (an effect of the chemistry)

          • The P-channel MOSFET is connected backwards in series with the incoming USB power.

          • The internal diode conducts power when there is +5V in to the USB to give power to the board.

          • The diode imposes a voltage drop, but there is enough voltage still to run the circuitry.

          • An op-amp compares the incoming voltage from the barrel jack (divided by 2) against 3.3V. If it's less than 3.3V (6.6V incoming) or not there at all, it turns on the P-channel MOSFET

          • The MOSFET then short circuits the internal diode removing the voltage drop, giving the full 5V from the USB to the rest of the board.


          schematic





          simulate this circuit – Schematic created using CircuitLab



          Note: diode shown is internal to the MOSFET.



          The MOSFET is designated T2 in the schematic, and is a FDN340P on the reference design, although the actual model is not that critical, as long as the threshold voltage is above about -3V and it can happily handle 500mA or more.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 3 hours ago

























          answered 4 hours ago









          Majenko

          64.9k42874




          64.9k42874












          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            3 hours ago


















          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            3 hours ago
















          "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
          – Programmer
          3 hours ago




          "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
          – Programmer
          3 hours ago


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2farduino.stackexchange.com%2fquestions%2f58124%2fwhats-the-function-of-this-transistor-on-arduino-mega%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks