maxmacstn / 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
https://maxmacstn.wordpress.com/2018/08/12/diy-ม่านไฟฟ้าจากม่าน-ikea/
20 stars 6 forks source link
esp8266 homeautomation homebridge smarthome

IKEA motorize blinds

header

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. I use 3D printed motor mount from here instructables - MOTORIZED WIFI IKEA ROLLER BLIND

Features

Hardware

schematic

Add this devices to Homebridge-MQTT

You can use program like MQTTLENS to send this command

Topic

homebridge/to/add

Payload

{
     "name": "Blind 1",
     "service_name": "blind_1",
     "service": "WindowCovering"
}

Instruction

  1. I developed this program with VSCode. If you want to use Arduino IDE, please copy content in "ESP8266 Dependencies" folder to libraries folder.
  2. Don't forget to change MQTT server ip address to match yours.
  3. For the first time, use Wifi setup to connect to your router.
  4. Press and hold down button while inputting power or reset to enter calibrate mode. Release button, blind will going down, press again when it reached lowese point, it will go up, press again when it reach highest point, it will stop and record the value.

Dependencies

Known issues

Calibrate mode is hard to perform, motor rotate wrong rotation but it can solve by restart the process again (Maybe caused by switch debouncing). Rapidly press up or down button may cause system to crash, maybe it blocked main loop.