IoT House Door Control

Example Description
In this example, we will demonstrate how to control the door of the IoT House.

In this example, we will demonstrate how to control the door of the IoT House.

Circuit

Connect the servo motor to the Quarky Expansion Board servo pin 5.

Door Control

The door of the IoT House is controlled with a servo motor. You need to make the servo motor set to 0 angles before assembling the door. You can do it with the following script.

Door Control Script

The following script makes the door closed by default and opens it for 1 second when the space key is pressed.

Output

Press the space key to make the door open.

Table of Contents