Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4406

General • Pi Pico W - MQTT Broker (Limited)

$
0
0
Hi All,

Although I've been messing around with Pi's for quite a while, I finally found a real world use case for one.
I now probably have the most over-engineered doorbell repeater ! :D

I have one of those cheap 433mhz doorbells, and have 2 ringer units, one of which is in the main house, and the other was in my outside office. However, after some building work, and insulation (kingspan) being fitted, the office doorbell repeater stopped working, which was annoying, as I could no longer hear the doorbell. I came up with an interim of using Alexa to drop into a room in the house, so I could hear the doorbell that way, but the Alexa connection kept dropping out.

So, I looked into my option, and decided I could get a Sonoff 433Mhz bridge and go from there. I updated the Sonoff bridge with the Tasmota 14.0.0 firmware, and made the hardware mods to allow it send and receive (2 resistors added). This now gave me an MQTT client that could sense the doorbell and notify on wifi.

Since all I wanted was something that went "Beep" when the doorbell was pressed, looking at a full MQTT broker/home automation was a waste of time. So, I looked at using a Pi Pico W, there didn't seem to be any MQTT broker stuff out there, so a quick read of the protocol, I wrote something up in micropython than would allow the Sonoff to connect and maintain connection. Adding a BC547 and a piezo buzzer (had a 5v one, not a 3v3 one hence the transistor) to one of the GPIO pins, I now have a working doorbell repeater :)
rPi.jpg
Regards
Mack

Statistics: Posted by MackJsy — Wed Jul 03, 2024 10:52 am — Replies 0 — Views 28



Viewing all articles
Browse latest Browse all 4406

Trending Articles