• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

maxmacstn/MQTT-MotorizeBlinds: Code for ESP8266 Microcontrollers that control DI ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

maxmacstn/MQTT-MotorizeBlinds

开源软件地址:

https://github.com/maxmacstn/MQTT-MotorizeBlinds

开源编程语言:

C++ 96.3%

开源软件介绍:

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

  • Buttons up and down for manual control.
  • Persistence state - Saved current position to EEPROM.
  • Calibrate mode - Calibrate lenght, top and buttom position of the window and store to EEPROM.

Hardware

  • 28BJY-48 Stepper motor + ULN2003 motor driver
  • Wemos D1 mini (or any ESP8266 modules)
  • two momentary switches
  • IKEA TUPPLUR blinds

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

  • CheapStepper Library - I modified from this library a little bit.
  • PubSubClient

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
polakovic/homebrew-astronomy发布时间:2022-06-17
下一篇:
ARB: Project发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap