Giter VIP home page Giter VIP logo

arduinolifx's Introduction

Arduino LIFX bulb

LIFX bulb emulator by Kayne Richens ([email protected])

Emulates a LIFX bulb. Connect an RGB LED (or LED strip via drivers) to redPin, greenPin and bluePin as you normally would on an ethernet-ready Arduino and control it from the LIFX app!

Notes

  • As of Android LIFX app v1.70, you CAN control an Arduino bulb and real LIFX bulbs at the same time with the Android LIFX app. Untested with the iOS LIFX app.
  • Only one client (e.g. app) can connect to the bulb at once

Setup

  • Connect an RGB LED to PWM pins on your ethernet-ready arduino
  • Set the following variables in arduinolifx.ino to suit your Arduino and network environment:
  • mac (unique mac address for your arduino)
  • redPin (PWM pin for RED)
  • greenPin (PWM pin for GREEN)
  • bluePin (PWM pin for BLUE)
  • Connect the arduino to power and network
  • Upload the code to the arduino
  • The LED should light up (warm white) once the arduino gets a DHCP lease from your network
  • Start up the LIFX app - you should see a bulb named "Arduino bulb"
  • Control your arduino bulb from the LIFX app!

Made possible by the work of magicmonkey: https://github.com/magicmonkey/lifxjs/ - you can use this to control your arduino bulb as well as real LIFX bulbs at the same time!

And also the RGBMood library by Harold Waterkeyn, which was modified slightly to support powering down the LED

arduinolifx's People

Contributors

kayno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduinolifx's Issues

Diagram/pictures

This looks awesome! Can you please post and overhead picture of your wiring or a diagram (you could use http://fritzing.org to make a diagram), as well as a list of components used? I noticed on your YouTube vid you're using some integrated circuits to drive LED strips.

Compatibility with IOS apps 2.0.x

Hi, at first thanks for your job, I use arduino bulb since few month now. But just after the last update of iOS apps 2.0.x I can not see my arduino bulb anymore ( it's still working with other apps).
Do you know something about that?
Kind regards
Patrick

Not working with latest Lifx update 2.3,x

Hi Kayno,
Are you still working on this project?
I like it, I use it for a while now (I don't' understand why lifx doesn't provide an strip driver compliant).
But now they are using a cloud to access bulb from anywhere, and Lifx apps Widget companion too, so it's not compliant with arduinolifx anymore.
Can I hope you could spend time to update your project?

King regards

Broadcast IP Datagram Discovery BAD Netmask Assumption

Hi, I've notice this line of code
IPAddress broadcast_addr(remote_addr[0], remote_addr[1], remote_addr[2], 255);
So, it just happened that my netmask was 255.255.255.0 and it worked, but then I've changed it just to see if I will crash it. Indeed after the netmask change the app was not able to find my device.

I suggest changing that line with this:
IPAddress netmask(WiFi.subnetMask()); IPAddress broadcast_addr((unsigned char)(remote_addr[0] | ~netmask[0]), (unsigned char)(remote_addr[1] | ~netmask[1]), (unsigned char)(remote_addr[2] | ~netmask[2]), (unsigned char)(remote_addr[3] | ~netmask[3]));

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.