{"id":674,"date":"2016-05-29T14:14:59","date_gmt":"2016-05-29T14:14:59","guid":{"rendered":"https:\/\/einhugur.com\/blog\/?page_id=674"},"modified":"2021-04-15T13:20:34","modified_gmt":"2021-04-15T13:20:34","slug":"i2c-logic-level-converter-building-our-own","status":"publish","type":"page","link":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/","title":{"rendered":"I2C logic level converter &#8211; Building our own"},"content":{"rendered":"<h1>In this example we are going to create a I2C logic level converter.<\/h1>\n<p><strong>Disclaimer:<\/strong><br \/>\nWe do not take any responsibility for possible errors in the guide or errors that you might do wiring it up. Incorrect wiring can result in damaged sensor or damaged Raspberry PI.<\/p>\n<p><strong>The problem:<\/strong><br \/>\nSome I2C devices their logic on 3.3 V while others on 5V. \u00a0Getting 5V on your I2C pins on Raspberry PI can damage your Raspberry PI. And incorrect voltages can also give you wrong results.<\/p>\n<p>In some of our guides we have used 15k resistors to drop the voltage on the I2C bus to make it safe. But this is not good solution if you have many more than one device\u00a0and \u00a0will not work with all devices.<\/p>\n<p>A proper solution is to use I2C logic converter where some devices can run their logic on 5 V while others on 3.3 and the logic converter takes care of converting the signals seamlessly in both directions.<\/p>\n<p>As you can see then the I2C bus in the picture bellow is running on 2 separate voltages.<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?ssl=1\"><img data-attachment-id=\"676\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2c1\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?fit=493%2C184&amp;ssl=1\" data-orig-size=\"493,184\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2C1\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?fit=300%2C112&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?fit=474%2C177&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-676\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?resize=474%2C177&#038;ssl=1\" alt=\"I2C1\" width=\"474\" height=\"177\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C1.png?resize=300%2C112&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>For our <a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/\">BMP180 Barometer guide<\/a> then it was done like this:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?ssl=1\"><img data-attachment-id=\"677\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2c2\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?fit=365%2C150&amp;ssl=1\" data-orig-size=\"365,150\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2C2\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?fit=300%2C123&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?fit=365%2C150&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-677\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?resize=365%2C150&#038;ssl=1\" alt=\"I2C2\" width=\"365\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?w=365&amp;ssl=1 365w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C2.png?resize=300%2C123&amp;ssl=1 300w\" sizes=\"(max-width: 365px) 100vw, 365px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>But better would be like this:<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?ssl=1\"><img data-attachment-id=\"678\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2c3\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=493%2C147&amp;ssl=1\" data-orig-size=\"493,147\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2C3\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=300%2C89&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=474%2C141&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-678\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?resize=474%2C141&#038;ssl=1\" alt=\"I2C3\" width=\"474\" height=\"141\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?resize=300%2C89&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Same goes for the\u00a0<a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/pcf8591-analog-to-digital\/\">PCF8591 Analog To Digital guide<\/a>, using Logic converter would be far better there.<\/p>\n<p>There are many cheap brakeout-boards that you can buy to convert I2C voltages. In this guide we will go into the deep end of the pool and just\u00a0make our own. At bottom we cover how to wire up some of the bought pre-made ones.<\/p>\n<p><strong>Pieces we use in this example:<\/strong><\/p>\n<ul>\n<li>Raspberry PI 2 (or Raspberry PI 3)<\/li>\n<li>Cobbler and Cobbler cable<\/li>\n<li>You either need to be able to run our\u00a0<a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/\">BMP180 Barometer guide<\/a>\u00a0or our\u00a0<a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/pcf8591-analog-to-digital\/\">PCF8591 Analog To Digital guide<\/a>\u00a0to test this.<\/li>\n<li>Mosfet 2N7000 (2x)<\/li>\n<li>Resistor 10k\u03a9 (4x)<\/li>\n<\/ul>\n<hr \/>\n<p><strong>If you are not familiar with breadboards, how to place a cobbler on the breadboard or need to know how to read the color codings on the resistors then click here bellow<\/strong><\/p>\n<p><a class=\"mb-button mb-style-glass mb-size-small mb-corners-default mb-text-style-default \" style=\"background-color: #2b7dc4;\" href=\"https:\/\/einhugur.com\/blog\/index.php\/understanding-your-breadboard-and-placement-of-raspberry-cobbler\/\">\u00a0<i class=\"fa fa-code-fork\"><\/i>\u00a0 Using breadboard<\/a> <a class=\"mb-button mb-style-glass mb-size-small mb-corners-default mb-text-style-default \" style=\"background-color: #2b7dc4;\" href=\"https:\/\/einhugur.com\/blog\/index.php\/basic-electronics\/resistor-color-codings\/\">\u00a0<i class=\"fa fa-bars\"><\/i>\u00a0 Resistor color codings<\/a><\/p>\n<hr \/>\n<p><strong>The circuit:<\/strong><\/p>\n<figure id=\"attachment_681\" aria-describedby=\"caption-attachment-681\" style=\"width: 500px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?ssl=1\"><img data-attachment-id=\"681\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2cscheme\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?fit=500%2C290&amp;ssl=1\" data-orig-size=\"500,290\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2CScheme\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?fit=300%2C174&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?fit=474%2C275&amp;ssl=1\" loading=\"lazy\" class=\"size-full wp-image-681\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?resize=474%2C275&#038;ssl=1\" alt=\"Be careful about which wires are actually connected and which are not. The SCL wires are crossing others but you see by the dots which they actually connect to.\" width=\"474\" height=\"275\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?w=500&amp;ssl=1 500w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CScheme.png?resize=300%2C174&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-681\" class=\"wp-caption-text\">Be careful about which wires are actually connected and which are not. The SCL wires are crossing others but you see by the dots which they actually connect to.<\/figcaption><\/figure>\n<p>It is good idea to test this on breadboard.<\/p>\n<hr \/>\n<p><strong>About the Mosfets that we use:<\/strong><\/p>\n<p>The 2N7000 uses this symbol where the Gate, drain and source are as follows.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/2n7000Symbol.png?ssl=1\"><img data-attachment-id=\"688\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/2n7000symbol\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/2n7000Symbol.png?fit=80%2C80&amp;ssl=1\" data-orig-size=\"80,80\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2n7000Symbol\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/2n7000Symbol.png?fit=80%2C80&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/2n7000Symbol.png?fit=80%2C80&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-688\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/2n7000Symbol.png?resize=80%2C80&#038;ssl=1\" alt=\"2n7000Symbol\" width=\"80\" height=\"80\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Physically it looks like this:<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/2N7000pins.png?ssl=1\"><img data-attachment-id=\"689\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/2n7000pins\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/2N7000pins.png?fit=220%2C157&amp;ssl=1\" data-orig-size=\"220,157\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2N7000pins\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/2N7000pins.png?fit=220%2C157&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/2N7000pins.png?fit=220%2C157&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-689\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/2N7000pins.png?resize=220%2C157&#038;ssl=1\" alt=\"2N7000pins\" width=\"220\" height=\"157\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Where 1 is the Source (S), 2 is the Gate (G), and 3 is the Drain (D)<\/p>\n<hr \/>\n<p><strong>Testing it all:<\/strong><\/p>\n<p>To test this then you can either update our\u00a0<a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/\">BMP180 Barometer guide<\/a>\u00a0or our\u00a0<a href=\"https:\/\/einhugur.com\/blog\/index.php\/xojo-gpio\/pcf8591-analog-to-digital\/\">PCF8591 Analog To Digital guide<\/a>. \u00a0Removing the 15k\u03a9 resistors. And connecting the SDA and SCL through the new device. And of course connecting 5V to 5V and 3.3V to 3.3V.<\/p>\n<p>Then have Volt meter connected to SCL 3.3V and to ground as follows:<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?ssl=1\"><img data-attachment-id=\"683\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2cschememeasuring33\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?fit=550%2C412&amp;ssl=1\" data-orig-size=\"550,412\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2CSchemeMeasuring33\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?fit=300%2C225&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?fit=474%2C355&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-683\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?resize=474%2C355&#038;ssl=1\" alt=\"I2CSchemeMeasuring33\" width=\"474\" height=\"355\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?w=550&amp;ssl=1 550w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring33.png?resize=300%2C225&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>When running the examples you should be measuring close to 3.3V here. (I was using the Barometer example)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?ssl=1\"><img data-attachment-id=\"684\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/measuring33\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?fit=350%2C467&amp;ssl=1\" data-orig-size=\"350,467\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1464469975&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;320&quot;,&quot;shutter_speed&quot;:&quot;0.058823529411765&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Measuring33\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?fit=225%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?fit=350%2C467&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-684\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?resize=350%2C467&#038;ssl=1\" alt=\"Measuring33\" width=\"350\" height=\"467\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?w=350&amp;ssl=1 350w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring33.jpg?resize=225%2C300&amp;ssl=1 225w\" sizes=\"(max-width: 350px) 100vw, 350px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>In my test I did get perfect reading !<\/p>\n<p>If everything is all right then we proceed and move the Volt meter to the 5V side of the SCL:<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?ssl=1\"><img data-attachment-id=\"686\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2cschememeasuring5\/\" data-orig-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?fit=550%2C376&amp;ssl=1\" data-orig-size=\"550,376\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2CSchemeMeasuring5\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?fit=300%2C205&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?fit=474%2C324&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-686\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?resize=474%2C324&#038;ssl=1\" alt=\"I2CSchemeMeasuring5\" width=\"474\" height=\"324\" srcset=\"https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?w=550&amp;ssl=1 550w, https:\/\/i1.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CSchemeMeasuring5.png?resize=300%2C205&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?ssl=1\"><img data-attachment-id=\"687\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/measuring5\/\" data-orig-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?fit=350%2C382&amp;ssl=1\" data-orig-size=\"350,382\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1464470015&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Measuring5\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?fit=275%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?fit=350%2C382&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-687\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?resize=350%2C382&#038;ssl=1\" alt=\"Measuring5\" width=\"350\" height=\"382\" srcset=\"https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?w=350&amp;ssl=1 350w, https:\/\/i2.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Measuring5.jpg?resize=275%2C300&amp;ssl=1 275w\" sizes=\"(max-width: 350px) 100vw, 350px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>I got 5.19 V here, I felt it was a little high but measuring the Raspberry PI&#8217;s 5V gave me 5.2 V, so the 5.19V is perfect result.<\/p>\n<p>Then I proceeded testing the 3,3V SDA in same way and finally the 5V SDA. Once I had gotten perfect results for all 4 when using the Barometer then I had proven that we have the I2C bus working on 2 separate voltages like this:<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?ssl=1\"><img data-attachment-id=\"678\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2c3\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=493%2C147&amp;ssl=1\" data-orig-size=\"493,147\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2C3\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=300%2C89&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?fit=474%2C141&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-678\" src=\"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?resize=474%2C141&#038;ssl=1\" alt=\"I2C3\" width=\"474\" height=\"141\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?w=493&amp;ssl=1 493w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2C3.png?resize=300%2C89&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<hr \/>\n<p>In the end I made my own brake-out board to be able to have I2C converter ready for future experiments where I use I2C bus. The way I made it then I can push it right into a breadboard.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?ssl=1\"><img data-attachment-id=\"690\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/brakeoutboard\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?fit=350%2C499&amp;ssl=1\" data-orig-size=\"350,499\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 6&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1464529500&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.15&quot;,&quot;iso&quot;:&quot;80&quot;,&quot;shutter_speed&quot;:&quot;0.03030303030303&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Brakeoutboard\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?fit=210%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?fit=350%2C499&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-690\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?resize=350%2C499&#038;ssl=1\" alt=\"Brakeoutboard\" width=\"350\" height=\"499\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?w=350&amp;ssl=1 350w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/Brakeoutboard.jpg?resize=210%2C300&amp;ssl=1 210w\" sizes=\"(max-width: 350px) 100vw, 350px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>I was a bit cocky, using surface mounted \u00a0resistors that are so tiny that I could not see them at all. Soldering them was absolute nightmare. But in the end it somehow worked, and the brake-out board fits perfectly on breadboard and is small.<\/p>\n<p>Using this converter then you should now be able to use many I2C devices on your bus at once if they have separate addresses, and they can run either on the 5V side or 3.3V side depending on the device.<\/p>\n<hr \/>\n<p>If you buy a ready made logic converter then the following 2 layouts are probably the most common ones you will see:<\/p>\n<p><a href=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?ssl=1\"><img data-attachment-id=\"700\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/i2cbrakeoutboard\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?fit=464%2C561&amp;ssl=1\" data-orig-size=\"464,561\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"I2CBrakeoutBoard\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?fit=248%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?fit=464%2C561&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-700\" src=\"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?resize=464%2C561&#038;ssl=1\" alt=\"I2CBrakeoutBoard\" width=\"464\" height=\"561\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?w=464&amp;ssl=1 464w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/I2CBrakeoutBoard.png?resize=248%2C300&amp;ssl=1 248w\" sizes=\"(max-width: 464px) 100vw, 464px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>With this format then you wire it like this:<\/p>\n<p><em>5V -&gt; HV<\/em><br \/>\n<em>GND -&gt; GND<\/em><br \/>\n<em>3.3V -&gt; LV<\/em><br \/>\n<em>GND -&gt; GND<\/em><br \/>\n<em>SDL3.3V -&gt;\u00a0LV1<\/em><br \/>\n<em>SDL5V -&gt;\u00a0HV1<\/em><br \/>\n<em>SDA3.5V -&gt;\u00a0LV2<\/em><br \/>\n<em>SDA5V -&gt;\u00a0HV2<\/em><\/p>\n<p>Then you use the two first channels, first for SDL conversion and 2nd channel for SDA conversion. Leaving channel 3 and channel 4 unused.<\/p>\n<p>The other format you will commonly see, which is more for use to convert serial or SPI communications, but can be used for I2C also is:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?ssl=1\"><img data-attachment-id=\"701\" data-permalink=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/llcbrakeoutboard\/\" data-orig-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?fit=487%2C543&amp;ssl=1\" data-orig-size=\"487,543\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"LLCBrakeoutBoard\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?fit=269%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?fit=474%2C529&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-full wp-image-701\" src=\"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?resize=474%2C529&#038;ssl=1\" alt=\"LLCBrakeoutBoard\" width=\"474\" height=\"529\" srcset=\"https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?w=487&amp;ssl=1 487w, https:\/\/i0.wp.com\/einhugur.net\/blog\/wp-content\/uploads\/2016\/05\/LLCBrakeoutBoard.png?resize=269%2C300&amp;ssl=1 269w\" sizes=\"(max-width: 474px) 100vw, 474px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Here only the TX lanes are bi directional while the RX lanes go only from high to low. So this board only has 2 channels.<\/p>\n<p>So for use with I2C conversion then you would wire it like:<\/p>\n<p><em>5V -&gt; HV<\/em><br \/>\n<em>GND -&gt; GND<\/em><br \/>\n<em>3.3V -&gt; LV<\/em><br \/>\n<em>GND -&gt; GND<\/em><br \/>\n<em>SDL3.3V -&gt; TXI (Channel 1)<\/em><br \/>\n<em>SDL5V -&gt; TXO\u00a0(Channel 1)<\/em><br \/>\n<em>SDA3.5V -&gt;\u00a0TXI (Channel 2)<\/em><br \/>\n<em>SDA5V -&gt;\u00a0TXO (Channel 2)<\/em><\/p>\n<hr \/>\n<p>This is it for now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this example we are going to create a I2C logic level converter. Disclaimer: We do not take any responsibility for possible errors in the guide or errors that you might do wiring it up. Incorrect wiring can result in damaged sensor or damaged Raspberry PI. The problem: Some I2C devices their logic on 3.3 &hellip; <a href=\"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/i2c-logic-level-converter-building-our-own\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">I2C logic level converter &#8211; Building our own<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":94,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"spay_email":""},"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd75nk-aS","jetpack-related-posts":[{"id":617,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/bmp180-barometer-sensor\/","url_meta":{"origin":674,"position":0},"title":"BMP180 Barometer sensor","date":"May 22, 2016","format":false,"excerpt":"In this example we are going to connect to BMP180 barometer sensor, we will be using brake-out board called GY-68. This sensor is really small even the full brake-outboard is only size of a fingernail. The board does not come with the header pins soldered on, but with mine the\u2026","rel":"","context":"Similar post","img":{"alt_text":"BMP180Soldered","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/BMP180Soldered.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":94,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/","url_meta":{"origin":674,"position":1},"title":"Xojo GPIO","date":"September 19, 2015","format":false,"excerpt":"Guides for GPIO in Xojo \u00a0Infrared motion detection (Updated 1. May 2016) Shows\u00a02 ways of coding: Using Interrupts or simple polling. Sensors: \u00a0HC-SR501,\u00a0ST-00082 Mini,\u00a0Mini IR Pyroelectric Infrared PIR Motion Human Sensor Detector Module Uses:\u00a0Basic GPIO Relay board In this example we \u00a0wire up a relay board and let your Xojo\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":530,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/pcf8591-analog-to-digital\/","url_meta":{"origin":674,"position":2},"title":"PCF8591 Analog To Digital","date":"May 5, 2016","format":false,"excerpt":"In this example we are going to connect to PCF8591 AD\/DA Converter. Raspberry PI has no Analog inputs\u00a0or outputs, so to talk to analog devices we need to convert the signal. Updated 6. May 2016 - Added R6 and R7 to get the voltage to safe levels on the I2C\u2026","rel":"","context":"Similar post","img":{"alt_text":"PCF8591","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/05\/PCF8591.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":551,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/pcf8591-analog-to-digital-braking-out-of-the-box\/","url_meta":{"origin":674,"position":3},"title":"PCF8591 Analog To Digital - Braking out of the box","date":"July 16, 2016","format":false,"excerpt":"\u00a0 Yes you heard me right we are braking out of the box! We will be doing some soldering and making our own PCF8591 breakout board. In this example we are going to connect to PCF8591 AD\/DA Converter without using a pre-made breakout board. When connecting to PCF8591 AD\/DA Converter\u2026","rel":"","context":"Similar post","img":{"alt_text":"PCF8591Part2SC","src":"https:\/\/i0.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2016\/07\/PCF8591Part2SC.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":108,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/f85-vibration-sensor\/","url_meta":{"origin":674,"position":4},"title":"F85 Vibration sensor","date":"September 19, 2015","format":false,"excerpt":"In this example we are going to connect to\u00a0vibration sensor. This example is super easy after doing the infrared motion detection with the HC-SR501 in a previous example, since basically same code will work. I found this sensor to be excellent, it gives readings when I expect it to and\u2026","rel":"","context":"Similar post","img":{"alt_text":"","src":"https:\/\/i1.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/09\/Sensor-connection-e1442664059628-225x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":345,"url":"https:\/\/einhugur.net\/blog\/index.php\/xojo-gpio\/using-logic-gates\/","url_meta":{"origin":674,"position":5},"title":"Using logic gates","date":"November 8, 2015","format":false,"excerpt":"In this guide we are going to learn how to use logic gates. \u00a0Even if you can usually do things by just taking more GPIO pins and do the logic in a code then there will be times you may want to do things in hardware. For example you might\u2026","rel":"","context":"Similar post","img":{"alt_text":"LogicCircuits","src":"https:\/\/i2.wp.com\/einhugur.com\/blog\/wp-content\/uploads\/2015\/11\/LogicCircuits.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/674"}],"collection":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=674"}],"version-history":[{"count":9,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/674\/revisions"}],"predecessor-version":[{"id":976,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/674\/revisions\/976"}],"up":[{"embeddable":true,"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/pages\/94"}],"wp:attachment":[{"href":"https:\/\/einhugur.net\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}