GithubHelp home page GithubHelp logo

erdikusdemir / smarthome-wifi-remote Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 13.4 MB

ESP8266 based portable remote controller with OLED LCD for smart home implementation

License: MIT License

C++ 26.79% C 70.88% Objective-C 1.22% Makefile 0.06% Shell 0.31% CMake 0.26% Ruby 0.06% Python 0.42%
node-red-flow oled-lcd home-assistant mqtt-smarthome json-message portable esp8266 home-automation arduino node-red

smarthome-wifi-remote's Introduction

I am working on this project on left over times from my PhD thesis.
For the version based on TCP protocol: https://github.com/erdikusdemir/smarthome-wifi-remote-tcp

DESCRIPTION

Portable remote controller to control smart home devices over MQTT protocol. It is based on ESP8266 with OLED LCD and rotary encoder. Remote can control switches, dimmers, fans, and temperature controllers.

The remote controller communicates with Node-Red flow by MQTT JSON messages. Node-Red flow converts the signals from both remote and HA side and makes implementation easier. Items you would like to control by remote can be edited by "config file" function. Arduino sketch only configures Wifi and MQTT settings. All the item information are called at the initialization stage of the remote.

Wemos kill its power after 15 secs of idle time. Thus, power consumption of the remote is zero when it is not used.

Hardware is consist of;

  1. Wemos D1 mini Pro,
  2. A clickable rotary encoder,
  3. 0.96" I2C 128x64 OLED display,
  4. Wemos battery shield,
  5. LIPO battery,
  6. 3D printed enclosure (under progress),
  7. TPS27081ADDCR load switch,
  8. 2222A NPN transistor,
  9. 330, 1 k, and 1 MOhm resistors.

Instructions:

  1. Follow the schematic,
    2.1. Open the Arduino sketch and update your wifi and MQTT server information,
    2.2. Copy the libraries to documents/Arduino folder,
    3.1. Copy NodeRed flow into your NodeRed server,
    3.2. Configure your HA and MQTT servers,
    3.3. Configure your items by editing "config file" function,
    (id: order in your OLED screen, HAid: id name of item you want to control, type: switch(0), dimmer(1), or temperature controller(2))
    4.4. Deploy the node and everything should works.

To do list:

  1. Sometimes, during booting, remote can not collect the Json messages from Node-red and creates a blank page. Apperently, during the allocation of the memory, ESP has a problem to allocate big chunk of memory at once.
  2. (done!) Button of the encoder can not sense fast pushes. Cycle of the main loop is not fast enough.(Interrupt implemented.)
  3. Case is too bulky.

Limitations:

The number of an item is fixed to 20 because of code restrictions but it is possible to increase inside the Arduino code.

smarthome-wifi-remote's People

Contributors

erdikusdemir avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.