This Raspberry Pi Pico project extends a traditional doorbell, enabling it to send notifications via Telegram and Node-RED when the doorbell button is pressed. It's ideal for those instances where you might not hear the doorbell. The system is designed to connect to the network only when necessary, minimizing its online presence.
- Doorbell Signal Monitoring: Detects doorbell button presses and sends notifications.
- Notification Services: Integrates with Telegram and Node-RED for sending alerts.
- LED Indicator: An onboard LED indicates that the board is functioning correctly and not stuck in a loop.
- Power-Efficient Networking: Connects to the network only as needed to send messages, although it reconnects for each message.
Before installation, create a Telegram bot following this tutorial to obtain your bot token and chat IDs.
The circuit includes a Raspberry Pi Pico board with a voltage divider to ensure it receives an ideal voltage between 3V and 5V.
+------------------+
| (signal)| (2.2k)
| GP10 +--------/\/\/\------------------ Signal (+)
| Raspberry |
| Pi (~3.3V)|
| Pico W VSYS +--------/\/\/\-----------+------ VCC
| | |
| GND +----------+----/\/\/\----+
| |LED| | |
+------+---+-------+ --+--
---
The software consists of several Python modules, each handling a specific aspect of the project.
- Clone the repository to your local machine.
- Update
credentials.py
with your WiFi and Telegram information. - Modify
settings.py
to fit your needs (e.g., enabling Telegram or Node-RED). - Upload all files to your Raspberry Pi Pico.
Modify settings.py
and credentials.py
to match your network and notification preferences.
After powering up, the Pi Pico monitors the doorbell pin. Pressing the doorbell triggers the sending of notifications to the configured channels.
- Uses single-core polling for button press detection; interrupts were considered but not implemented.
- Network efficiency is limited as it reconnects for each message sent.
- Future versions might explore using interrupts for improved efficiency.
Contributions, suggestions, and improvements are welcome. Please feel free to open issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.