Skip to content

lnbits/bitcoinswitch

 
 

Repository files navigation

Clicky, the Bitcoin Switch

👉 An absolutely incredible bitcoinSwitch guide by Axel 👈

Also check out our video tutorial.

✅ $8 worth parts / 15min setup

✅ Websockets for blazingly fast turning on the things

✅ Web-installer/config for easy setup

✅ Support for MULTIPLE GPIOS/LNURLs (!)

Flash and configure via webinstaller https://bitcoinswitch.lnbits.com/

switch_front switch_back

Things you can turn on with a switch

There is a broad range of things from lamps, to candy-, claw or even arcade machines that can be turned on by a lightning payment with Clicky. Have a look at the LNbits shop what we did or check the LNbits wiki on how to build those yourself.

What you need

  • esp32 dev kit

  • High level relais

  • Female to male and male to male cables

  • Data cable

  • Optional: a case

  • Desktop PC

  • LNbits LNURLdevice Extension

  • Something to turn on

    Snow Forest Mountains Mountains

    Once flashed, press GPIO4 in few seconds of ESP32 booting up to be able to config.

    Got questions ? Join us t.me/lnbits, t.me/makerbits

    Complicated install instructions not using browser flashing

    trigger

    Development

    build with arduino-cli

    sh build.sh

    build webinstaller, fetch main assets from lnbits.github.io

    sh build-installer.sh

    start preview

    cd installer
    http-server -p 8080

    arduino-cli

    compiling

    arduino-cli compile --build-path build --fqbn esp32:esp32:esp32 bitcoinSwitch

    monitoring

    arduino-cli monitor -p /dev/ttyUSB1 -c baudrate=115200

    uploading

    arduino-cli upload --fqbn esp32:esp32:esp32 --input-dir build -p /dev/ttyUSB1

Languages

  • C++ 95.7%
  • CMake 1.2%
  • C 1.1%
  • Python 0.8%
  • Shell 0.8%
  • JavaScript 0.2%
  • Other 0.2%