Code Monkey home page Code Monkey logo

raspberry-pi-pico-w-doorbell's Introduction

Raspberry Pi Pico W Doorbell Extension

Overview

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.

Features

  • 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.

Pre-Setup

Before installation, create a Telegram bot following this tutorial to obtain your bot token and chat IDs.

Hardware Setup

The circuit includes a Raspberry Pi Pico board with a voltage divider to ensure it receives an ideal voltage between 3V and 5V.

Circuit Diagram

+------------------+
|          (signal)|        (2.2k)
|             GP10 +--------/\/\/\------------------ Signal (+)
| Raspberry        |
| Pi        (~3.3V)|
| Pico W      VSYS +--------/\/\/\-----------+------ VCC
|                  |                         |
|              GND +----------+----/\/\/\----+
|      |LED|       |          |
+------+---+-------+        --+--
                             ---

Software Components

The software consists of several Python modules, each handling a specific aspect of the project.

Installation

  1. Clone the repository to your local machine.
  2. Update credentials.py with your WiFi and Telegram information.
  3. Modify settings.py to fit your needs (e.g., enabling Telegram or Node-RED).
  4. Upload all files to your Raspberry Pi Pico.

Configuration

Modify settings.py and credentials.py to match your network and notification preferences.

Usage

After powering up, the Pi Pico monitors the doorbell pin. Pressing the doorbell triggers the sending of notifications to the configured channels.

chat

Limitations and Improvements

  • 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.

Contributing

Contributions, suggestions, and improvements are welcome. Please feel free to open issues or pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.


raspberry-pi-pico-w-doorbell's People

Contributors

ljgonzalez1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.