The block initializes the Expansion Board of Quarky for use. Without initialization, the board will not respond to any other blocks.
![](https://ai.thestempedia.com/wp-content/uploads/2022/10/IoT-House-Project-Door-Control.gif)
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.
Read More