RS232 to Raspberry Pi Zero W












1















I know this may be a dumb question but can you connect a RS232 Tx, Rx, and Ground from a device directly to the Rx, Tx and Ground on a Raspberry Pi Zero without having to get a Max3232 or something similar to that?










share|improve this question



























    1















    I know this may be a dumb question but can you connect a RS232 Tx, Rx, and Ground from a device directly to the Rx, Tx and Ground on a Raspberry Pi Zero without having to get a Max3232 or something similar to that?










    share|improve this question

























      1












      1








      1








      I know this may be a dumb question but can you connect a RS232 Tx, Rx, and Ground from a device directly to the Rx, Tx and Ground on a Raspberry Pi Zero without having to get a Max3232 or something similar to that?










      share|improve this question














      I know this may be a dumb question but can you connect a RS232 Tx, Rx, and Ground from a device directly to the Rx, Tx and Ground on a Raspberry Pi Zero without having to get a Max3232 or something similar to that?







      serial pi-zero rpio






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 hours ago









      Michael H.Michael H.

      103




      103






















          1 Answer
          1






          active

          oldest

          votes


















          5














          Given the significant differences in the voltage levels it is not safe to directly connect any RS232 signal lines to the Pi's GPIO. Even if the voltage of some RS232 drivers might be as low as 3 V, the logic one (called "mark") is represented as a negative voltage which will kill the Pi.



          RS232 (Source):




          The standard specifies a maximum open-circuit voltage of 25 volts: signal levels of ±5 V, ±10 V, ±12 V, and ±15 V are all commonly seen depending on the voltages available to the line driver circuit. Some RS-232 driver chips have inbuilt circuitry to produce the required voltages from a 3 or 5 volt supply. RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts. The slew rate, or how fast the signal changes between levels, is also controlled.




          Raspberry Pi GPIO:



          GPIO voltage levels are 3.3V and are not 5V tolerant. Voltages below 0V and above 3.3V are outside the operating voltage range.



          See also:




          • What are the Electrical Specifications of GPIO pins?

          • What are the min/max voltage/current values the gpio pins can handle?






          share|improve this answer
























          • In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

            – Milliways
            4 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: "447"
          };
          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',
          autoActivateHeartbeat: false,
          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%2fraspberrypi.stackexchange.com%2fquestions%2f94958%2frs232-to-raspberry-pi-zero-w%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









          5














          Given the significant differences in the voltage levels it is not safe to directly connect any RS232 signal lines to the Pi's GPIO. Even if the voltage of some RS232 drivers might be as low as 3 V, the logic one (called "mark") is represented as a negative voltage which will kill the Pi.



          RS232 (Source):




          The standard specifies a maximum open-circuit voltage of 25 volts: signal levels of ±5 V, ±10 V, ±12 V, and ±15 V are all commonly seen depending on the voltages available to the line driver circuit. Some RS-232 driver chips have inbuilt circuitry to produce the required voltages from a 3 or 5 volt supply. RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts. The slew rate, or how fast the signal changes between levels, is also controlled.




          Raspberry Pi GPIO:



          GPIO voltage levels are 3.3V and are not 5V tolerant. Voltages below 0V and above 3.3V are outside the operating voltage range.



          See also:




          • What are the Electrical Specifications of GPIO pins?

          • What are the min/max voltage/current values the gpio pins can handle?






          share|improve this answer
























          • In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

            – Milliways
            4 hours ago
















          5














          Given the significant differences in the voltage levels it is not safe to directly connect any RS232 signal lines to the Pi's GPIO. Even if the voltage of some RS232 drivers might be as low as 3 V, the logic one (called "mark") is represented as a negative voltage which will kill the Pi.



          RS232 (Source):




          The standard specifies a maximum open-circuit voltage of 25 volts: signal levels of ±5 V, ±10 V, ±12 V, and ±15 V are all commonly seen depending on the voltages available to the line driver circuit. Some RS-232 driver chips have inbuilt circuitry to produce the required voltages from a 3 or 5 volt supply. RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts. The slew rate, or how fast the signal changes between levels, is also controlled.




          Raspberry Pi GPIO:



          GPIO voltage levels are 3.3V and are not 5V tolerant. Voltages below 0V and above 3.3V are outside the operating voltage range.



          See also:




          • What are the Electrical Specifications of GPIO pins?

          • What are the min/max voltage/current values the gpio pins can handle?






          share|improve this answer
























          • In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

            – Milliways
            4 hours ago














          5












          5








          5







          Given the significant differences in the voltage levels it is not safe to directly connect any RS232 signal lines to the Pi's GPIO. Even if the voltage of some RS232 drivers might be as low as 3 V, the logic one (called "mark") is represented as a negative voltage which will kill the Pi.



          RS232 (Source):




          The standard specifies a maximum open-circuit voltage of 25 volts: signal levels of ±5 V, ±10 V, ±12 V, and ±15 V are all commonly seen depending on the voltages available to the line driver circuit. Some RS-232 driver chips have inbuilt circuitry to produce the required voltages from a 3 or 5 volt supply. RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts. The slew rate, or how fast the signal changes between levels, is also controlled.




          Raspberry Pi GPIO:



          GPIO voltage levels are 3.3V and are not 5V tolerant. Voltages below 0V and above 3.3V are outside the operating voltage range.



          See also:




          • What are the Electrical Specifications of GPIO pins?

          • What are the min/max voltage/current values the gpio pins can handle?






          share|improve this answer













          Given the significant differences in the voltage levels it is not safe to directly connect any RS232 signal lines to the Pi's GPIO. Even if the voltage of some RS232 drivers might be as low as 3 V, the logic one (called "mark") is represented as a negative voltage which will kill the Pi.



          RS232 (Source):




          The standard specifies a maximum open-circuit voltage of 25 volts: signal levels of ±5 V, ±10 V, ±12 V, and ±15 V are all commonly seen depending on the voltages available to the line driver circuit. Some RS-232 driver chips have inbuilt circuitry to produce the required voltages from a 3 or 5 volt supply. RS-232 drivers and receivers must be able to withstand indefinite short circuit to ground or to any voltage level up to ±25 volts. The slew rate, or how fast the signal changes between levels, is also controlled.




          Raspberry Pi GPIO:



          GPIO voltage levels are 3.3V and are not 5V tolerant. Voltages below 0V and above 3.3V are outside the operating voltage range.



          See also:




          • What are the Electrical Specifications of GPIO pins?

          • What are the min/max voltage/current values the gpio pins can handle?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 10 hours ago









          GhanimaGhanima

          12.3k114079




          12.3k114079













          • In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

            – Milliways
            4 hours ago



















          • In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

            – Milliways
            4 hours ago

















          In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

          – Milliways
          4 hours ago





          In addition to the voltage difference, even if you limited it to 0 - 3V it would not work as the polarity is inverted

          – Milliways
          4 hours ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Raspberry Pi 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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fraspberrypi.stackexchange.com%2fquestions%2f94958%2frs232-to-raspberry-pi-zero-w%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

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          RAC Tourist Trophy