Giter Site home page Giter Site logo

switchrelay's Introduction

switchrelay

Setup

HardareWare Required

  • Arduino Uno
  • Arduino Ethernet shield
  • 4 channel relay

Software http://arduino.cc/en/Main/Software

This application will run on a Arduino with a WizArd compatible ethernet shield. The Arduino will server up a jQuery enhanced website using webduino for switching on and off relays The relays can be connected to any number of applications. Most Specific it was intended for remote automation of utility main's power for home automation.

You will need the webduino library in your Arduino /library folder to compile;

Download, extract and install Webdunio into you arudino library folder e.g C:\Program Files\Arduino\libraries

https://github.com/sirleech/Webduino

The application also has functionality for Push Button, which is essentially a pulse rather then a latch of a relay, this is useful for hooking up to items that need turned on and off with a time delay on the power button.

Any use of high voltage or damage to your hardware is not my fault. I assume no risk or responsibility for the quality of this code.

To enable auth look below and change the settings accordingly. you will need to base 64 encode your creds.

To use this, enter the following USLs into your browser. Replace "Arduino Ip address" with the IP address assigned to the Arduino. ( it have tempeareory hard code it to 192.1681.1.222 you chnage change in the code ( static uint8_t ip[] = {192,168,1,222}; )

e.g http://192.1681.1.222/

These URLs brings up a display of the values READ on digital pins This is done with a call to defaultCmd.

http://192.1681.1.222/switch

This URL also brings up a display of the values READ on digital pins. When you click the "Submit" button, it does a POST that sets the digital pins, re-reads them, and re-displays the form.

http://192.1681.1.222/settings

This URL will assign the pins to relays, by default all relays are disabled this pin to relay information is stored on your Arduino EEPROM Note: 255 is the default and that means the Item is not active.

switchrelay's People

Contributors

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