Using a transistor as a switch between RX and TX

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a microcontroller(arduino) connected via its serial output(RX/TX) to a bluetooth module. i want to be able to program the microcontroller when the two are still connected but unless i disconnect controller RX the program will not upload. Question: is it possible to use a transistor to act as a switch between controller RX and bluetooth TX? my attempts have been unsuccessful so far...thanks.










share|improve this question





















  • Would you mind showing us the particular attempts that you tried, so that we can try to help you revise them to work?
    – Andrey Akhmetov
    1 hour ago










  • I think an analog switch is more in-line with what you want: en.wikipedia.org/wiki/Analogue_switch . It's made up of FETs.
    – DerStrom8
    56 mins ago











  • with the base as the enable/disable pin i have tried collector to arduino RX and emitter to bluetooth TX and vice verse. i have heard of those analogue switches before but was interested if it was possible to accomplish this with a single transistor....
    – user2105725
    41 mins ago














up vote
1
down vote

favorite












I have a microcontroller(arduino) connected via its serial output(RX/TX) to a bluetooth module. i want to be able to program the microcontroller when the two are still connected but unless i disconnect controller RX the program will not upload. Question: is it possible to use a transistor to act as a switch between controller RX and bluetooth TX? my attempts have been unsuccessful so far...thanks.










share|improve this question





















  • Would you mind showing us the particular attempts that you tried, so that we can try to help you revise them to work?
    – Andrey Akhmetov
    1 hour ago










  • I think an analog switch is more in-line with what you want: en.wikipedia.org/wiki/Analogue_switch . It's made up of FETs.
    – DerStrom8
    56 mins ago











  • with the base as the enable/disable pin i have tried collector to arduino RX and emitter to bluetooth TX and vice verse. i have heard of those analogue switches before but was interested if it was possible to accomplish this with a single transistor....
    – user2105725
    41 mins ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a microcontroller(arduino) connected via its serial output(RX/TX) to a bluetooth module. i want to be able to program the microcontroller when the two are still connected but unless i disconnect controller RX the program will not upload. Question: is it possible to use a transistor to act as a switch between controller RX and bluetooth TX? my attempts have been unsuccessful so far...thanks.










share|improve this question













I have a microcontroller(arduino) connected via its serial output(RX/TX) to a bluetooth module. i want to be able to program the microcontroller when the two are still connected but unless i disconnect controller RX the program will not upload. Question: is it possible to use a transistor to act as a switch between controller RX and bluetooth TX? my attempts have been unsuccessful so far...thanks.







microcontroller transistors switching






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









user2105725

696




696











  • Would you mind showing us the particular attempts that you tried, so that we can try to help you revise them to work?
    – Andrey Akhmetov
    1 hour ago










  • I think an analog switch is more in-line with what you want: en.wikipedia.org/wiki/Analogue_switch . It's made up of FETs.
    – DerStrom8
    56 mins ago











  • with the base as the enable/disable pin i have tried collector to arduino RX and emitter to bluetooth TX and vice verse. i have heard of those analogue switches before but was interested if it was possible to accomplish this with a single transistor....
    – user2105725
    41 mins ago
















  • Would you mind showing us the particular attempts that you tried, so that we can try to help you revise them to work?
    – Andrey Akhmetov
    1 hour ago










  • I think an analog switch is more in-line with what you want: en.wikipedia.org/wiki/Analogue_switch . It's made up of FETs.
    – DerStrom8
    56 mins ago











  • with the base as the enable/disable pin i have tried collector to arduino RX and emitter to bluetooth TX and vice verse. i have heard of those analogue switches before but was interested if it was possible to accomplish this with a single transistor....
    – user2105725
    41 mins ago















Would you mind showing us the particular attempts that you tried, so that we can try to help you revise them to work?
– Andrey Akhmetov
1 hour ago




Would you mind showing us the particular attempts that you tried, so that we can try to help you revise them to work?
– Andrey Akhmetov
1 hour ago












I think an analog switch is more in-line with what you want: en.wikipedia.org/wiki/Analogue_switch . It's made up of FETs.
– DerStrom8
56 mins ago





I think an analog switch is more in-line with what you want: en.wikipedia.org/wiki/Analogue_switch . It's made up of FETs.
– DerStrom8
56 mins ago













with the base as the enable/disable pin i have tried collector to arduino RX and emitter to bluetooth TX and vice verse. i have heard of those analogue switches before but was interested if it was possible to accomplish this with a single transistor....
– user2105725
41 mins ago




with the base as the enable/disable pin i have tried collector to arduino RX and emitter to bluetooth TX and vice verse. i have heard of those analogue switches before but was interested if it was possible to accomplish this with a single transistor....
– user2105725
41 mins ago










2 Answers
2






active

oldest

votes

















up vote
1
down vote













