Your shopping cart is empty!
IoT-Based Door Lock Using micro:bit and Blynk
- Abdulrahman Alhamed
- 19 Dec 2022
- 1528
With this IoT-based door lock, users can have access to control the door lock remotely through their smartphones. All you need is a micro:bit, Grove WiFi 8266, and servo motor.
Video Tutorial
Components Required
Connection
By following the diagram above:
- Connect the grove Wi-Fi module to P15 and P16
- Connect the servo motor to port 1
Blynk Setup
- go to Blynk website, create a new account and log in
- create a new template
- from datastream add a virtual pin
- then add a new device
- select the template that you have created
- now copy the token and paste it into the micro:bit code
- on your phone, open Blynk app and click on micro:bit device
- from the widget box, add a button and select virtual pin 0
Code
Connect your micro:bit to your computer and open MakeCode editor to start programming.
- Add “ESP8266 Cytron” extension and REKA:BIT extension as well, then follow the code block in the picture above
- Type in the name and password of your WiFi
- Paste the Token that you have copied from Blynk, and type in "V0" in Pin section
- After completing the code, download it on microbit
You can also view and edit the code by clicking here!
Project Complete
Now you will have access to control the door lock remotely through your smartphone.