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











up vote
3
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
    3
    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
      3
      down vote

      favorite









      up vote
      3
      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 Nov 23 at 23:08









      Programmer

      22218




      22218






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          7
          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
            Nov 23 at 23:48






          • 2




            As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
            – KIIV
            Nov 24 at 9:16











          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
          7
          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
            Nov 23 at 23:48






          • 2




            As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
            – KIIV
            Nov 24 at 9:16















          up vote
          7
          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
            Nov 23 at 23:48






          • 2




            As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
            – KIIV
            Nov 24 at 9:16













          up vote
          7
          down vote



          accepted







          up vote
          7
          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 Nov 23 at 23:47

























          answered Nov 23 at 23:41









          Majenko

          65.3k42874




          65.3k42874












          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            Nov 23 at 23:48






          • 2




            As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
            – KIIV
            Nov 24 at 9:16


















          • "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
            – Programmer
            Nov 23 at 23:48






          • 2




            As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
            – KIIV
            Nov 24 at 9:16
















          "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
          – Programmer
          Nov 23 at 23:48




          "The diode imposes a voltage drop" I noticed this too and was curios on what's going on. Thanks for your clear answer
          – Programmer
          Nov 23 at 23:48




          2




          2




          As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
          – KIIV
          Nov 24 at 9:16




          As a curiosity: if you connect 5V on the Vin, it'll be injecting current back to the USB (mainly if it's powered down). Or if you accidentally short 3v3 to 5v, threshold voltage jumps over 10V. (the first one was caused by 5V voltage regulator instead of 9V. Second one by some short on shield and 9V on Vin)
          – KIIV
          Nov 24 at 9:16


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Arduino Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          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

          Сан-Квентин

          Алькесар

          Josef Freinademetz