Giter Site home page Giter Site logo

mqtt_motorized_curtains's Introduction

MQTT_Motorized_Curtains

Stepper motor controlled MQTT curtains - Home Assistant Integrated

Initial Setup

  1. Download the .ino file
  2. Ensure you have the correct libraries download and installed (links at top of the ino file)
  3. Update information in the user configuration section and upload to the NodeMCU
  4. Hook up your NodeMCU, stepper driver and motor as shown in the wiring section
  5. Send a value of 0 to the position MQTT topic which will be:
[USER_MQTT_CLIENT_NAME]/positionCommand
  1. Send incrementally higher values to the position MQTT topic until your blinds are fully closed
  2. Input that position value into the STEPS_TO_CLOSE field in the arduino sketch.
  3. Send the updated file to your NodeMCU.

Parts (Amazon Links)

Stepper Package https://amzn.to/2MpRQPu

Pulleys https://amzn.to/2FLbCDI

Curtain Rope https://amzn.to/2U7h5Zs

Extruder Gear https://amzn.to/2T4QtrL

Bearings https://amzn.to/2U4bdQI

NodeMCU https://amzn.to/2MkBcka

Buck Converter https://amzn.to/2FEcNFF

Power Supply https://amzn.to/2MmtFBj

M3 x 20mm Home Depot

#10 bolt Home Depot

Wiring

alt text

Stepper Dip Switch Positions

alt text

Motor Hardware Setup

alt text

Home Assistant YAML

cover:
  - platform: mqtt
    name: "Downstairs Curtains"
    command_topic: "CurtainsMCU/command"
    set_position_topic: "CurtainsMCU/positionCommand"
    position_topic: "CurtainsMCU/positionState"
    state_topic: "CurtainsMCU/positionState"
    retain: true
    payload_open: "OPEN"
    payload_close: "CLOSE"
    payload_stop: "STOP"
    position_open: 88
    position_closed: 0

mqtt_motorized_curtains's People

Contributors

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