{"id":372,"date":"2024-09-03T10:59:29","date_gmt":"2024-09-03T10:59:29","guid":{"rendered":"https:\/\/tipcontrol.com\/?page_id=372"},"modified":"2025-07-21T12:31:52","modified_gmt":"2025-07-21T12:31:52","slug":"hello-i2c","status":"publish","type":"page","link":"https:\/\/tipcontrol.com\/?page_id=372","title":{"rendered":"Hello I2C"},"content":{"rendered":"\n<p><strong>Parts used:<\/strong><br>M5 Atom<br>M5 Env II\/III\/IV unit with SHT30 and xxx<br>USB Cable<br>PH2.0-4P interface cable<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Once you have installed wifi and mqtt you can continue installing an I2C sensor. Of course you can still use the usb to continue.<\/li>\n\n\n\n<li>Connect the M5 Env III to the M5 Atom via the HY2.0 cable.<\/li>\n\n\n\n<li>Configure the I2C Port. Goto &#8220;Config&#8221; pane and enter SDA(26) and SCL(32) pins. &#8220;startEnabled&#8221; must be checked.<\/li>\n\n\n\n<li>Click &#8220;Save&#8221; button.<\/li>\n\n\n\n<li>Also make sure that the driver is enabled for that session. Click &#8220;en&#8221; next to the driver in the second column.<\/li>\n\n\n\n<li>Goto the &#8220;Control&#8221; pane select the I2C port and click the button scan. You should see some i2C addresses.<\/li>\n<\/ol>\n\n\n\n<p>Gratulation your I2C port is set up! Now lets just add a I2C device<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"eager\" decoding=\"async\" width=\"300\" height=\"398\" src=\"https:\/\/tipcontrol.com\/wp-content\/uploads\/2024\/08\/Pasted-Graphic-3.png\" alt=\"\" class=\"wp-image-374\" srcset=\"https:\/\/tipcontrol.com\/wp-content\/uploads\/2024\/08\/Pasted-Graphic-3.png 300w, https:\/\/tipcontrol.com\/wp-content\/uploads\/2024\/08\/Pasted-Graphic-3-226x300.png 226w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1136\" height=\"908\" src=\"https:\/\/tipcontrol.com\/wp-content\/uploads\/2025\/07\/HelloI2C.png\" alt=\"\" class=\"wp-image-628\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Drag and Drop the SHT30 and\/or xxx driver icons from the Library list onto the Driver Installed panel.<\/li>\n\n\n\n<li>Click on SHT30 and select the \u201cConfig\u201d button from the ButtonBar.<\/li>\n\n\n\n<li>Enter the I2c address in the config pane. In this case it is 68 for the SHT30. i2C2<\/li>\n\n\n\n<li>Now select \u201cstartEnabled\u201d and save the configuration<\/li>\n\n\n\n<li>Goto the \u201cControl\u201d pane<\/li>\n\n\n\n<li>Select the sensor and select the \u201cEn\u201d (Enable) checkbox next to it to activate the sensor<\/li>\n\n\n\n<li>Repeat the steps 3 to 6 with the other sensor<\/li>\n\n\n\n<li>Select the sensor and click the &#8220;Control&#8221; button. You should get a read out.<\/li>\n\n\n\n<li>Now create an event so that the sensor is repeatedly reporting the value to the Designer application. To do so follow the next steps<\/li>\n<\/ol>\n\n\n\n<p><strong>Adding an Event<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the sensor you want to get the event from<\/li>\n\n\n\n<li>Select in the toolbar the &#8220;Events&#8221; button<\/li>\n\n\n\n<li>In the event pane click the &#8220;add&#8221;New&#8221; button<\/li>\n\n\n\n<li>Select the timer in the popup &#8220;Condition&#8221;. In the value enter 5000 (5seconds)<\/li>\n\n\n\n<li>In the code box between the 2 brackets enter a line &#8220;me.reportTo(&#8220;username&#8221;,&#8221;username&#8221;,&#8221;designer&#8221;);<br>If you want to have the event on startup running then check &#8220;onStartEnable&#8221;<\/li>\n\n\n\n<li>Click Save<\/li>\n\n\n\n<li>This will send every 5 seconds a message to your designer with all the values.<\/li>\n\n\n\n<li>If you want to start the events for this session select the &#8220;en&#8221; (enabled) next to the event.<\/li>\n\n\n\n<li>In the &#8220;Control pane&#8221; you will see a new reading every 5 seconds.<\/li>\n<\/ol>\n\n\n\n<p>Now you are ready for the &#8220;<a href=\"https:\/\/tipcontrol.com\/?page_id=538\" data-type=\"page\" data-id=\"538\">Naked Chef Projects<\/a>&#8220;<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><a href=\"https:\/\/tipcontrol.com\/?page_id=588\" data-type=\"page\" data-id=\"588\">&lt;&lt;&lt; Hello MQTT<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-right\"><a href=\"https:\/\/tipcontrol.com\/?page_id=241\" data-type=\"page\" data-id=\"241\">Hello Tutorials &gt;&gt;&gt;<\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Parts used:M5 AtomM5 Env II\/III\/IV unit with SHT30 and xxxUSB CablePH2.0-4P interface cable Gratulation your I2C port is set up! Now lets just add a I2C device Adding an Event Now you are ready for the &#8220;Naked Chef Projects&#8220; &lt;&lt;&lt; Hello MQTT Hello Tutorials &gt;&gt;&gt;<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-372","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/tipcontrol.com\/index.php?rest_route=\/wp\/v2\/pages\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tipcontrol.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tipcontrol.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tipcontrol.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tipcontrol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":5,"href":"https:\/\/tipcontrol.com\/index.php?rest_route=\/wp\/v2\/pages\/372\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/tipcontrol.com\/index.php?rest_route=\/wp\/v2\/pages\/372\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/tipcontrol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}