Giter Site home page Giter Site logo

rpi-light-switcher-9000's Introduction

Raspberry Pi Light Switcher 9000

Let me start by saying, I am VERY new to Python, HTML, and GitHub so please feel free to give me any advise you may have!
This is an awesome simple project if you are just starting with python, 3D printing or Raspberry Pi's.


I really wanted some home automation (and I was bored), but I live in a rented apartment in NYC and it turns out my landlord really frown upon me messing with the apartment's wiring. :stuck_out_tongue_winking_eye:
So I've designed a small bracket that attaches to your existing light switch plate that holds a micro servo which can turn on and off a paddle style light switch.

This is a simple Flask server that is run from your Raspberry Pi (or other single board computers) that can control that micro servo via a web interface over your local network!
Without messing with any existing electrical work!

See my Thingiverse post (I will post the actual link as soon as I put it up)for the micro servo switch plate mount.

If you have a standard style light switch check out this Servo Switch Plate Mount by carjo3000
I havent tried it but I'm sure you can make it work with some slight adjustments to the code!

The servo I used: Keywish MG90S


How to use RPi Light Switch 9000

  • MAKE SURE TO CHANGE ALL OF MY IP ADDRESSES TO YOUR PI'S LOCAL ADDRESS!!

  • Adjust the serv_pin variable in app.py to your servos GPIO pin

  • Use the test.py to determine the correct ON/OFF angles for the servo.

  • Run app.py on your pi

  • To access the interface from any browser on your local network go to http://<Your Pi's IP>:5000/
    Example: http://192.168.0.2:5000/

  • Edit the HTML and CSS in index.html. Share your changes!


Feel free to contact me if you have any questions or if you have some advise for a newbie like me!

I need your help, Teach me something, give me advice!

PLEASE CONTRIBUTE!

rpi-light-switcher-9000's People

Contributors

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