{"id":509,"date":"2025-12-06T10:57:45","date_gmt":"2025-12-06T10:57:45","guid":{"rendered":"http:\/\/elerain.com\/?p=509"},"modified":"2026-01-11T22:00:08","modified_gmt":"2026-01-11T13:00:08","slug":"gpio-level-conversion-using-discrete-components-bjts-mosfets","status":"publish","type":"post","link":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/","title":{"rendered":"GPIO Level Conversion Using Discrete Components (BJTs &#038; MOSFETs)"},"content":{"rendered":"<h2>How to safely interface 3.3 V and 5 V logic without specialized ICs<\/h2>\n<p>In embedded systems, it is extremely common to connect devices that operate at different logic voltages. Many modern microcontrollers run at <strong>3.3 V<\/strong>, while older devices, sensors, serial peripherals, and some modules still use <strong>5 V logic<\/strong>.<\/p>\n<p>Although dedicated level-shifter ICs exist, sometimes you need a discrete components solution.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-512\" src=\"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg\" alt=\"\" width=\"1017\" height=\"343\" srcset=\"https:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg 1017w, https:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion-600x202.jpg 600w, https:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion-300x101.jpg 300w, https:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion-768x259.jpg 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/p>\n<h3>Why Level Shifting Matters<\/h3>\n<p>A 5 V logic device typically interprets:<\/p>\n<ul>\n<li>Logic HIGH \u2248 <strong>0.7 \u00d7 VCC \u2248 3.5 V<\/strong><\/li>\n<li>Logic LOW \u2248 <strong>&lt; 0.8 V<\/strong><\/li>\n<\/ul>\n<p>A 3.3 V microcontroller outputs <strong>3.3 V HIGH<\/strong>, which <em>may or may not<\/em> be interpreted as a valid logic HIGH for a 5 V device.<\/p>\n<p>More importantly:<\/p>\n<p><strong>Feeding a 5 V signal directly into a 3.3 V GPIO pin can permanently damage it.<\/strong><\/p>\n<p>This is why level shifting is needed for:<\/p>\n<ul>\n<li>UART (TX\/RX)<\/li>\n<li>I\u00b2C<\/li>\n<li>SPI<\/li>\n<li>1-Wire<\/li>\n<li>General-purpose GPIO<\/li>\n<\/ul>\n<ol>\n<li>\n<h4>Bidirectional BJT Transistor Level Shifters<\/h4>\n<\/li>\n<\/ol>\n<p>While MOSFET level translators are the modern standard, <strong>BJTs can also perform level shifting<\/strong>.<\/p>\n<p><strong>Advantages of BJT Level Shifters<\/strong><\/p>\n<ul>\n<li>Very cheap<\/li>\n<li>Good noise immunity<\/li>\n<li>Higher ESD robustness than MOSFETs<\/li>\n<li>M ust be tuned for the best performannce (base resitor and capacitor)<\/li>\n<li>Work well for simple bidirectional pull-down logic translation<\/li>\n<\/ul>\n<p><strong>When BJTs Make Sense<\/strong><\/p>\n<ul>\n<li>Sensors with open-drain outputs<\/li>\n<li>1-Wire, I\u00b2C in low-speed mode<\/li>\n<li>Lines that need clean, strong pull-down capability<\/li>\n<li>Harsh environments where ESD robustness matters<\/li>\n<\/ul>\n<p><strong>Circuit Example: NPN Bidirectional Level Shifter<\/strong><\/p>\n<p><strong>In this circuit:<\/strong><\/p>\n<ul>\n<li><strong>V1\/D1 &amp; V2\/D2<\/strong> act as <strong>open-drain drivers<\/strong><\/li>\n<li><strong>R3 and R2<\/strong> are pull-ups to different voltage domains<\/li>\n<li><strong>R1 \/ C1<\/strong> are tuned for the best performance<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>\n<h4>Bidirectional MOSFET Level Shifters<\/h4>\n<\/li>\n<\/ol>\n<p>The most common and universal discrete level shifter for low-speed buses is the <strong>N-channel MOSFET level translator<\/strong>.<\/p>\n<p><strong>It is used in:<\/strong><\/p>\n<ul>\n<li>Commercial I\u00b2C breakout boards<\/li>\n<li>Many modules and shields<\/li>\n<li>Arduino \u2194 Raspberry Pi interfacing<\/li>\n<li>Sensors with open-drain interfaces<\/li>\n<\/ul>\n<h3>Typical MOSFET Bidirectional Level Shifter<\/h3>\n<p><strong>How it works<\/strong><\/p>\n<ul>\n<li>The MOSFET body diode allows initial conduction from lower to higher voltage.<\/li>\n<li>When either side pulls LOW, the MOSFET conducts and pulls the other side LOW.<\/li>\n<li>When both sides are HIGH, each pull-up defines its respective voltage domain.<\/li>\n<\/ul>\n<p><strong>Characteristics<\/strong><\/p>\n<ul>\n<li>True bidirectional<\/li>\n<li>Non-inverting<\/li>\n<li>Perfect for I\u00b2C, 1-Wire, and slow digital lines<\/li>\n<li>Not ideal for fast SPI (&gt; 4 MHz)<\/li>\n<li>Requires good pull-up selection<\/li>\n<\/ul>\n<h3>Conclusion<\/h3>\n<p>Discrete level-shifting circuits are an excellent alternative when a level shif IC solution is unnecessary.<\/p>\n<p>With the right choice of devices and resistor values, you can interface <strong>3.3 V<\/strong> and <strong>5 V<\/strong> domains safely, reliably, and inexpensively.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at different logic voltages. Many modern microcontrollers run at 3.3 V, while older devices, sensors, serial peripherals, and some modules still use 5 V logic. Although dedicated level-shifter ICs exist,&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-509","post","type-post","status-publish","format-standard","hentry","category-articles"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.0 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>GPIO Level Conversion Using Discrete Components (BJTs &amp; MOSFETs)<\/title>\n<meta name=\"description\" content=\"How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GPIO Level Conversion Using Discrete Components (BJTs &amp; MOSFETs)\" \/>\n<meta property=\"og:description\" content=\"How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\" \/>\n<meta property=\"og:site_name\" content=\"Elerain\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-06T10:57:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-11T13:00:08+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg\" \/>\n<meta name=\"author\" content=\"Elerain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elerain\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\"},\"author\":{\"name\":\"Elerain\",\"@id\":\"https:\/\/elerain.com\/ko\/#\/schema\/person\/f42aeac0d8a141dd15cb72614e72fc0e\"},\"headline\":\"GPIO Level Conversion Using Discrete Components (BJTs &#038; MOSFETs)\",\"datePublished\":\"2025-12-06T10:57:45+00:00\",\"dateModified\":\"2026-01-11T13:00:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\"},\"wordCount\":403,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg\",\"articleSection\":[\"Articles\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\",\"url\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\",\"name\":\"GPIO Level Conversion Using Discrete Components (BJTs & MOSFETs)\",\"isPartOf\":{\"@id\":\"https:\/\/elerain.com\/ko\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg\",\"datePublished\":\"2025-12-06T10:57:45+00:00\",\"dateModified\":\"2026-01-11T13:00:08+00:00\",\"author\":{\"@id\":\"https:\/\/elerain.com\/ko\/#\/schema\/person\/f42aeac0d8a141dd15cb72614e72fc0e\"},\"description\":\"How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at\",\"breadcrumb\":{\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage\",\"url\":\"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg\",\"contentUrl\":\"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/elerain.com\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uae30\uc0ac\",\"item\":\"https:\/\/elerain.com\/ko\/category\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GPIO Level Conversion Using Discrete Components (BJTs &#038; MOSFETs)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elerain.com\/ko\/#website\",\"url\":\"https:\/\/elerain.com\/ko\/\",\"name\":\"Elerain\",\"description\":\"Elerain\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elerain.com\/ko\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/elerain.com\/ko\/#\/schema\/person\/f42aeac0d8a141dd15cb72614e72fc0e\",\"name\":\"Elerain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/elerain.com\/wp-content\/uploads\/2025\/10\/favicon-100x100.png\",\"url\":\"https:\/\/elerain.com\/wp-content\/uploads\/2025\/10\/favicon-100x100.png\",\"contentUrl\":\"https:\/\/elerain.com\/wp-content\/uploads\/2025\/10\/favicon-100x100.png\",\"caption\":\"Elerain\"},\"description\":\"Experienced electronics engineers with up to 30+ years in analog, digital, and power electronics. Based in South Korea.\",\"url\":\"https:\/\/elerain.com\/ko\/author\/elerain\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"GPIO Level Conversion Using Discrete Components (BJTs & MOSFETs)","description":"How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/","og_locale":"ko_KR","og_type":"article","og_title":"GPIO Level Conversion Using Discrete Components (BJTs & MOSFETs)","og_description":"How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at","og_url":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/","og_site_name":"Elerain","article_published_time":"2025-12-06T10:57:45+00:00","article_modified_time":"2026-01-11T13:00:08+00:00","og_image":[{"url":"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg","type":"","width":"","height":""}],"author":"Elerain","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"Elerain","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#article","isPartOf":{"@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/"},"author":{"name":"Elerain","@id":"https:\/\/elerain.com\/ko\/#\/schema\/person\/f42aeac0d8a141dd15cb72614e72fc0e"},"headline":"GPIO Level Conversion Using Discrete Components (BJTs &#038; MOSFETs)","datePublished":"2025-12-06T10:57:45+00:00","dateModified":"2026-01-11T13:00:08+00:00","mainEntityOfPage":{"@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/"},"wordCount":403,"commentCount":0,"image":{"@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage"},"thumbnailUrl":"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg","articleSection":["Articles"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/","url":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/","name":"GPIO Level Conversion Using Discrete Components (BJTs & MOSFETs)","isPartOf":{"@id":"https:\/\/elerain.com\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage"},"image":{"@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage"},"thumbnailUrl":"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg","datePublished":"2025-12-06T10:57:45+00:00","dateModified":"2026-01-11T13:00:08+00:00","author":{"@id":"https:\/\/elerain.com\/ko\/#\/schema\/person\/f42aeac0d8a141dd15cb72614e72fc0e"},"description":"How to safely interface 3.3 V and 5 V logic without specialized ICs In embedded systems, it is extremely common to connect devices that operate at","breadcrumb":{"@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#primaryimage","url":"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg","contentUrl":"http:\/\/elerain.com\/wp-content\/uploads\/2025\/12\/BJT_Level_Conversion.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/elerain.com\/ko\/gpio-level-conversion-using-discrete-components-bjts-mosfets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/elerain.com\/ko\/"},{"@type":"ListItem","position":2,"name":"\uae30\uc0ac","item":"https:\/\/elerain.com\/ko\/category\/articles\/"},{"@type":"ListItem","position":3,"name":"GPIO Level Conversion Using Discrete Components (BJTs &#038; MOSFETs)"}]},{"@type":"WebSite","@id":"https:\/\/elerain.com\/ko\/#website","url":"https:\/\/elerain.com\/ko\/","name":"Elerain","description":"Elerain","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elerain.com\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/elerain.com\/ko\/#\/schema\/person\/f42aeac0d8a141dd15cb72614e72fc0e","name":"Elerain","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/elerain.com\/wp-content\/uploads\/2025\/10\/favicon-100x100.png","url":"https:\/\/elerain.com\/wp-content\/uploads\/2025\/10\/favicon-100x100.png","contentUrl":"https:\/\/elerain.com\/wp-content\/uploads\/2025\/10\/favicon-100x100.png","caption":"Elerain"},"description":"Experienced electronics engineers with up to 30+ years in analog, digital, and power electronics. Based in South Korea.","url":"https:\/\/elerain.com\/ko\/author\/elerain\/"}]}},"_links":{"self":[{"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/comments?post=509"}],"version-history":[{"count":0,"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/posts\/509\/revisions"}],"wp:attachment":[{"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/media?parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/categories?post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elerain.com\/ko\/wp-json\/wp\/v2\/tags?post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}