Giter VIP home page Giter VIP logo

magic_button's Introduction

Magic_Button

Inspired from a cartoon with a "press it when you miss me button". I created this project to realize it.

cartoon

Technical details

The project is built around ESP32-C3 using ESP-IDF framework. By utilizing the deep sleep mode of ESP32-C3 we can achieve very good battery life.

How it works

  1. The first time it boots the devices will generate a QR code on the serial console which can be scan by user to start wifi provisioning process.
  2. Once the wifi is connected the devices will send a message through webhook.
  3. A GPIO pin which the physical button is connected will be set as the weakup pin. In my case it is GPIO16.
  4. The device goes to deep sleep mode.
  5. Once the button is pressed the device weaks up and execute from step 2.

Hardware list

All components are off-the-shelf and you can change them to fit your needs.

To build

  • Change the webhook url and your payload(message) in src/main.c
  • Install PlatformIO
  • Clone this repo. Add it as a PlatformIO project.
  • Connect the board to your computer through a usb cable
  • Build, Flash and Monitor using PlatformIO.

button

magic_button's People

Watchers

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