Это видео недоступно.
Сожалеем об этом.

The Smallest WiFi Button in the World (ESP8266, MQTT, IFTTT)

Поделиться
HTML-код
  • Опубликовано: 18 авг 2017
  • This tutorial is showing how to built a small WiFi/Dash button for an ESP-01 module. A button and a LiPo Battery is added. The case is 3D printed. The software is based on Mongoose OS and sends notifications to an MQTT server and IFTTT over a direct web link. The video is also showing a possible use case for such a button.. enjoy watching.
    The code can be found here:
    github.com/bitluni/wifiButton
    Please support my work on Patreon:
    / bitluni
    Links to the parts (I get small cut at no extra cost for you):
    Esp-01
    s.click.aliexpress.com/e/yNjmuna
    ebay.to/2vVTznf
    amzn.to/2wgvlqy
    Programmer:
    s.click.aliexpress.com/e/7yzbmI6
    ebay.to/2wwljku
    amzn.to/2uXVACb
    Battery:
    s.click.aliexpress.com/e/Jmufqby
    ebay.to/2vguaCN
    amzn.to/2wg1HRX
    Charger:
    s.click.aliexpress.com/e/AUNRRVZ
    ebay.to/2xsX83X
    amzn.to/2w4htNl
    Mongoose OS:
    mongoose-os.com/