This would work well, MAX4544. Have the default position be COM to NC with a pulldown on IN, when the Arduino sketch wakes up it can drive IN to High to connect COM to NO and enable the BT connection.



https://datasheets.maximintegrated.com/en/ds/MAX4541-MAX4544.pdf



Or one of this if you want to switch both in the same package



https://datasheets.maximintegrated.com/en/ds/MAX4528.pdf






share|improve this answer



























    up vote
    1
    down vote













    The easiest solution IME to this problem is to avoid it entirely: most arduino boards have a header on them that can be used to connect an AVRisp programmer device, which results in not needing to use the serial interface for programming. The devices are cheap (there are very low cost clones on eBay) and the arduino IDE supports using them. Doing so also allows you to overwrite the arduino boot loader, which can give you a small amount of extra storage for your program, which I often find handy.






    share|improve this answer




















      Your Answer




      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
      );
      );
      , "mathjax-editing");

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

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "135"
      ;
      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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f397928%2fusing-a-transistor-as-a-switch-between-rx-and-tx%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      This would work well, MAX4544. Have the default position be COM to NC with a pulldown on IN, when the Arduino sketch wakes up it can drive IN to High to connect COM to NO and enable the BT connection.



      https://datasheets.maximintegrated.com/en/ds/MAX4541-MAX4544.pdf



      Or one of this if you want to switch both in the same package



      https://datasheets.maximintegrated.com/en/ds/MAX4528.pdf






      share|improve this answer
























        up vote
        1
        down vote













        This would work well, MAX4544. Have the default position be COM to NC with a pulldown on IN, when the Arduino sketch wakes up it can drive IN to High to connect COM to NO and enable the BT connection.



        https://datasheets.maximintegrated.com/en/ds/MAX4541-MAX4544.pdf



        Or one of this if you want to switch both in the same package



        https://datasheets.maximintegrated.com/en/ds/MAX4528.pdf






        share|improve this answer






















          up vote
          1
          down vote










          up vote
          1
          down vote









          This would work well, MAX4544. Have the default position be COM to NC with a pulldown on IN, when the Arduino sketch wakes up it can drive IN to High to connect COM to NO and enable the BT connection.



          https://datasheets.maximintegrated.com/en/ds/MAX4541-MAX4544.pdf



          Or one of this if you want to switch both in the same package



          https://datasheets.maximintegrated.com/en/ds/MAX4528.pdf






          share|improve this answer












          This would work well, MAX4544. Have the default position be COM to NC with a pulldown on IN, when the Arduino sketch wakes up it can drive IN to High to connect COM to NO and enable the BT connection.



          https://datasheets.maximintegrated.com/en/ds/MAX4541-MAX4544.pdf



          Or one of this if you want to switch both in the same package



          https://datasheets.maximintegrated.com/en/ds/MAX4528.pdf







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 40 mins ago









          CrossRoads

          6474




          6474






















              up vote
              1
              down vote













              The easiest solution IME to this problem is to avoid it entirely: most arduino boards have a header on them that can be used to connect an AVRisp programmer device, which results in not needing to use the serial interface for programming. The devices are cheap (there are very low cost clones on eBay) and the arduino IDE supports using them. Doing so also allows you to overwrite the arduino boot loader, which can give you a small amount of extra storage for your program, which I often find handy.






              share|improve this answer
























                up vote
                1
                down vote













                The easiest solution IME to this problem is to avoid it entirely: most arduino boards have a header on them that can be used to connect an AVRisp programmer device, which results in not needing to use the serial interface for programming. The devices are cheap (there are very low cost clones on eBay) and the arduino IDE supports using them. Doing so also allows you to overwrite the arduino boot loader, which can give you a small amount of extra storage for your program, which I often find handy.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  The easiest solution IME to this problem is to avoid it entirely: most arduino boards have a header on them that can be used to connect an AVRisp programmer device, which results in not needing to use the serial interface for programming. The devices are cheap (there are very low cost clones on eBay) and the arduino IDE supports using them. Doing so also allows you to overwrite the arduino boot loader, which can give you a small amount of extra storage for your program, which I often find handy.






                  share|improve this answer












                  The easiest solution IME to this problem is to avoid it entirely: most arduino boards have a header on them that can be used to connect an AVRisp programmer device, which results in not needing to use the serial interface for programming. The devices are cheap (there are very low cost clones on eBay) and the arduino IDE supports using them. Doing so also allows you to overwrite the arduino boot loader, which can give you a small amount of extra storage for your program, which I often find handy.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 32 mins ago









                  Jules

                  1,307816




                  1,307816



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f397928%2fusing-a-transistor-as-a-switch-between-rx-and-tx%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      Long meetings (6-7 hours a day): Being “babysat” by supervisor

                      Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                      Confectionery