-
1Connect one of the reed switch's terminals to a GPIO pin on the ESP-32
You should make sure the pin matches the number specified as `SWITCH_PIN` in the Arduino code.
-
2Connect the other reed switch terminal to the ESP-32's ground
-
3Load the ESP-32 Arduino code onto the board
-
4Place the ESP-32 + reed switch on the top of the freezer
-
5Stick the magnet to the freezer door, a few inches away from the reed switch
-
6Connect the battery to the ESP-32
-
7Calibrate
Hit the reset button on the ESP-32. If the built in LED flashes, slide the magnet a little closer. Repeat. Once the light does not flash, your system is ready to go.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.