Build Tour: WiFi Button

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2018
  • A short look at my "WiFi Button" build, a small box with two buttons that controls my lights and uses an ESP32 in deep sleep mode to make a single Li-Ion battery last for months.
    You can get the source code shown, a basic wiring diagram and the 3D model of the box at github.com/andrewgodwin/ardui...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 36

  • @DavidJJJ
    @DavidJJJ 3 ปีที่แล้ว +4

    I finally built my version of this with three buttons which control my hue lights. Works really well, I've got a tri colour LED hooked up to do status as well. I feel like this should have way more views, I think it's an excellent project.

  • @fluiddynamicist
    @fluiddynamicist 4 ปีที่แล้ว +1

    I was looking for an elegant way to do a panic button for my dad. You did a great job overall, including 3d print. Keep doing what you are doing. Well done mate!

  • @DavidJJJ
    @DavidJJJ 6 ปีที่แล้ว +1

    Very cool use for an ESP32, such s cool little box, definitely going to build one!

  • @NilsBelde
    @NilsBelde 6 ปีที่แล้ว

    I like the way how the lid closes with just snapping in.

  • @prelude0133
    @prelude0133 5 ปีที่แล้ว

    Nice explaination. Thank you.

  • @davebeckham5429
    @davebeckham5429 6 ปีที่แล้ว +1

    Very well explained Andy. Thanks for sharing.

  • @santhoshaditya6676
    @santhoshaditya6676 5 ปีที่แล้ว

    Thanks for sharing, it was awesome

  • @piereligiodisante
    @piereligiodisante 5 ปีที่แล้ว +4

    Hi, could you link us the products used for this build? It's a very cool one, mostly because of the practicality of charging and connecting the battery

  • @M.4y
    @M.4y 5 ปีที่แล้ว +5

    How can I change the button to work with mqtt

  • @xinliu7384
    @xinliu7384 3 ปีที่แล้ว +2

    Thanks for the video. I followed the process and created a WiFi button to publish MQTT messages to Home Assistant to control various smart home devices. However I found the lag is too much because of reconnecting WiFi every time the it wakes up from deep sleep (2-3 seconds). This seems unacceptable for controls like turning on/off lights.
    I end up using the board (the sender)to send ESPNOW messages to a second board(the receiver), and the second board maintains WiFi connection to my router and publish the MQTT messages. This way, the board that reads the button presses still operates with battery and can wake up without needing to connect to WiFi. The receiver is always plugged in and since it’s always connected to WiFi, there is no lag for WiFi reconnection. When I press the button, the lights turns on almost immediately.

  • @prateekmahajan1929
    @prateekmahajan1929 3 ปีที่แล้ว

    The battery consumption can be reduced by using esp8266, using a mosfet or a transistor to connect enable pin to VCC, and keeping the transistor on using a gpio pin, also can use a database for controlling stuff or using espnow, you could use auto update features as well, also you can reduce consumption using an ldo like ht7773 the whole circuit will we smaller using esp-12E or esp8285 so you can have plenty room for a tp4056 charger or could use wireless charging as well.

  • @chrisw1462
    @chrisw1462 2 ปีที่แล้ว

    This could have be a lot smaller, even with those buttons (they're _long,_ but most commercial buttons with an LED are). The resistors could easily be in-line on the wires themselves, and don't really require a separate board. Just solder one end to the switch terminal and the other to it's wire, after adding some heat shrink. Even keeping the protoboard, a 90 degree header for the switch connectors could save some space.

  • @jackoziel8280
    @jackoziel8280 ปีที่แล้ว

    Andrew
    I watched your videos they very interesting and impressive
    Are you able to make a wifi or Bluetooth switch that can be operated with a smart phone
    Please advise
    Jack

  • @Eewokney
    @Eewokney 4 ปีที่แล้ว +1

    can you provide a part lists? add to the github project ? like what buttons and what battery is that?

  • @gavinreniers7569
    @gavinreniers7569 5 ปีที่แล้ว

    How long does your battery last over time

  • @ShantiL_
    @ShantiL_ 2 ปีที่แล้ว

    Great built ! but as I'm a debutant in programming / circuit stuff idk how can I connect the wifi buttons to Alexa ?

  • @muflah
    @muflah 3 ปีที่แล้ว +1

    Why didn't you make a PCB for it? This entire thing could be much more smaller if there was a custom PCB.

  • @elyakofler2191
    @elyakofler2191 2 ปีที่แล้ว

    Where can I get all of those components?

  • @HardcoreMusik
    @HardcoreMusik 4 ปีที่แล้ว +1

    Is there a low voltage protection for Li-Io battery ? And i don´t see resistor for the LED ?

    • @muflah
      @muflah 3 ปีที่แล้ว

      You mean over discharge protection?
      The breakout board may have some protections.

  • @x87alpha1
    @x87alpha1 2 ปีที่แล้ว

    the connect function takes up to 5 to 6 seconds, how did you get it to take 2 seconds?

  • @Electromaniaworld
    @Electromaniaworld 6 ปีที่แล้ว

    what programming ide you have used ?

    • @AndrewGodwin
      @AndrewGodwin  6 ปีที่แล้ว

      I used Arduino, as I do for pretty much all of my projects.

    • @Electromaniaworld
      @Electromaniaworld 6 ปีที่แล้ว

      thanks. how is the theme of your screen dark ? arduino always has white background. i tried to do it dark but never succeeded. any suggestions

  • @jacobvarghese7597
    @jacobvarghese7597 4 ปีที่แล้ว

    I am getting this "Woken up by button 1
    " on restart (I didn't click the button). and its Boot number: 1 always . I am using esp8266

    • @jacobvarghese7597
      @jacobvarghese7597 4 ปีที่แล้ว

      never mind ,created the project with esp32. deep sleep on esp8266 is buggy

  • @AndreasDelleske
    @AndreasDelleske 4 ปีที่แล้ว +3

    Take my money? :)

  • @Agronomistapolo
    @Agronomistapolo 6 ปีที่แล้ว

    Hi:
    Maybe this is not the place to share this but I need your help.
    I'm working with several SRS Sensors from Decagon Devices (manuals.decagon.com/Integration%20Guides/SRS-N%20Integrators%20Guide.pdf). I built a Arduino Code (see below) using this library: github.com/joranbeasley/SDISerial.
    When I connect just one sensor on PIN (my sensor works well). However, when I connect two sensor on diferents pin even on the same PIN just I get a mesurement from one senso.
    /*Code*/
    #include
    #define pin_n3 3
    #define pin_n5 5
    SDISerial coneccion_a_pin_n3(pin_n3);
    SDISerial coneccion_a_pin_n5(pin_n5);
    char* resp_n3;
    char* resp_n5;
    void setup(){
    Serial.begin(9600);
    coneccion_a_pin_n3.begin();
    delay(1000);
    coneccion_a_pin_n5.begin();
    delay(1000);
    }
    void loop(void){
    resp_n3 = coneccion_a_pin_n3.sdi_query("7M!",1000);
    delay(2000);//Retardamos por un segundo para activar el siguiente comando
    resp_n3 = coneccion_a_pin_n3.sdi_query("7D0!",1000);
    Serial.println(resp_n3);
    delay(1000);
    resp_n5 = coneccion_a_pin_n5.sdi_query("9M!",1000);
    delay(2000);
    resp_n5 = coneccion_a_pin_n5.sdi_query("9D0!",1000);
    Serial.println(resp_n5);
    delay(1000);//Retraso para empezar a medir otra vez
    }

  • @newbook6549
    @newbook6549 2 ปีที่แล้ว

    Would u consider selling buttons to me and how much are they worth

  • @guyfromostrava
    @guyfromostrava 2 ปีที่แล้ว

    Obviously an old video, but in 2022 this is unnecessarily bulky. This could be done now to be 1/4 the original size, even smaller.

    • @robhein
      @robhein ปีที่แล้ว

      Can you help me get started, i need a smaller solution. Actually im just looking to build a wifi switch small a possible. Cheers

  • @itskindaboringhere3000
    @itskindaboringhere3000 ปีที่แล้ว

    Turi ip ip ip