

Related Raspberry Pi Pico Projects & Tutorials.Getting Started with Raspberry Pi Pico using MicroPython on uP圜raft IDE.Writing a program to blink both on-board & external LED.Writing a blink program for the external LED.Writing a blink program for the onboard LED of pico.Getting Started with Raspberry Pi Pico using MicroPython on Thonny IDE.Installing MicroPython on Raspberry Pi Pico.

Preparing to flash the Pico Wīefore you can flash anything to the Pico W, you have to define a few secrets that ESPHome will use when it compiles the program.Ĭreate a secrets. Note: I also have a MicroPython-based setup in the micropython subdirectory. You will have to flash the firmware to the Pico W in order for it to work. I decided to use a Raspberry Pi Pico W for this project-you could probably also use an ESP32 or ESP8266 with slight modifications, since this project uses ESPHome. You can pick any GPIO connection, though-just change the appropriate lines inside garage-door.yml before flashing the Pico W using the instructions below. I used a RPi Pico Breakout board mounted directly to my garage wall, and wired one wire of each sensor to ground, and the others thusly: Watch this video to see how I installed the sensors on my garage doors, and how I wired them to the Pico W. I chose these because they are rugged and purpose-built for mounting to garage door tracks. The actual sensors I use are the 'Enforcer' (model SM-4201-LQ) from Seco-Larm. If I wanted some sort of cloud integration, I could pay for the kit that connects to my garage door opener, but since the cloud is just someone else's computer, and I'd rather not rely on some company's weak security to protect data about my home. warning me if I'm asleep and the garage door is open!). I wanted to build a sensor to determine the state of my garage door-open or closed-and send that state to Home Assistant so I can display the status in a dashboard and build automation from it (e.g.
