{"id":5392,"date":"2020-05-02T08:44:47","date_gmt":"2020-05-02T08:44:47","guid":{"rendered":"https:\/\/www.fambach.net\/?p=5392"},"modified":"2025-04-19T16:45:43","modified_gmt":"2025-04-19T16:45:43","slug":"logik-level-konverter","status":"publish","type":"post","link":"https:\/\/www.fambach.net\/en\/logik-level-konverter\/","title":{"rendered":"Logic Level Converter"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Contents\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Fakten\" >Facts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Anwendungsbereiche\" >Areas of application<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Ansichten\" >Views<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Programmierung\" >Programming<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Bibliotheken\" >Libraries<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Testprogramm\" >Test programme<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Probleme\" >Problems<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Sonstiges\" >Miscellaneous<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Fazit\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Verwandte_Beitrage\" >Verwandte Beitr&auml;ge<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/#Quellen\" >Sources<\/a><\/li><\/ul><\/nav><\/div>\n\n<p class=\"wp-block-paragraph\">Bei Microcontrollern gibt es unterschiedliche<a rel=\"noreferrer noopener\" href=\"https:\/\/de.wikipedia.org\/wiki\/Logikpegel\" target=\"_blank\"> Logiklevel<\/a>. Der Logiklevel sagt aus mit welcher Spannung das Ger&auml;t arbeitet. Die bekanntesten sind wohl 5V und 3.3V. Da man in der Praxis immer mal wieder vor dem Problem steht ein 5V Ger&auml;t in Verbindung mit einem 3.3V Ger&auml;t zu betreiben, m&ouml;chte ich an dieser Stelle mal den Logik-Level Konverter vorstellen. Er erlaubt die bidirectionale Kommunikation &uuml;ber die Levelgrenzen hinweg und das nicht nur f&uuml;r ein Signal sondern gleich f&uuml;r vier. Dies erm&ouml;glicht es ganze Schnittstellen wie I&sup2;C und UART oder andere Anwengungen auf unterschiedlichen Logikleveln zu realisieren.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fakten\"><\/span>Facts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table id=\"wpls-table-1\"><tbody><tr><td><strong>Description<\/strong><\/td><td><strong>Worth<\/strong><\/td><\/tr><tr><td>Signal1 3,3V<\/td><td>LV1<\/td><\/tr><tr><td>Signal2 3,3V<\/td><td>LV2<\/td><\/tr><tr><td>Masse von 3,3V<\/td><td>Ground<\/td><\/tr><tr><td>Operating voltage 3.3V<\/td><td>LV<\/td><\/tr><tr><td>Signal3 3.3V<\/td><td>LV3<\/td><\/tr><tr><td>Signal4 3.3V<\/td><td>LV4<\/td><\/tr><tr><td>Signal1 5V<\/td><td>HV1<\/td><\/tr><tr><td>Signal2 5V<\/td><td>HV2<\/td><\/tr><tr><td>Masse von 5V<\/td><td>Ground<\/td><\/tr><tr><td>Betriebsspannung 5V<\/td><td>HV<\/td><\/tr><tr><td>Signal3 5V<\/td><td>HV3<\/td><\/tr><tr><td>Signal4 5V<\/td><td>HV4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Anwendungsbereiche\"><\/span>Areas of application<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Kommunikation zwischen 5V und 3V Microcontrollern<\/li>\n\n\n\n<li>Anschluss von 5V Sensoren an 3V Microcontrollern<\/li>\n\n\n\n<li>Anschluss von 3V Sensoren an 5V Microcontrollern<\/li>\n\n\n\n<li>...<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ansichten\"><\/span>Views<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.fambach.net\/en\/logik-level-konverter\/logicconverterbottom\/\"><img loading=\"lazy\" decoding=\"async\" width=\"651\" height=\"559\" data-id=\"5397\" src=\"https:\/\/www.fambach.net\/wp-content\/uploads\/LogicConverterBottom.jpg\" alt=\"Logiklevelkonverter von unten\" class=\"wp-image-5397\"><\/a><figcaption class=\"wp-element-caption\">Logiklevelkonverter von unten<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.fambach.net\/en\/logik-level-konverter\/logicconvertertop\/\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"539\" data-id=\"5398\" src=\"https:\/\/www.fambach.net\/wp-content\/uploads\/LogicConverterTop.jpg\" alt=\"Logiklevelkonverter von oben\" class=\"wp-image-5398\"><\/a><figcaption class=\"wp-element-caption\">Logiklevelkonverter von oben<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Wiring<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1461\" height=\"768\" src=\"https:\/\/www.fambach.net\/wp-content\/uploads\/I2CLogicLevelConversion_bb.jpg\" alt=\"\" class=\"wp-image-5411\"><figcaption class=\"wp-element-caption\">Benutzung des Logikkonverters am Beispiel der I&sup2;C kommunikation zwischen ESP32 (3,3V) und Arduino Leonardo (5V)<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Probleme\"><\/span>Problems<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Doesn't work<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mal die Verdrahtung &uuml;berpr&uuml;fen besondes ob von beiden Stromkreisl&auml;ufen die Masse angeschlossen ist.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fazit\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Unverzichtbar wenn man den Logiklevel anpassen muss. Man kann dies zwar auch diskret realisieren aber so ist es viel einfach.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Verwandte_Beitrage\"><\/span>Verwandte Beitr&auml;ge<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<ul class=\"display-posts-listing\">\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-c3-seeed-studio-xiao\/\">ESP32-C3 Seeed Studio XIAO<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-c3-super-mini-board\/\">ESP32-C3 Super Mini Board<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-ubuntu-22-04\/\">PS3 controller under Ubuntu 2x.04<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/preview-template\/\">Preview \u2013 Open-Smart USB\/Serial Adapter<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/preview-strom-sensor-ina219-dc\/\">Preview \u2013 INA3221 Power Monitor<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-ubuntu-22-04-2\/\">PS3 controller on Windows 10<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/esp32-bluetooth-gamepad-2\/\">ESP32 Bluetooth Gamepad<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-ubuntu-22-04-3\/\">Bluetooth game controller on Ubuntu 20.04<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/bluetooth-gamecontroller-unter-windows-10\/\">Bluetooth game controllers on Windows 10<\/a><\/li>\n<li class=\"listing-item\"><a class=\"title\" href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/\">HC-06 Bluetooth Module<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Quellen\"><\/span>Sources<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/de.wikipedia.org\/wiki\/Logikpegel\">https:\/\/de.wikipedia.org\/wiki\/Logikpegel<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Bei Microcontrollern gibt es unterschiedliche Logiklevel. Der Logiklevel sagt aus mit welcher Spannung das Ger&auml;t arbeitet. Die bekanntesten sind wohl 5V und 3.3V. Da man in der Praxis immer mal wieder vor dem Problem steht ein 5V Ger&auml;t in Verbindung mit einem 3.3V Ger&auml;t zu betreiben, m&ouml;chte ich an dieser Stelle mal den Logik-Level Konverter &#8230;<\/p>\n<a href=\"https:\/\/www.fambach.net\/en\/hc-06-blutooth-modul\/\" class=\"read-more-link\">Carry on reading <span class=\"screen-reader-text\">\"HC-06 Blutooth Modul\"<\/span> <span class=\"meta-nav\">\u2192<\/span><\/a>","protected":false},"author":1,"featured_media":5412,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[195],"tags":[282,48,280,284,283,281],"class_list":["post-5392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kommunikation","tag-converter","tag-i2c","tag-iic","tag-level","tag-logic","tag-logic-level","penguin-post","penguin-post-not-sticky"],"modified_by":"sfambach","_links":{"self":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/comments?post=5392"}],"version-history":[{"count":6,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5392\/revisions"}],"predecessor-version":[{"id":13444,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/posts\/5392\/revisions\/13444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media\/5412"}],"wp:attachment":[{"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/media?parent=5392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/categories?post=5392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fambach.net\/en\/wp-json\/wp\/v2\/tags?post=5392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}