Giter VIP home page Giter VIP logo

dimswitch's Introduction

DimSwitch

This is an Arduino library to control electronic dimmable ballasts for fluorescent light tubes.

It works with ESP8266, Arduino UNO, Micro, MEGA, DUE and other compatible Arduino boards.

For description of API and application examples, please refer to documentation section. You will find there also description and graphs of state machine sequence, wave-forms of control signals as well as sample user interface in openHAB.

This library is a spin-off of project esp-lamp-in-sw written in C language. Check it out if you are not convinced with using C++ for embedded systems.

Warning: Hazardous Voltage!
Hazardous Voltage Warning Building and testing hardware for this project involves working with mains power that is dangerous to your life. Do not connect this project to the mains power without proper training and certification! Please read Safety Guidelines for High Voltage and/or Line Powered Equipment

Tested with

Functions

  • Switch the lamp on / off
  • Dim to specific light intensity
  • Read back on/off status and intensity
  • Calibrate

Required

  • ESP8266 or other Arduino compatible board
  • Relay connected to one of outputs
  • Light sensor connected to one of analog inputs
  • Touch and dim lamp connected to the relay

Application Example

DimSwitch Application Example

Sample Control Screens

This library features example sketches and openHAB code to show options to control the lamp using:

  1. Arduino IDE Serial Monitor
  2. Web browser with simple HTML code
  3. OpenHAB with MQTT binding
  4. OpenHAB with HTTP binding

The last three option are presented on screen shoots below.

Web browser with simple HTML code openHAB with MQTT binding openHAB with HTTP binding
Web browser with simple HTML code openHAB with MQTT binding openHAB with HTTP binding

Contribute

Feel free to contribute to the project in any way you like!

If you find any issues with code or descriptions please report them using Issues tab above.

Author

krzychb

Donations

Invite me to freshly squeezed orange juice.

Credits

Software for this project has been prepared thanks to great work of the following teams and individuals:

License

GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999

dimswitch's People

Contributors

krzychb avatar valeros 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.