> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/educational-kit-sets/micro-bit-inventor-education-kit/micro-bit-inventor-kit-iot-upgrade/iot-door-lock.md).

# IoT Door Lock

![](https://kittenbothk.readthedocs.io/en/latest/_images/lock.png)

### Building Instructions

[Download Instructions](https://github.com/kittenbothk/kittenbothk/raw/master/Kits/classroom_inventor/iot_instructions/images/lock.pdf)

![](https://kittenbothk.readthedocs.io/en/latest/_images/lock_wire.png)

### Sample Program(MakerCloud)

{% embed url="<https://makecode.microbit.org/_bfx7V2Ao0Mii>" %}

[Sample Program](https://makecode.microbit.org/_bfx7V2Ao0Mii)

### MakerCloud Set Up

![](https://kittenbothk.readthedocs.io/en/latest/_images/lock_makercloud1.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/lock_makercloud2.png)

### Model Instructions

1. Fill in WiFi and MakerCloud credentials.
2. Publish message "OPEN" or "CLOSE" to control the lock.

### Sample Program(ObjectBlocks)

{% embed url="<https://makecode.microbit.org/_77U675FraA82>" %}

[Sample Program](https://makecode.microbit.org/_77U675FraA82)

### ObjectBlocks Set Up

![](https://kittenbothk.readthedocs.io/en/latest/_images/lock_objectblocks1.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/lock_objectblocks2.png)

### Model Instructions

* Fill in WiFi and ObjectBlocks credentials.
* Publish message "OPEN" or "CLOSE" to control the lock.
