All Projects → ghmartin77 → SmartLEDLamp

ghmartin77 / SmartLEDLamp

Licence: MIT license
A smart, web-enabled floor lamp with nice visual effects based on IKEA Vidja powered by ESP8266 and WS2801.

Programming Languages

C++
36643 projects - #6 most used programming language
HTML
75241 projects
c
50402 projects - #5 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to SmartLEDLamp

Tuya Convert
A collection of scripts to flash Tuya IoT devices to alternative firmwares
Stars: ✭ 3,338 (+15072.73%)
Mutual labels:  esp8266, smarthome
ESPHome-OpenTherm
Example of how to control an opentherm boiler with esphome
Stars: ✭ 54 (+145.45%)
Mutual labels:  esp8266, smarthome
Waterius
Передача показаний воды по Wi-Fi. Watermeter Wi-Fi transmitter.
Stars: ✭ 295 (+1240.91%)
Mutual labels:  esp8266, smarthome
MQTT-MotorizeBlinds
Code for ESP8266 Microcontrollers that control DIY motorized blids made from IKEA TUPPLUR blinds. Code in this repo is intentionaly to use with Homebridge MQTT plugin on raspberry Pi
Stars: ✭ 17 (-22.73%)
Mutual labels:  esp8266, smarthome
Templates
Tasmota Device Templates Repository. Your one stop shop to get templates for devices running Tasmota!
Stars: ✭ 162 (+636.36%)
Mutual labels:  esp8266, smarthome
thermomat
Low cost smart home IOT heating with adapted eq3n and esp8266-07. Server, Webapp and ESP8266 code for autonomous thermostat controling over the internet.
Stars: ✭ 17 (-22.73%)
Mutual labels:  esp8266, smarthome
Esp8266 smartconfig flutter example
Esp8266 smartconfig(onetouch) config using flutter example
Stars: ✭ 33 (+50%)
Mutual labels:  esp8266, smarthome
Jarolift MQTT
Controlling Jarolift TDEF 433MHZ radio shutters via ESP8266 and CC1101 Transceiver Module in asynchronous mode
Stars: ✭ 43 (+95.45%)
Mutual labels:  esp8266, smarthome
Home Assistant Config
My Home Assistant configuration & documentation.
Stars: ✭ 99 (+350%)
Mutual labels:  esp8266, smarthome
Rgb
Offline smart home - esp8266 and WS2811/WS2812/NeoPixel LEDs Smart home / Gudra māja / Умны дом
Stars: ✭ 99 (+350%)
Mutual labels:  esp8266, smarthome
RyobiGDO
Device Type Handler and Node.js Proxy Service for Smartthings
Stars: ✭ 17 (-22.73%)
Mutual labels:  smarthome, smartthings
cbj smart-home
🏡 If you are searching for an easy way to connect all your smart home devices with one app CyBear Jinni 🦾🐼🧞‍♂️ is here for you. Join the community and make your home smarter than yesterday.
Stars: ✭ 40 (+81.82%)
Mutual labels:  smarthome, smartthings
Haswitchplate
LCD touchscreen for Home Automation
Stars: ✭ 666 (+2927.27%)
Mutual labels:  esp8266, smarthome
Pysmartnode
Micropython Smarthome framework
Stars: ✭ 58 (+163.64%)
Mutual labels:  esp8266, smarthome
Wirehome.core
Wirehome.Core is a home automation system written in C# targeting .NET Core. It runs on Linux, Windows and macOS.
Stars: ✭ 180 (+718.18%)
Mutual labels:  esp8266, smarthome
home-assistant-opentherm-thermostat
Home Assistant OpenTherm Thermostat
Stars: ✭ 26 (+18.18%)
Mutual labels:  esp8266, smarthome
Cybele
BLE to MQTT Gateway for Smarthome and IoT Devices
Stars: ✭ 94 (+327.27%)
Mutual labels:  smarthome
Aquarea2mqtt
Wrapper for Panasonic Aquarea Service Cloud to MQTT for a smart home integration like Home-Assistant (or for some machine learning)
Stars: ✭ 19 (-13.64%)
Mutual labels:  smarthome
iot-product-dev-book
Source code for example apps from IoT Development for ESP32 and ESP8266 with JavaScript.
Stars: ✭ 38 (+72.73%)
Mutual labels:  esp8266
iot-dev
Example IoT projects
Stars: ✭ 54 (+145.45%)
Mutual labels:  esp8266

