In this tutorial we learn about how to close a window in your laptop when someone open the door using Magicbit
Theory and MethodologyWe are using awesome of ESP32 , which can be used as Bluetooth Keyboard. So you can trigger any key press event from your Arduino code. In this project we get the input from proximity sensor and execute ALT+F4 (Window close) event from Magicbit. You need to setup Magicbit at the door such that when someone enter to the room proximity sensor value changes.
Hardware SetupFor this project we mainly used two hardware components. They are Magicbit and Proximity Sensor.
Now you Connect the Proximity Sensor to the 32 PIN on the Magicbit board. And then upload the Arduino code into the Magicbit board
Comments