Working Principle of the Voice Control Version 2

In this page, we will go into detail about how the voice control works. Figure 7 shows a brief overview of the working principle of the voice control. Disclaimer: This page is not meant as a tutorial, and the order of the explanation does not follow the order of creation.

Figure 7: The second version of the working principle.
Part 1: Using a smartphone’s built-in speech recognition

For Android users, IFTTT can directly connect to Google Assistant.

Part 2: Creating a feed in Adafruit.io
Figure 8: A feed called “Raspberry Pi” was created in Adafruit.io. This feed serves as the channel for IFTTT to communicate with Adafruit.io.

A feed called “Raspberry Pi” was created in Adafruit.io, and this feed serves as the channel for IFTTT to communicate with Adafruit.io. This feed is also read by the Raspberry Pi, which allows us to run a function when a certain message is received.

Part 3: Connecting IFTTT Applet with Adafruit.io

Three applets were created in IFTTT, one to turn on the fan, one to turn off the fan, and one to change the speed of the fan. Each of these applets simply send a number to the feed in Adafruit.io, which is picked up by the Raspberry Pi.

Part 4: The python script on Raspberry Pi

The explanation and the code can be found here.