{"id":302,"date":"2020-08-30T01:10:22","date_gmt":"2020-08-29T18:10:22","guid":{"rendered":"https:\/\/www.makeriot2020.com\/?p=302"},"modified":"2020-08-30T01:10:23","modified_gmt":"2020-08-29T18:10:23","slug":"esp32-kid-bright-v-1-3-voice-activated-iot-relay-control-using-ifttt-and-adafruit-io","status":"publish","type":"post","link":"https:\/\/www.makeriot2020.com\/index.php\/2020\/08\/30\/esp32-kid-bright-v-1-3-voice-activated-iot-relay-control-using-ifttt-and-adafruit-io\/","title":{"rendered":"ESP32 (Kid Bright v 1.3) Voice-Activated IoT Relay Control using IFTTT and Adafruit IO"},"content":{"rendered":"\n<p>Today I will show you how to do a very quick IoT relay controller using IFTTT and Adafruit IO. I will be using the Kid Bright v 1.3 Development board, from <a rel=\"noreferrer noopener\" href=\"https:\/\/www.gravitechthai.com\/product-detail.php?WP=pQygAKpkGQAgG2rDqYyc4Uuw\" target=\"_blank\">Gravitec in Thailand<\/a>. These boards sell for about $USD 25 to 35 each, quite expensive as far as I am concerned, for the amount of functionality that you get. <br><br>I will also post a link to the Video Tutorial at the bottom of this tutorial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-1024x861.jpg\" alt=\"\" class=\"wp-image-303 lazyload\" width=\"674\" height=\"566\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-1024x861.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-600x504.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-300x252.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-768x646.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-1536x1291.jpg 1536w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/KidBright-advanced-user-diagram-2048x1721.jpg 2048w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 674px; --smush-placeholder-aspect-ratio: 674\/566;\" \/><figcaption>Kid Bright v 1,3 Development Board, Advanced user Diagram<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/kidbright-schematic-1024x640.jpg\" alt=\"\" class=\"wp-image-304 lazyload\" width=\"674\" height=\"421\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/kidbright-schematic-1024x640.jpg 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/kidbright-schematic-600x375.jpg 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/kidbright-schematic-300x188.jpg 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/kidbright-schematic-768x480.jpg 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/kidbright-schematic.jpg 1080w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 674px; --smush-placeholder-aspect-ratio: 674\/421;\" \/><figcaption>Kid Bright 32 Schematic<\/figcaption><\/figure>\n\n\n\n<p>You can find out more about this board on the <a rel=\"noreferrer noopener\" href=\"https:\/\/www.kid-bright.org\" target=\"_blank\">Kid Bright Website<\/a>. Please note that you will need Google Translate, as the site is in the Thai Language. <\/p>\n\n\n\n<p>We will use IFTTT to connect Google Assistant to Adafruit IO in order to control our IoT Relay controller with voice commands.<\/p>\n\n\n\n<p>Let us start our project. <br><br>Start the Arduino IDE, and make sure that you have enabled support for NodeMCU or other ESP32 based processors. <br>You also need to load the libraries for Adafruit IO.<br><br>After you have done that, open the &#8220;adafruitio_07_digital_out&#8221; sketch from the Examples folder for Adafruit IO. We will modify this example to suit our needs, as well as save some time on coding.<br><br>Change the Example to the following:<br>Remember to change the pins to reflect your particular setup.<br><br>include &#8220;config.h&#8221;<\/p>\n\n\n\n<p>define LED_PIN 17<br>define Relay 27<\/p>\n\n\n\n<p>\/\/ set up the &#8216;readinglight&#8217; feed<br>AdafruitIO_Feed *readinglight = io.feed(&#8220;readinglight&#8221;);<\/p>\n\n\n\n<p>void setup() {<\/p>\n\n\n\n<p>pinMode(LED_PIN, OUTPUT);<br>pinMode(Relay, OUTPUT);<\/p>\n\n\n\n<p>\/\/ start the serial connection<br>Serial.begin(115200);<\/p>\n\n\n\n<p>\/\/ wait for serial monitor to open<br>while(! Serial);<\/p>\n\n\n\n<p>\/\/ connect to io.adafruit.com<br>Serial.print(&#8220;Connecting to Adafruit IO&#8221;);<br>io.connect();<\/p>\n\n\n\n<p>\/\/ set up a message handler for the &#8216;readinglight&#8217; feed.<br>\/\/ the handleMessage function (defined below)<br>\/\/ will be called whenever a message is<br>\/\/ received from adafruit io.<br>readinglight-&gt;onMessage(handleMessage); \/\/ Handler for our FEED<\/p>\n\n\n\n<p>\/\/ wait for a connection<br>while(io.status() &lt; AIO_CONNECTED) {<br>Serial.print(&#8220;.&#8221;);<br>delay(500);<br>}<\/p>\n\n\n\n<p>\/\/ we are connected<br>Serial.println();<br>Serial.println(io.statusText());<br>readinglight-&gt;get(); <\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>void loop() {<\/p>\n\n\n\n<p>\/\/ io.run(); is required for all sketches.<br>\/\/ it should always be present at the top of your loop<br>\/\/ function. it keeps the client connected to<br>\/\/ io.adafruit.com, and processes any incoming data.<br>io.run();<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>\/\/ this function is called whenever an &#8216;readinglight&#8217; feed message<br>\/\/ is received from Adafruit IO. it was attached to<br>\/\/ the &#8216;digital&#8217; feed in the setup() function above.<br>void handleMessage(AdafruitIO_Data *data) {<\/p>\n\n\n\n<p>Serial.print(&#8220;received &lt;- &#8220;);<\/p>\n\n\n\n<p>if(data-&gt;toPinLevel() == HIGH)<br>Serial.println(&#8220;HIGH&#8221;);<br>else<br>Serial.println(&#8220;LOW&#8221;);<\/p>\n\n\n\n<p>digitalWrite(LED_PIN, !data-&gt;toPinLevel()); \/\/ We inverse the logic on the LED, we want it on    \/\/when the relay is on, and off when the relay is off<br>digitalWrite(Relay, data-&gt;toPinLevel()); \/\/ My Relay Module is Active LOW, so this is correct.<br>\/\/reverse the logic if your module is Active High<br>}<br><br>Another very important step is that you need to set your Adafruit IO IO-Key in the config.h file. Your Wifi SSID and Password also needs to be supplied here, to enable your ESP32 based processor to connect to Adafruit through your WiFi connection.<br><br>Config.h<\/p>\n\n\n\n<p>\/<strong> Adafruit IO Config <\/strong>*\/<br>define IO_USERNAME &#8220;your AdafruitIO username&#8221;<br>define IO_KEY &#8220;your AdafruitIO IO Key&#8221;<br>define WIFI_SSID &#8220;your wifi ssid&#8221;<br>define WIFI_PASS &#8220;your wifi password&#8221;<\/p>\n\n\n\n<p>Leave everything else as is in the config.h file<br><\/p>\n\n\n\n<p>Now login to Adafruit IO, or create a new account if you have not done so already.<br>Create a new feed, in my case called readinglight, under your feeds.<\/p>\n\n\n\n<p>Click on the Adafruit IO Key button ( top right corner ) and copy your IO Key and Username into the config.h file in the Arduino IDE. Don&#8217;t upload your code yet.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"374\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-02-1024x374.png\" alt=\"\" class=\"wp-image-306 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-02-1024x374.png 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-02-600x219.png 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-02-300x110.png 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-02-768x281.png 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-02.png 1357w\" 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\/374;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"995\" height=\"522\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53.png\" alt=\"\" class=\"wp-image-307 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53.png 995w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53-600x315.png 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53-300x157.png 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53-768x403.png 768w\" 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: 995px; --smush-placeholder-aspect-ratio: 995\/522;\" \/><\/figure>\n\n\n\n<p>Now go to IFTTT, and login or create a new account if you don&#8217;t have one already.<br>After you have logged in, in a new window, go to https:\/\/www.ifttt.com\/adafruit <\/p>\n\n\n\n<p>Make sure to connect Adafruit and IFTTT, and allow IFTTT to send messages to Adafruit IO.<br><br>Then, follow the pictures, and create your first applet.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"349\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-29-48-1024x349.png\" alt=\"\" class=\"wp-image-308 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-29-48-1024x349.png 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-29-48-600x204.png 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-29-48-300x102.png 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-29-48-768x262.png 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-29-48.png 1327w\" 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\/349;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"774\" height=\"504\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-16.png\" alt=\"\" class=\"wp-image-309 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-16.png 774w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-16-600x391.png 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-16-300x195.png 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-16-768x500.png 768w\" data-sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 774px; --smush-placeholder-aspect-ratio: 774\/504;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"369\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-43-1024x369.png\" alt=\"\" class=\"wp-image-310 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-43-1024x369.png 1024w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-43-600x216.png 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-43-300x108.png 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-43-768x277.png 768w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-30-43.png 1294w\" 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\/369;\" \/><figcaption><em>Select &#8220;Say a Simple phrase&#8221;<\/em><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"274\" height=\"403\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-06.png\" alt=\"\" class=\"wp-image-311 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-06.png 274w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-06-204x300.png 204w\" data-sizes=\"(max-width: 274px) 85vw, 274px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 274px; --smush-placeholder-aspect-ratio: 274\/403;\" \/><figcaption>Configure it with what you want to say to activate the relay, Then Click &#8220;Create Trigger&#8221;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"450\" height=\"133\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-25.png\" alt=\"\" class=\"wp-image-312 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-25.png 450w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-25-300x89.png 300w\" data-sizes=\"(max-width: 450px) 85vw, 450px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 450px; --smush-placeholder-aspect-ratio: 450\/133;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"520\" height=\"187\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-44.png\" alt=\"\" class=\"wp-image-313 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-44.png 520w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-32-44-300x108.png 300w\" data-sizes=\"(max-width: 520px) 85vw, 520px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 520px; --smush-placeholder-aspect-ratio: 520\/187;\" \/><figcaption>Click on :Adafruit&#8221;<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"361\" height=\"175\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-00.png\" alt=\"\" class=\"wp-image-314 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-00.png 361w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-00-300x145.png 300w\" data-sizes=\"(max-width: 361px) 85vw, 361px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 361px; --smush-placeholder-aspect-ratio: 361\/175;\" \/><figcaption>Click Send Data to Adafruit IO<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"251\" height=\"277\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-25.png\" alt=\"\" class=\"wp-image-315 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 251px; --smush-placeholder-aspect-ratio: 251\/277;\" \/><figcaption>Select you feed from the drop-down box. IMPORTANT, USE A 1 to switch something ON, or a 0 to switch it OFF. HIGH AND LOW, or ON and OFF DOES NOT WORK ! Then Click on Create Action<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"287\" height=\"302\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-59.png\" alt=\"\" class=\"wp-image-316 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-59.png 287w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-33-59-285x300.png 285w\" data-sizes=\"(max-width: 287px) 85vw, 287px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 287px; --smush-placeholder-aspect-ratio: 287\/302;\" \/><figcaption>Review your applet, Switch OFF notifications, and Click on Finish.<\/figcaption><\/figure>\n\n\n\n<p>Now create another Applet, Doing exactly the same, but change your wording to &#8220;Light OFF&#8221; and the Adafruit IO Data to 0. This applet will be used to switch off the Relay.<br><br>Go back to the Feed window in Adafruit IO, and then test Google Assistant by saying your command, like &#8220;Hey Google, Light On&#8221; and &#8220;Hey Google, Light Off&#8221;<br><br>You should see data arriving in your feed window after each command. A 1 for On and a 0 for Off.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"995\" height=\"522\" data-src=\"http:\/\/144.126.248.244\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53.png\" alt=\"\" class=\"wp-image-307 lazyload\" data-srcset=\"https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53.png 995w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53-600x315.png 600w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53-300x157.png 300w, https:\/\/www.makeriot2020.com\/wp-content\/uploads\/2020\/08\/Screenshot-at-2020-08-29-23-23-53-768x403.png 768w\" 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: 995px; --smush-placeholder-aspect-ratio: 995\/522;\" \/><\/figure>\n\n\n\n<p>Now go back to your Arduino IDE, Open the Serial Monitor, and Compile and Upload your Code. Test it again, but now you should see data arriving in the Serial Monitor as well.<br><br>If all of this is working, You can connect your Relay to the board, and test it again.<br>When you are happy that all is working as it should, Connect a load to the relay, and enjoy your new Voice-Activated IoT Relay Controller.<br><br>It is also easy to add another feed to the existing code. Ask me how if you don&#8217;t understand, but it should be quite easy to figure out from the code as well \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/youtu.be\/Q-uwU55VAF4\n<\/div><figcaption>Voice Controlled IoT Relay controller using Google Assistant, IFTTT and Adafruit IO<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I will show you how to do a very quick IoT relay controller using IFTTT and Adafruit IO. I will be using the Kid Bright v 1.3 Development board, from Gravitec in Thailand. These boards sell for about $USD 25 to 35 each, quite expensive as far as I am concerned, for the amount &hellip; <a href=\"https:\/\/www.makeriot2020.com\/index.php\/2020\/08\/30\/esp32-kid-bright-v-1-3-voice-activated-iot-relay-control-using-ifttt-and-adafruit-io\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ESP32 (Kid Bright v 1.3) Voice-Activated IoT Relay Control using IFTTT and Adafruit IO&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,53],"tags":[54,57,58,56,55],"class_list":["post-302","post","type-post","status-publish","format-standard","hentry","category-esp32","category-iot-devices","tag-adafruitio","tag-google-assistant","tag-home-automation","tag-ifttt","tag-iot"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts\/302","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=302"}],"version-history":[{"count":0,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.makeriot2020.com\/index.php\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}