Git Product home page Git Product logo

pi-pico-environmental-monitor's Introduction

Pi-Pico-environmental-monitor

Introduction

This repo is a familiarisation exercise with GitHub, and its version control, planning and documentation tools.

The project itself is code I wrote with extensive help from ChatGPT a while ago. It uses MicroPython to control a Raspberry Pi Pico which has a DHT20 sensor and a simple light dependent resistor (LDR) circuit attached. The system takes readings from the sensors every minute, and submits them to an MQTT broker. Home Assistant is subscribed to the appropriate topics and can parse the data for logical operations (turn a light on if it's dark etc.)

Each sensor platform has a BOM of about £20 including its Pico, USB cable, breadboard, header pins, sensors and jumper wires. They can be used to control a smart home, and are easily modified to add or replace sensor types. Using MQTT, they are not dependent on any proprietary smart home system such as Ikea Trådfri or Philips Hue, but using Home Assistant can push information out to Apple Home or Google equivalents.

Aims

The code was previously kept in a local Bookstack instance, but this has no version control etc. I intend to keep the code here, improve on it, and document its development, functionality and improvement.

Plans

The system runs well- months at a time when the MQTT broker is constantly available. When the MQTT broker is unavailable however (due to a reboot or the WLAN dropping), the system fails to recover from the interruption and remains offline pending a restart. This should be easy to investigate and fix, but it's the documentation of this process that is important.

pi-pico-environmental-monitor's People

Contributors

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