Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

madnerdorg/openlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

33 Commits

Repository files navigation

Francais


Download Openlight / LibreConnect / Source

  • What is OpenLight
  • Commands
  • Applications
  • How to build openlight

What is OpenLight


Openlight is an open source alternative for milight gateway based on an arduino nano (clone).
Based on Henryk Plotz research : https://hackaday.io/project/5888-reverse-engineering-the-milight-on-air-protocol

Milight bulbs are not controlled using WIFI, it uses its own protocol on 2.4Ghz.

Our arduino will directly control the light bulbs using nrf24l01+ radio modules without using the WIFI gateway.

Tactile switchs are not mandatory, you can use it to turn on/off a lamp.
You need to add the code of your lamp in the code, last hexadecimal values will be ignored as it is updated incrementally:

int on [7] = { 0x00, 0x00, 0x00 ,0x00, 0x00, 0x00, 0x01};
int off [7] = { 0x00, 0x00, 0x00 ,0x00, 0x00, 0x00, 0x01};

Commands

/info : display name:port

openlight:42003

When a code is received it will be displayed as

0x00, 0x00, 0x00 ,0x00, 0x00, 0x00, 0x01

Enter a previously received code to send it

0x00,0x00,0x00,0x00,0x01,0x03,0x00

How to build openlight

Upload

  • Copy arduino/libraries into your arduino sketchbooks
  • Upload arduino/openlight_gateway/openlight_gateway.ino

Components

  • 1 Arduino nano (ch340g): 2.50EUR
  • 1 nrf24l01+ (radio module) : 1EUR
  • 2 Tactiles switchs : 2EUR

Cost : 5.50EUR

Wiring

nrf modules use 3.3V not 5V, pins are 5v tolerant

NRF
D9 : orange
D10 : yellow
D11 : blue
D12 : purple
D13 : green
3.3V: red

SWITCHS
D4 OFF SIG
D5 ON SIG
5V: VCC

Licences

openlight.ino

  • Author : Remi Sarrailh (madnerd.org)
  • Licence : MIT

openmili

About

send/receive commands from milight devices

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors