In this section, we'll just open and close a door based on voice commands. Similar to the previous section, where we switched an LED on and off using voice commands such as ON and OFF, here we are going to do a similar thing using a servo motor. The main target is to make the readers understand the core concepts of the Intel Edison where we use voice commands to perform different tasks. The question may arise, why are we using servo motors?
A servo motor, unlike normal DC motors, rotates up to a specific angle set by the operator. In normal scenarios, controlling the lock of a door may use a relay. The usage of relays was discussed in Chapter 3, Intel Edison and IoT (Home Automation).
Let us also explore the use of servo motors so that we can widen the spectrum of controlling devices. In this case, when a servo is set to 0 degrees, it is unlocked and when it is set to...