Giter Club home page Giter Club logo

automation-2040-light-controller's Introduction

automation-2040-light-controller

The MagPi - Tutorial for controlling lights using Automation 2040 W

Please see Issue 123 for full instructions

In This Repo

main_sourcing.py

Power the LED light strip directly from Automation 2040 W

(Check the power requirements carefully before going this route!)

main_relay.py

Control the lights using Relay 3 to switch the power supply (Max 40V 2A)

main_relay_pushover.py

Send alerts to a Pushover account when the state changes (see pushover.net)

main_relay_mqtt.py

Send updates to a MQTT broker when the state changes

Dependancies

All scripts require velm7700.py (included in this repo) to read the light sensor

main_relay_mqtt.py requires umqtt_simple.py to send MQTT updates

In both cases place upload the files using Thonny to the root of the Raspberry Pi Pico W.

Additional Libraries

veml7700.py

Copyright (c) 2019 Joseph Hopfmüller

This module is a fork of Christophe Rousseaus module.

https://github.com/palouf34/veml7700.git

umqtt_simple.py

https://github.com/micropython/micropython-lib/blob/master/micropython/umqtt.simple/umqtt/simple.py

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.