Giter Club home page Giter Club logo

cctweaker / espbutton Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 217 KB

Hardware and software to create button type devices for multiple uses. Messages sent over ESP-Now or MQTT. DC or battery powered, can be triggered by SPST switches with low/high edge or by rocker switches (senses both edges).

Home Page: https://3dstar.ro/proiecte/espbutton

License: GNU General Public License v3.0

C++ 90.31% C 9.38% Python 0.31%
iot esp-now mqtt-client esp8266 esp-01

espbutton's Introduction

ESPbutton

Swiss army knife of buttons. Accepts momentary (one impulse sent) and rocker (impulse on each state change) buttons, active low or high. Can be battery or DC powered and communicates through ESP-Now or MQTT (local or SSL connection).

Features

  • encrypted ESP-Now connection or

  • local MQTT connection or

  • secure MQTT connection, Let's Ecrypt CA cetificate already loaded

  • topic structure for multiple buildings (locations) control: location/type/name/+

  • battery or DC powered

  • button inputs are active low, active high or active on both (specially to replace rocker switches)

  • all the settings can be changed from the ESP's webserver page even while not connected to any WiFi

  • heartbeat function to send useful info periodically

Hardware

Roll your own or get one from 3DStar shop in PCB, kit (PCB + components) or fully assembled form.

The ESP-01 / ESP-01S from AI Thinker is used to control one PCA9536 4bit IO expander for 4 inputs. The 4 buttons should cover most home use cases without problems. You can assign lights, shutters/blinds, doors/gates, irrigation or other controls. The number of boards you can use is unlimited. The trick here is that when using ESP-Now, all button boards share the same MAC address. On MQTT there is no limitation, each board sends also its unique ID so even using a single topic for all buttons is feasible.

Build & upload

There are 2 methods: - download, build & upload (PlatformIO is recommended for automatic library management) - download bin files, upload

Libraries

PCB example

espbutton's People

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.