SmartLEDLamp

A smart, web-enabled floor lamp with nice visual effects based on IKEA Vidja powered by ESP8266. IR or http controlled.

Looks like this (some examples):

White Lamp Red Lamp Green Lamp Rainbow Lamp Fire Lamp Blue Sky Lamp Deep Sea Lamp Purple Dream Lamp Tentacle Blobs Lamp White Black Lamp

Animation example (fire)

On Fire Lamp

Making of

Step 1

Step 2

Step 3

Step 4

Step 5

Step 6

Step 7

Step 8

Step 9

PCB

Ingredients

  • IKEA Vidja
  • ESP8266 (Wemos D1 or a similar variant with 4MB flash memory)
  • 5m WS2801 (160 LEDs)
  • Power Supply 5V, 10A
  • Cable straps, resistors, capacitors, duct tape, few hours spare time...
  • (optional) IR Sensor (e.g. VS1838) plus Mini led controller 44 (search aliexpress)

How to Build

First Start

  • After initial upload ESP8266 is running in AP mode offering a WiFi AP connection called SmartLEDLampAP.
  • Connect to that WiFi and open http://192.168.4.1 in your browser if it isn't shown automatically.
  • Configure WiFi by supplying WiFi name plus password, save, wait a minute and restart the ESP8266.
  • If connect data was right, ESP8266 is now accessible from your local network. IP is shown in the console as logging output:
    Info: Starting Smart LED Lamp 0.2
    Info: Free Sketch Space: 622592
    Info: No config file found, using defaults
    Info: IP: 192.168.0.110
    Info: HTTP server started
    Info: WebSocket server started
    
  • Now build and upload SPIFFS. In folder SmartLEDLamp run
    mkspiffs -p 256 -b 8192 -s 3125248 -c data spiffs-image.bin
    
    and
    espota.py -i <IP> -s -f spiffs-image.bin
    
    Don't worry if the latter comes back with an error after upload.
  • Alternatively you can use ArduinoIDE Plugin for SPIFFS upload.
  • Restart ESP8266

Usage

  • More often than not LED stripes won't be plain white when R, G and B are fully powered, thus you may want to calibrate your stripes. Go to http://<IP>/config.html to apply and save your calibration (Tip: this is done most easily turning on the lamp with fully brightness and white color.)
  • You can access a web remote control page at http://<IP>/control.html to access a web control page showing the remote (please also refer to data/rc.jpg)
    • Most buttons are self-explaining. Here's just the special stuff:
      • 3rd button in the first row allows to start and stop animations
      • JUMP3 - Rainbow animation - Try QUICK/SLOW and the blue up/down arrows
      • JUMP7 - Fire animation - Try QUICK/SLOW, different up/down arrows (fire parameters), DIY1-6/AUTO (choose color palette)
      • FLUSH - FastLED noise animation - Try QUICK/SLOW, blue up/down arrows (scale), red up/down arrows (choose color palette)
      • FADE3 - FastLED DemoReel animations - Try red up/down arrows
      • FADE7 - VU Meter - commented out in the code. You can run a microphone or line in on A0 of the ESP8266 to drive the VU Meter. You'll have to poke around with the code to make this work. Look for readAnalogPeek and the code calling it in loop in LEDLamp.cpp.
  • Remote logging is available via port 8888. You could use PuTTY to connect to your lamp's IP, port 8888 using connection type raw and you will receive logging output like key presses and so on.

Home Automation Integration

The following web API is available to integrate the SmartLEDLamp into OpenHAB for example:

http://<IP>/action/?act=on - Turn the lamp on
http://<IP>/action/?act=off - Turn the lamp off

http://<IP>/action/?btn=1 - Simulate press button 1
http://<IP>/action/?btn=17 - Simulate press button 17

http://<IP>/action/?brightness=17 - set brightness to 17%
http://<IP>/action/?brightness=100 - set brightness to 100%

Additionally you can use MQTT (see above on how to enable, configure MQTT_SERVER and MQTT_TOPIC in defines.h appropriately). Message of "0" sent to the topic turns the lamp off, a message of "1" turns it on. Furthermore same topic is reflecting the state if lamp is turned on or off via web interface or IR.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].