Комментарии • 327

  • @NoviceRobot
    @NoviceRobot 7 лет назад +344

    The cat feeder machine got me!

    • @bastelbudi
      @bastelbudi 7 лет назад +3

      same here xD i need something like this for my chickens

    • @oetken007
      @oetken007 6 лет назад +1

      Me too :-)

    • @mitropoulosilias
      @mitropoulosilias 6 лет назад +5

      i need that to feed my dad :-(

    • @dusnoki
      @dusnoki 5 лет назад +2

      I laughed way too hard :)

    • @toadmadhatter
      @toadmadhatter 5 лет назад

      lol I came here to say that

  • @ytfp
    @ytfp 7 лет назад +3

    Once again excellent in every way and made me laugh. Sooo happy your back making videos, one of my all time favorite makers and youtuber.

  • @iFireender
    @iFireender 5 лет назад +163

    Inefficient, imo. You went for full software, but with a simple, tiny MOSFET or transistor of any kind, you could increase the battery life massively.
    Instead of going for deep sleep, make the pushbutton actually supply voltage to the ESP; once the esp boots up, make it latch the power supply for itself, do the WiFi stuff, and then unlatch the power supply (simple GPIO set/reset) - battery is not connected anymore, 0 power drawn. No need for deep sleep here, as it doesn't have to wake up on its' own.

    • @moth.monster
      @moth.monster 5 лет назад +14

      His goal was to minimise added hardware, I think. A month of battery life is good enouhgh.

    • @SNK1995
      @SNK1995 5 лет назад +1

      Thanks Peter... :)

    • @AugustoCarmo
      @AugustoCarmo 5 лет назад +10

      that solution will not increase the response time of the button?

    • @SNK1995
      @SNK1995 5 лет назад

      @@AugustoCarmo , Tell me more.. :)

    • @AugustoCarmo
      @AugustoCarmo 5 лет назад +1

      @@SNK1995 I really don't know, I'm just asking... I don't know the time difference to "boot" and send the MQTT message when the ESP is off or in deep sleep.

  • @lenaroseguera1241
    @lenaroseguera1241 7 лет назад +3

    I just found your channel and now is my favorite electronic tutorials channel 👽

  • @pocketscience911
    @pocketscience911 4 года назад +3

    This is nice - especially the cat feeder! :) I did something similar, albeit larger, to control Hue lights using a Wemos D1. To get the required latency I went for static IP addresses, so no waiting on DHCP. Works great in a home environment. Didn't use MQTT or anything - just straight API calls to the Hue bridge.

  • @TrasteIAm
    @TrasteIAm 6 лет назад

    Perfect, i will definitely try this one. Thanks for yet another great video!

  • @ivan-spb
    @ivan-spb 5 лет назад

    Super! Best and shortest full-circle video!

  • @madskillz1o1
    @madskillz1o1 3 года назад +1

    This video is exactly what I was looking for, thank you.

  • @dnyaneshvarsalve
    @dnyaneshvarsalve 2 года назад

    You just recalled me this powerful yet small wifi board.
    Nice one

  • @MjwAllMusic
    @MjwAllMusic 7 лет назад +5

    Loved that feeding the cat part haha!

  • @B4x4
    @B4x4 6 лет назад +1

    I am a new follower. Thank you for å great show, and I will be checking out that Ota programming os... 👍👍
    Cheers from Norway

  • @maenova417
    @maenova417 4 года назад

    Awesome video, I love how you made it with a single button even though it was at the expense of battery life.

  • @Tarbard
    @Tarbard 7 лет назад +2

    Nice, I like the case.

  • @grindel80
    @grindel80 7 лет назад

    Great work!!!

  • @crazieeez
    @crazieeez 6 лет назад +15

    "Oh damn, I forgot to feed the cat." Gets to me. Good one! :D

  • @JensC919
    @JensC919 6 лет назад

    I like your videos, I have similar projects in mind to what you show, and it looks like we both don't want to mess around with lots of microelectronics and soldering complex custom relays. Thanks for the videos! My gf will love the led strip I will copy from you :-)

  • @jobopolo
    @jobopolo 5 лет назад

    Nice project!

  • @innovation4u336
    @innovation4u336 5 лет назад

    Boom, nice tutorial boss

  • @MetalDeepthroat
    @MetalDeepthroat 6 лет назад

    Coole Idee !

  • @Corgitronics
    @Corgitronics 7 лет назад

    Very nice work, both the project and the video!
    Subbed.
    I found you on Patreon, might be good to put a link to your Patreon account in the description!

  • @abpccpba
    @abpccpba 7 лет назад

    Very nice work. Congratulations. New subscriber.

  • @madrian_hello
    @madrian_hello 7 лет назад +11

    Man, your acting is the best. 😜

  • @Karateschnitzl
    @Karateschnitzl 7 лет назад

    Great Idea and great video!
    Keep it up

    • @bitluni
      @bitluni  7 лет назад +1

      thanks.. I will :)

  • @Nicksperiments
    @Nicksperiments 5 лет назад +1

    I rarely see Blender used for 3D printing. Very interesting

  • @piereligiodisante
    @piereligiodisante 5 лет назад

    Hi, well done in this video! I've just a question. With this circuitry and Mongoose OS, could I make a button that turns off or on my Yeelights using LAN Control Protocol, without needing other devices, or also trigger IFTTT commands?
    LAN Control protocol enables prompt commands that you can trigger from the LAN network.

  • @MrRetep57
    @MrRetep57 3 года назад

    Nice video!

  • @meierthomas
    @meierthomas 4 года назад +1

    Very inspirational! Your MEGA LED matrix got me hooked onto the journey of ESP32 and ESP8266. Have ordered a couple of components to get the LED matrix going. I'm conceptualising a few more projects and one thing that happens often is missing to lock the sliding windows. Here's the question: Taking the cue from the smallest Wifi switch in the world do you think it would be possible (or maybe you've done it already) to incorporate one part of a hall sensor into the casing housing the ESP which then registers a "closed" event when the lever of the window lock is in the locked position? In other words this setup checks for the lock in the locked position rather than the window/door shut - well I could possibly monitor both window shut and locked :)

  • @janiwindsor
    @janiwindsor 6 лет назад

    This man a legend

  • @daniel.ehrhardt
    @daniel.ehrhardt 6 лет назад

    This is great :)

  •  4 года назад

    Excellent humor. Good content . Yup
    Im in.

  • @krzysiojezyna3558
    @krzysiojezyna3558 5 лет назад

    Great stuff

  • @James02876
    @James02876 6 лет назад +3

    Do you have any plans to release the 3d model for the button? I'd like to print a few of those cases myself.

  • @HellaFunnyShorts
    @HellaFunnyShorts 7 лет назад

    Cool project

  • @isaacrafaelnunezservian708
    @isaacrafaelnunezservian708 2 года назад

    ajajsjdaj the cat feeder needs a litle bit of love. Genial bro!

  • @RC_Raceway
    @RC_Raceway 6 лет назад

    Hello. I have tried to create the button in your tutorial. When I flash the board it says all done but the leds remain lit and the flash process freezes on the pc. There are ascii character output on the mongoose screen but it doesn’t allow me to add WiFi details for this button. Any ideas would be greatly received

  • @tehgringe
    @tehgringe 5 лет назад

    this is a great video

  • @BryanLeeRagon
    @BryanLeeRagon 5 лет назад

    Is the connector for the battery charger just hooked up in parallel with the rest of the circuit? Can you charge the battery while the battery is still connected to the ESP provided that the ESP is in deep sleep? What happens if it's not in deep sleep? i.e. What happens if someone presses the button while it's charging?

  • @sandyintisel
    @sandyintisel 6 лет назад

    Wow.. amazing

  • @1q1q1q1q1q1q1qw
    @1q1q1q1q1q1q1qw 6 лет назад

    what is the best and smallest option to use it with 230V i live in europa and an phone charger is big and uglie i would like to set up this next to my lligthswitch running 230 is there any cheap small solution

  • @siddacious
    @siddacious 6 лет назад +1

    I am annoyed that I didn't find your channel until now. I am also amused by your cat.

    • @bitluni
      @bitluni  6 лет назад +1

      thanks, I'm still happy that I made 30k subs so far :-)

  • @jsmythib
    @jsmythib 5 лет назад

    6:20 and you became a mandatory sub :) I finally got my esp-01 up and running. A great little board.

  • @freeelectron8261
    @freeelectron8261 5 лет назад +2

    Nice job - very neat. That Li Po is the smallest I have seen. The cat feeder is still in Beta, I'm guessing? ;) Love the vid's :)

    • @NGC1433
      @NGC1433 5 лет назад

      Earbuds like apple airpods have lipos in them, amongst other crap...

  • @uiopuiop3472
    @uiopuiop3472 5 лет назад

    The charger link for aliexpress is dead i think, it shows something called "20pcs U0301for iPhone 5S 6 6plus 6s 6s-plus fix repair blue display screen IC 4pins"

  • @samueljuuliversen5162
    @samueljuuliversen5162 6 лет назад

    Will this work with a reed switch instead?
    Does the code run when you press the button? Or does it run when the button is released?

  • @k4k48g8fi3kk
    @k4k48g8fi3kk 7 лет назад

    I screamed after i seen the cat feeder. Very good video

  • @doxy612
    @doxy612 7 лет назад +1

    Great vid and top work! Is there a possibility to get the STL file for the button?

  • @joshuarosen6242
    @joshuarosen6242 6 лет назад +6

    For just a few pennies more you can buy an ESP-01 programmer with a UART/flash mode switch.

  • @casey.white.
    @casey.white. 5 лет назад +1

    Hello Master, I like watching your video very much. I learned a lot from it. I have a question. The ESP-01 voltage is 3.3V. The full voltage of the lithium battery may reach 4.2V, which will cause this circuit. Influence?

  • @darknessblades
    @darknessblades 5 лет назад

    this is something i plan on creating.
    only then to controll a smart home.
    1 main controller with multiple override buttons
    1 timer switch
    that is send a command to the slaves to run the program at a set time.
    for example
    run program X1 at time 12:00
    run program X2 at time 18:00
    run program X3 at 19:00
    run program at: 20:00
    it needs a screen so you can easily set up times for each day of the week. {time setting will be in intervals of 15 minutes}
    with multiple settings like override program till time X.
    for example normally monday you have 2 4 programs, like on off on off (so it is on when you are at home but off when you are gone)
    but if you are at home on that day the override programming will keep the program for that day till X?
    {something like a holiday button for a smart thermostat}

  • @2madrobot
    @2madrobot 6 лет назад +6

    Emergency Cat feeder - I need one ASAP!

  • @gunjanpaul4372
    @gunjanpaul4372 6 лет назад

    Hey Bitluni, I have tried your way of flashing the Esp8266, but as soon as I plug it in after the process stars, It freezes there. No more messages come, and the leds on the boards are still. Please help me out. My usb-to-serial converter uses a CP2102 chip.

  • @josepalacid
    @josepalacid 5 лет назад

    Would you upload the button's design to thingiverse or any other 3d design hub?
    I've clicked on one of your videos on a search result and now I'm subscribed and I've seen all of your videos... twice!
    Thank you very much for your accurate designs, for the joy of your video edition and the humor on your speech.

  • @panjann
    @panjann 6 лет назад

    Hello, my ESP-01 doesn't wake up when I push the reset button. Any idea what could be the cause? Thanks.

  • @ufohunter3688
    @ufohunter3688 7 лет назад

    Very nice.

  • @zenobikraweznick
    @zenobikraweznick 6 лет назад

    brilliant!

  • @georgedicu7397
    @georgedicu7397 5 лет назад

    Awesome!!

  • @bartolo1780
    @bartolo1780 4 года назад +1

    Hi, mongoose os that you use in the video is not the same as the version I download for windows?

  • @eqisoftcom
    @eqisoftcom 5 лет назад

    In your video you have an ESP-01 which is a 512kB version. However, the text in the video says 1MB version (which should be ESP-01S). Is ESP-01 sufficient for this project?

  • @jayare7750
    @jayare7750 5 лет назад

    using the ESP-01, do you have a code that would help me set up a door sensor with a magnetic reed switch? I would like it to have a status, open alert and closed alert. I don't even need deep sleep as having it on all year is less than $2 a year.

  • @vincenzopatti5834
    @vincenzopatti5834 3 года назад

    Can you also use it for multi press le hold press? Is there a way ti do that? I can do it with tasmota but i wuold like do it with low energie consumation

  • @hectyre
    @hectyre 6 лет назад

    I've just recently subscribed and I'm really enjoying your videos. I've just bought a D1 mini and I was planning on putting mongoose on it. I have no experience with JavaScript, should I just jump right in or read a book on JavaScript first? I know a little C, PHP, Delphi/Pascal

  • @dennisbsutube
    @dennisbsutube 6 лет назад

    Great Video! You mentioned using Direct Web Links versus using an MQTT site. Would this allow me to program the 8266 with a destination SMS mobile number without opening an MQTT or IFTTT type account? How can this be done? Thanks!

  • @platformkami2222
    @platformkami2222 6 лет назад

    hallo Mr. i want to ask. how to make wifi speaker with nodemcu esp8266, thankyou

  • @SoundGuy
    @SoundGuy 5 лет назад

    Got a link for the box on Thingyverse? also a link to buy the button and the microswitch?

  • @jhana.2023
    @jhana.2023 6 лет назад

    You are a artist. I do it. Cool. 1000 likes !

  • @croydon21H
    @croydon21H 4 года назад

    Hi, I want to copy this, but I am not sure about your statement @3:58 is worrying. Is the case pressing a very tiny tactile button on esp01? Can you tell about the receiver. Thx

  • @kychemclass5850
    @kychemclass5850 3 года назад

    What time elapses from the time the button is clicked and then the cat flap opened?
    Is the adafruit server reliable to connect to?

  • @JNET_Reloaded
    @JNET_Reloaded 4 года назад

    Can you make heating controll and thirmistat all wifi with a mini and can be set via webpage?

  • @zerobyte.758
    @zerobyte.758 6 лет назад

    very nice

  • @fxtattoo
    @fxtattoo 4 года назад

    Ok, you get my thumbs up for the feeding the cat joke. LOL!

  • @SaumavaDas
    @SaumavaDas 5 лет назад

    what's the name of the tool u used to hold the ESP while u solder?

  • @rico8192
    @rico8192 7 лет назад

    I really like the big button. Can that be purchased somewhere or was that printed. Thanks

  • @RupinChheda
    @RupinChheda 7 лет назад +3

    I am kind of confused. Firstly, can you run the esp from a >3.3V power source? And how is the reset kept pulled high with just the push button? Won't it go back to being low once you remove the finger? Or is it a two position switch?

    • @triularity
      @triularity 6 лет назад

      He did say "do so at your own risk" using a direct 4.2v battery.

    • @gmiller123456
      @gmiller123456 6 лет назад

      Those are 3.7v batteries, and in my testing with a benchtop power supply 3.7 is the cuttoff where they stop working. Works fine at 3.6v, 3.7v it hangs. It's possible these small batteries can't deliver enough current to keep the voltage above 3.6, or aren't fully charged.

    • @casemodder89
      @casemodder89 6 лет назад +2

      Just make use of these LiFePo4 batterys ! 2,8-3,65volt and even easier to charge/trickle charged for ages without degradation of capacity.

  • @jeffbornes3986
    @jeffbornes3986 2 года назад

    NICE!

  • @knisch.knecht
    @knisch.knecht 6 лет назад +6

    Hey, I hope someone can help me: I tried to rebuild some of this, but using the arduino environment. However, I found thet deep sleep doesn't work unless some of the unconnected pins ( XPD_DCDC (8)) of the cip is soldered and connected to RST. How comes this is not mentioned/needed here?

    • @knisch.knecht
      @knisch.knecht 6 лет назад +6

      ok, i got why: the mentioned connection is only used if the esp needs to start itself after a given time like this:
      ESP.deepSleep(microseconds, mode);
      Not needed it someone externe wakes it up via button pressing or similar

  • @Jajaho2
    @Jajaho2 7 лет назад +1

    Nice video, thank you very much for taking the effort of making it. Really appreciate it. Btw. like the jokes.

  • @Electromaniaworld
    @Electromaniaworld 6 лет назад

    beautiful idea. how long does the battery last ?

  • @cbmeeks
    @cbmeeks 7 лет назад +21

    Yeah, you might want to tweak the cat feeder...unless you want him to be 200 LBS. LOL

    • @morganaverynz
      @morganaverynz 5 лет назад +1

      If cat is good then surely more cat is more good.

  • @hansdampf2529
    @hansdampf2529 4 года назад

    @bitluni
    Hallo ich hätte da mal eine Frage:
    Wie hast du Mongoose Os installiert und auf den ESP
    hochgeladen, weil ich in dem Video "The Smallest WiFi Button ..."
    nicht sehr viel entnehmen konnte und ich keine vernünftige/verständliche/aktuelle Anleitung finde!
    Danke im voraus!

  • @stewartrv
    @stewartrv 6 лет назад

    Am I missing something? I don't understand why the ESP8266 couldn't do this at power up? Then the button just needs to be a momentary power button, once you press it it powers the ESP8266 it connects sends the data and then its powered off again. Worse case you need a capacitor to keep it powered for 1-2 seconds. Then it would only use power when you actually press the button...

  • @sorhu72
    @sorhu72 6 лет назад

    Hello how can you plug lipo directly without any resistor?

  • @DreaMinder1
    @DreaMinder1 7 лет назад

    Nice, but what the advantage of using mongooseos frimware? mJS API? I mean the same could be done with arduino IDE, am I right?

  • @sphynxusa
    @sphynxusa 7 лет назад +2

    So cool to see you using Blender. Love that program. What 3D printer do you use? Thanks for the info. I didn't know the ESP8266 could be programmed this way. Would an FTDI USB to serial work for programming (like the one for programming the atmega328p) ? Thanks!

    • @bitluni
      @bitluni  7 лет назад

      sure.. esp-01 is kind of outdated.. I took it because of the small size.. this programmer is similar to ftdi
      there are many tutorials showing how to wire it up...

  • @JohnoScott
    @JohnoScott 6 лет назад

    Fantastic

  • @jinxer3006
    @jinxer3006 5 лет назад

    The cat feeder cracked me up!!!

  • @htcheroportugal
    @htcheroportugal 6 лет назад

    Hello under normal conditions how long does the battery last?

  • @picktrick1
    @picktrick1 5 лет назад

    is it possible to make such a button with konttaktron? click the door open and go to sleep, click the doors closed

  • @lufycz.
    @lufycz. 7 лет назад

    have you ever made the DIY "studio" microphone ?

  • @hulladek3
    @hulladek3 5 лет назад

    How about a BT version? Sends a BT low power signal a few times when the button is pressed. Set up a phone to search for low power BT signals and start assistant when it finds one.
    I have have a Chinese BT button but the thing needs constant connection for the phone lost features. And it can't be disable. That keeps the phone awake what drains the battery.

  • @tubejim101
    @tubejim101 4 года назад

    lol. Love the cat feeder :)

  • @alexandermyagkov7707
    @alexandermyagkov7707 6 лет назад

    Exelent!!!

  • @sonaaila499
    @sonaaila499 4 года назад

    HELLO GREAT VIDEO

  • @FrankP83
    @FrankP83 7 лет назад +1

    A sort of dashbutton 😊

  • @croydon21H
    @croydon21H 4 года назад

    Hi Bitluni, If you remove the pins..how are you going to upload any new sketch?

  • @doro516
    @doro516 5 лет назад

    to save battery you shouldn,t use the RST pin, instead of that, yu should use the button to feed source power to the VCC pin, thus the mini board Will be on only when your press the button.

  • @darklord_ice
    @darklord_ice 3 года назад

    Great project! would you share the .stl for the case? Thaaanks :)

  • @mitropoulosilias
    @mitropoulosilias 6 лет назад

    i dont understand.. button have to be on reset?

  • @ktestable
    @ktestable 4 года назад

    is it possible to use that usb thing to program an esp12? I am a total beginner and my very first arduino/esp board will arrive in 1 or 2 weeks.
    Thanks to anyone who will answer.

  • @freeelectron8261
    @freeelectron8261 5 лет назад

    Cool little iot button. Some would say its a bit loony but what would they know ;)

  • @bhavinrathod406
    @bhavinrathod406 7 лет назад +1

    You are my idol sir,, great work I don't have enough money to support you on patreon , but I hope you don't mind it , I am your fan

    • @bitluni
      @bitluni  7 лет назад

      now worries :)

    • @grindel80
      @grindel80 6 лет назад

      bitluni's Lab now heißt 'jetzt'. Ich glaub du meinst 'no' 😂