Giter Site home page Giter Site logo

iolight's Introduction

Internet of Light

This Homie V3 standard compitble device provide you a Internet of Things enabled LED lamp. It can control a dimmable (e.g. white) LED [via D2]. Additionally colored LEDs can be added, for now WS2812 LEDs are supported [via D1]. The complete RGB LED strip can be controlled, or each lamp individually.

Via an external switch [via D0] the white LED can be switched on, or off. The lamp will dim between the states using its PWM functionality. Pressing this switch until all colored LEDs are red, will reset the current stored configuration. (The button can be deactivated in the firmware with -D NOBUTTON)

Dependency

Homie for ESP8266 (e.g. nodemcu)

See https://github.com/homieiot/homie-esp8266

Development-Setup:

  • platformio

Installation

Linux

Search for the following extension in Visual Studio Code:

  • PlatformIO

And the following Librarys in Visual Studio Code:

  • Neo Pixel (from Adafruit)

Windows

Not working

Compiler generates unbootable image.

Workaround:

  • Generate Ubuntu VM and follow setup above inside
  • copy firmware.bin from VM to Windows
  • Install python & pip
  • pip3 install esptool
  • ./esptool.py.exe write_flash 0x0000 firmware.bin

Development

  • File
  • Open Workspace
  • Select the file in this repository: WIoLight.code-workspace

Filesystem

Configuration

Use the config-example.json from the host folder and create here a config.json file.

HowTo upload

Start Platform.io Open a new Atom-Terminal and generate the filesystem with the following command : pio run -t buildfs Upload this new generated filesystem with: pio run -t uploadfs

Hardware

  • D1: WS2812 RGB LEDs
  • D0: Button
  • D2: N-Channel Mosfet (e.g. LL2705)

Optional Temperatur

  • D7: One-Wire temperature sensor (DS 18B20)

Must be activated in the firmware with TEMP_ENABLE

Optional Motion

  • D6: IR PIR motion sensor (needs pull-down resistor)

Must be activated in the firmware with PIR_ENABLE

iolight's People

Watchers

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