Your shopping cart is empty!
![How to Set a Password for a Door Lock Using Microbit How to Set a Password for a Door Lock Using Microbit](https://static.cytron.io/image/tutorial/how-to-set-a-password-for-a-door-lock-using-microbit/Thumbnail.png)
How to Set a Password for a Door Lock Using Microbit
- Abdulrahman Alhamed
- 03 Aug 2022
- 1827
With only two buttons in microbit, can we make passwords to build security projects? YES, we can!
Let's learn how to set a password for a door lock using microbit. ?
Video Tutorial
Components Required
Connection
![sunflower circuit 50](https://static.cytron.io/image/tutorial/how-to-set-a-password-for-a-door-lock-using-microbit/Sunflower_Circuit_50.jpg)
By following the diagram above:
- Connect the servo motor to the first servo port
Code
![code](https://static.cytron.io/image/tutorial/how-to-set-a-password-for-a-door-lock-using-microbit/Code-1024x757.png)
Connect your REKA:BIT to your computer and open MakeCode editor to start programming.
- Add “REKABIT” extension and follow the code block in the picture above
- After completing the code, download it on your micro:bit
You can also view and edit the code by clicking here!
Project Complete
![door lock project](https://static.cytron.io/image/tutorial/how-to-set-a-password-for-a-door-lock-using-microbit/Door_lock_project.png)
Upon completing the project successfully, the door lock will open once the user enters the correct password
Related Products
SG90 Micro Servo
S$2.90 S$2.90
x 1 unit(s)
REKA:BIT (with micro:bit V2 included) - Simplif...
S$50.71 S$56.07 S$50.71
x 1 unit(s)
SG90 Micro Servo
Not Available
x 1 unit(s)