{"id":651,"date":"2020-09-08T19:12:33","date_gmt":"2020-09-08T12:12:33","guid":{"rendered":"https:\/\/www.makeriot2020.com\/?p=651"},"modified":"2020-09-08T19:14:00","modified_gmt":"2020-09-08T12:14:00","slug":"i2c-between-maker-nano-and-kid-bright32-esp32","status":"publish","type":"post","link":"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/08\/i2c-between-maker-nano-and-kid-bright32-esp32\/","title":{"rendered":"I2C between Maker Nano and Kid-Bright32 (Esp32)"},"content":{"rendered":"\n<p>In our last post, we started looking at the workings of the I2C protocol. In case you missed that, you can read about that <a href=\"http:\/\/144.126.248.244\/index.php\/2020\/09\/07\/what-exactly-is-i2c\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.  Today, I will continue with I2C by showing you how to implement the protocol between an Maker Nano (a Arduino Nano Clone) and Kid-Bright32 (a ESP32 based development and Education device). <\/p>\n\n\n\n<p>This project will eventually be turned into an IoT device, with Google Assistant voice control. The Kid-Bright have very limited IO pins, and the Maker Nano has no Network Connectivity unless we use an Ethernet Shield. Enough of that for now, let us start with today&#8217;s tutorial, we will get back to this project later&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Code for the Master<\/h2>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>\/* I2C Master Code - Kid Bright 32 v 1.3\n   Can be adapted to Arduino or NodeMCU or STM32\n   As it uses no special libraries, only the standard Wire.h\n   that is already included with the Arduino IDE\n*\/\n\n#include &lt;Wire.h>\n\n#define button1 16 \/\/ Button 1\n#define button2 14 \/\/ Button 2\n#define led_blue 17 \/\/ Led 1\n#define led_red 2 \/\/ Led 2\n#define led_yellow 15 \/\/ Led 3\n\n\nvoid setup() {\n  Wire.begin(); \/\/ Start I2C, join bus as a Master\n  pinMode(button1,INPUT_PULLUP); \/\/ Set as input\n  pinMode(button2,INPUT_PULLUP); \n  pinMode(led_blue,OUTPUT); \/\/ Set as output\n  pinMode(led_red,OUTPUT);\n  pinMode(led_yellow,OUTPUT);\n  digitalWrite(led_blue,HIGH); \/\/ LED is Active Low\n  digitalWrite(led_red,HIGH); \/\/ LED is Active Low\n  digitalWrite(led_yellow,HIGH); \/\/ LED is Active Low\n  Serial.begin(115200); \/\/ Start Serial for debugging\n}\n\nbyte Data = 0; \/\/ Variable for sending data to the slave\nint SlaveData = 0; \/\/ Variable for receiving data from the slave\n\nvoid loop() {\n  Wire.beginTransmission(4); \/\/ Send data to Slave at address #4\n  Wire.write(Data); \/\/ Transmit one byte ( 8 bits)\n  Wire.endTransmission(); \/\/ End Transmission\n  Wire.requestFrom(4,1); \/\/ Request one (1) byte of data from the      \/\/slave at address$\n  while (Wire.available()) { \/\/ If data received\n    SlaveData = Wire.read(); \/\/ Save it into a variable\n  }\n\n\/\/ We will implement a simple latch in software, where a single \n\/\/ button latches or releases a bit with every press and release.  \n\/\/ This code should ideally include debouncing as well. It was left\n\/\/ out for clarity.\n\n  if (digitalRead(button1) == LOW) { \/\/ If button 1 pressed\n    if (bitRead(Data,0) == HIGH) { \/\/ test if bit 0 in variable is set\n      bitClear(Data,0); \/\/ clear it if it is set\n    } else {\n      bitSet(Data,0) == HIGH; \/\/ set bit to high\n    }\n  } \n\/\/ Do the same for the second button\n\n  if (digitalRead(button2) == LOW) {\n    if (bitRead(Data,1) == HIGH) {\n      bitClear(Data,1);\n    } else {\n      bitSet(Data,1) == HIGH;\n    }\n  } \n \n\/\/ We will test for a set bit in the transmitted byte, and invert it, \n\/\/ as the LED's are active LOW\n\n  digitalWrite(led_blue,!bitRead(Data,0)); \/\/ Toggle Led 1\n  digitalWrite(led_red,!bitRead(Data,1)); \/\/ Toggle Led 2\n\n\/\/ Same with the data received from the slave\n\n  digitalWrite(led_yellow,!bitRead(SlaveData,0)); \/\/ Toggle Led 3\n  \n\/\/ Print Debug info on serial port\n  \n  Serial.print(\"Send to Slave 0xb\");\n  Serial.println(Data,BIN);\n  Serial.print(\"Received from Slave 0xb\");\n  Serial.println(SlaveData,BIN);\n  \n \/\/ Small delay, should change to millis in production code\n\n  delay(200);\n       \n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183043-1024x768.jpg\" alt=\"\" class=\"wp-image-655 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><figcaption>The Master Device. Connections are +5v (red) SCL (brown) SDA (orange) Ground (blue)<\/figcaption><\/figure>\n\n\n\n<p>Code for the Slave<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>\/*\n     I2C Slave\n     Arduino Nano or Compatible, can be used with ESP32 or STM32\n     as well as no special libraries used, only standard Wire.h\n*\/\n\n#include &lt;Wire.h>\n\n#define button 2 \/\/ A user button\n#define led1 3 \/\/ Led 1\n#define led2 4 \/\/ Led 2\n\nbyte Data = 0; \/\/ Variable for sending data to the Master\n\nvoid setup() \n{\n  pinMode(button,INPUT_PULLUP); \/\/ Set as Input\n  pinMode(led1,OUTPUT);\n  pinMode(led2,OUTPUT);\n  digitalWrite(led1,LOW); \/\/ Led is Active High, so switch it off\n  digitalWrite(led2,LOW);\n  Wire.begin(4); \/\/ Join I2C Bus as device #4\n  Wire.onReceive(receiveEvent); \/\/ Register receive Event\n  Wire.onRequest(requestEvent); \/\/ Register request event\n  Serial.begin(115200); \/\/ start serial debugging\n  \n}\n\nvoid loop() {\n\/\/ implement a software bit latch, on bit 0 of the Data variable\n\/\/ the latch is toggled by pressing and releasing the button\n\/\/ should ideally be debounced as well\n\n if (digitalRead(button) == LOW) {\n  if (bitRead(Data,0) == HIGH) {\n    bitClear(Data,0);\n  } else {\n    bitSet(Data,0) == HIGH;\n  }\n }\n delay(200); \/\/ small delay\n}\n\n\/\/ This event will be triggered when the master requests data\n\nvoid requestEvent() \n{\n  Wire.write(Data); \/\/ Send data to the master\n  Serial.print(\"Sending to Master 0xb\");\n  Serial.println(Data,BIN);\n}\n\/\/ This event gets triggered when the master sends data\n\nvoid receiveEvent(int Quantity)\n{\n  int x = Wire.read(); \/\/ read the data ( one byte in this case)\n  digitalWrite(led1,bitRead(x,0)); \/\/ Toggle LED 1 on Bit 0 state\n  digitalWrite(led2,bitRead(x,1)); \/\/ Toggle LED 2 on Bit 1 state\n  Serial.print(\"Received from Master 0xb\"); \/\/ Debugginh\n  Serial.println(x,BIN);\n\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183101-1024x768.jpg\" alt=\"\" class=\"wp-image-656 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><figcaption>Maker Nano on an IO Shield, Connections are +5v (red) SCL (brown) SDA (orange) Ground (blue)<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How does this work.<\/h2>\n\n\n\n<p>After uploading the code to the two boards, and connecting the boards to the I2C bus, we may power everything up. Please note that the boards MUST have a common ground. I have also powered both from the same supply. also make sure the SDA goes to SDA, and SCL to SCL&#8230; On a short distance like this, pull-up resistors are not required ( your milage may vary )<\/p>\n\n\n\n<p>When we first power it up, is will seem as if nothing happened, but if you press and release one of the switches, the LED&#8217;s will light up, and stay lit until you press the switch again.<\/p>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_182958-1-1024x768.jpg\" alt=\"\" data-id=\"657\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_182958-1-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=657\" class=\"wp-image-657 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_182958-1-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_182958-1-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_182958-1-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_182958-1-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_182958-1-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_182958-1-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183043-1-1024x768.jpg\" alt=\"\" data-id=\"658\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183043-1-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=658\" class=\"wp-image-658 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183043-1-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183054-1024x768.jpg\" alt=\"\" data-id=\"659\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183054-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=659\" class=\"wp-image-659 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183054-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183054-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183054-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183054-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183054-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183054-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183101-1-1024x768.jpg\" alt=\"\" data-id=\"660\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183101-1-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=660\" class=\"wp-image-660 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183101-1-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183108-1024x768.jpg\" alt=\"\" data-id=\"661\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183108-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=661\" class=\"wp-image-661 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183108-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183108-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183108-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183108-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183108-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183108-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183114-1024x768.jpg\" alt=\"\" data-id=\"662\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183114-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=662\" class=\"wp-image-662 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183114-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183114-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183114-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183114-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183114-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183114-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183128-1024x768.jpg\" alt=\"\" data-id=\"663\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183128-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=663\" class=\"wp-image-663 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183128-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183128-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183128-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183128-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183128-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183128-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183140-1024x768.jpg\" alt=\"\" data-id=\"664\" data-full-url=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/09\/20200908_183140-scaled.jpg\" data-link=\"http:\/\/144.126.248.244\/?attachment_id=664\" class=\"wp-image-664 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183140-1024x768.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183140-scaled-600x450.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183140-300x225.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183140-768x576.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183140-1536x1152.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/09\/20200908_183140-2048x1536.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/768;\" \/><\/figure><\/li><\/ul><figcaption class=\"blocks-gallery-caption\">Some Pictures showing the project in action<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What next ?<\/h2>\n\n\n\n<p>In further parts of this, we will expand on this device, turning it into an IoT device, by combining many different skills that I have presented in previous tutorials.<\/p>\n\n\n\n<p><\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In our last post, we started looking at the workings of the I2C protocol. In case you missed that, you can read about that here. Today, I will continue with I2C by showing you how to implement the protocol between an Maker Nano (a Arduino Nano Clone) and Kid-Bright32 (a ESP32 based development and Education &hellip; <a href=\"https:\/\/www.makeriot2020.com\/index.php\/2020\/09\/08\/i2c-between-maker-nano-and-kid-bright32-esp32\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;I2C between Maker Nano and Kid-Bright32 (Esp32)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":654,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,44,40,51,53],"tags":[],"class_list":["post-651","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-electronics","category-esp32","category-i2c-devices","category-iot-devices"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts\/651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/comments?post=651"}],"version-history":[{"count":0,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts\/651\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/media\/654"}],"wp:attachment":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/media?parent=651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/categories?post=651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/tags?post=651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}