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

  Переглядів 733,774

bitluni

bitluni

6 років тому

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 6 років тому
The cat feeder machine got me!
@bastelbudi
@bastelbudi 6 років тому
same here xD i need something like this for my chickens
@oetken007
@oetken007 6 років тому
Me too :-)
@mitropoulosilias
@mitropoulosilias 6 років тому
i need that to feed my dad :-(
@dusnoki
@dusnoki 5 років тому
I laughed way too hard :)
@toadmadhatter
@toadmadhatter 5 років тому
lol I came here to say that
@ytfp
@ytfp 6 років тому
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.
@lenaroseguera1241
@lenaroseguera1241 6 років тому
I just found your channel and now is my favorite electronic tutorials channel 👽
@bitlunislab
@bitlunislab 6 років тому
thanks!
@iFireender
@iFireender 5 років тому
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 років тому
His goal was to minimise added hardware, I think. A month of battery life is good enouhgh.
@SNK1995
@SNK1995 5 років тому
Thanks Peter... :)
@AugustoCarmo
@AugustoCarmo 5 років тому
that solution will not increase the response time of the button?
@SNK1995
@SNK1995 5 років тому
@@AugustoCarmo , Tell me more.. :)
@AugustoCarmo
@AugustoCarmo 5 років тому
@@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.
@pocketscience911
@pocketscience911 4 роки тому
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.
@dnyaneshvarsalve
@dnyaneshvarsalve 2 роки тому
You just recalled me this powerful yet small wifi board. Nice one
@crazieeez
@crazieeez 5 років тому
"Oh damn, I forgot to feed the cat." Gets to me. Good one! :D
@TrasteIAm
@TrasteIAm 6 років тому
Perfect, i will definitely try this one. Thanks for yet another great video!
@MjwAllMusic
@MjwAllMusic 6 років тому
Loved that feeding the cat part haha!
@madskillz1o1
@madskillz1o1 3 роки тому
This video is exactly what I was looking for, thank you.
@ivan-spb
@ivan-spb 5 років тому
Super! Best and shortest full-circle video!
@B4x4
@B4x4 6 років тому
I am a new follower. Thank you for å great show, and I will be checking out that Ota programming os... 👍👍 Cheers from Norway
@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.
@meierthomas
@meierthomas 4 роки тому
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 :)
@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
@doxy612
@doxy612 6 років тому
Great vid and top work! Is there a possibility to get the STL file for the button?
@Corgitronics
@Corgitronics 6 років тому
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!
@casey.white.
@casey.white. 5 років тому
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?
@Tarbard
@Tarbard 6 років тому
Nice, I like the case.
@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.
@madrian_hello
@madrian_hello 6 років тому
Man, your acting is the best. 😜
@Nicksperiments
@Nicksperiments 5 років тому
I rarely see Blender used for 3D printing. Very interesting
@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!
@James02876
@James02876 6 років тому
Do you have any plans to release the 3d model for the button? I'd like to print a few of those cases myself.
@innovation4u336
@innovation4u336 5 років тому
Boom, nice tutorial boss
@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 :-)
@Looped_
@Looped_ Рік тому
Lmao
@abpccpba
@abpccpba 6 років тому
Very nice work. Congratulations. New subscriber.
@jobopolo
@jobopolo 5 років тому
Nice project!
@rico8192
@rico8192 6 років тому
I really like the big button. Can that be purchased somewhere or was that printed. Thanks
@josepalacid
@josepalacid 4 роки тому
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.
@grindel80
@grindel80 6 років тому
Great work!!!
@isaacrafaelnunezservian708
@isaacrafaelnunezservian708 2 роки тому
ajajsjdaj the cat feeder needs a litle bit of love. Genial bro!
@Electromaniaworld
@Electromaniaworld 6 років тому
beautiful idea. how long does the battery last ?
@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!
@joshuarosen6242
@joshuarosen6242 6 років тому
For just a few pennies more you can buy an ESP-01 programmer with a UART/flash mode switch.
@jsmythib
@jsmythib 5 років тому
6:20 and you became a mandatory sub :) I finally got my esp-01 up and running. A great little board.
@SoundGuy
@SoundGuy 5 років тому
Got a link for the box on Thingyverse? also a link to buy the button and the microswitch?
@Karateschnitzl
@Karateschnitzl 6 років тому
Great Idea and great video! Keep it up
@bitlunislab
@bitlunislab 6 років тому
thanks.. I will :)
@2madrobot
@2madrobot 6 років тому
Emergency Cat feeder - I need one ASAP!
@sphynxusa
@sphynxusa 6 років тому
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!
@bitlunislab
@bitlunislab 6 років тому
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...
@jackoziel8280
@jackoziel8280 Рік тому
I watched your videos they are 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
@CircsC
@CircsC 2 роки тому
6:25 Cat approves of current design. Says to push to production immediately.
@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?
@freeelectron8261
@freeelectron8261 5 років тому
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 4 роки тому
Earbuds like apple airpods have lipos in them, amongst other crap...
@siddacious
@siddacious 6 років тому
I am annoyed that I didn't find your channel until now. I am also amused by your cat.
@bitlunislab
@bitlunislab 6 років тому
thanks, I'm still happy that I made 30k subs so far :-)
@darklord_ice
@darklord_ice 3 роки тому
Great project! would you share the .stl for the case? Thaaanks :)
@MetalDeepthroat
@MetalDeepthroat 6 років тому
Coole Idee !
@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}
@HellaFunnyShorts
@HellaFunnyShorts 6 років тому
Cool project
@janiwindsor
@janiwindsor 6 років тому
This man a legend
@kychemclass5850
@kychemclass5850 2 роки тому
What time elapses from the time the button is clicked and then the cat flap opened? Is the adafruit server reliable to connect to?
@bartolo1780
@bartolo1780 4 роки тому
Hi, mongoose os that you use in the video is not the same as the version I download for windows?
@k4k48g8fi3kk
@k4k48g8fi3kk 6 років тому
I screamed after i seen the cat feeder. Very good 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?
@LuisMaSuarezGutierrez
@LuisMaSuarezGutierrez 4 роки тому
Excellent humor. Good content . Yup Im in.
@mstylesms
@mstylesms 6 років тому
Very nice! A quick question for you. Can this be written or wired so that it detects when a door opens or closes? Think of a garage door that may stay open or closed a long time and using a coin cell battery. Is this possible?
@onshisan
@onshisan 6 років тому
I don't think a 3V coin cell is necessarily appropriate, but conceptually the push-button switch could be replaced by a different sensor. For a door, which is necessarily not moving around, using a larger battery (or accessing mains power with an adaptor) would give considerable flexibility. But as mentioned elsewhere here, it would likely consume less power to have the sensor send a signal by some other, lower-power radio technology than WiFi to a bridge or hub... lots of ways to approach this problem :)
@cbmeeks
@cbmeeks 6 років тому
Yeah, you might want to tweak the cat feeder...unless you want him to be 200 LBS. LOL
@morganaverynz
@morganaverynz 5 років тому
If cat is good then surely more cat is more good.
@DreaMinder1
@DreaMinder1 6 років тому
Nice, but what the advantage of using mongooseos frimware? mJS API? I mean the same could be done with arduino IDE, am I right?
@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
@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
@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?
@krzysiojezyna3558
@krzysiojezyna3558 5 років тому
Great stuff
@zenobikraweznick
@zenobikraweznick 5 років тому
brilliant!
@sandyintisel
@sandyintisel 6 років тому
Wow.. amazing
@lufycz.
@lufycz. 6 років тому
have you ever made the DIY "studio" microphone ?
@FrankP83
@FrankP83 6 років тому
A sort of dashbutton 😊
@MrRetep57
@MrRetep57 3 роки тому
Nice video!
@fxtattoo
@fxtattoo 3 роки тому
Ok, you get my thumbs up for the feeding the cat joke. LOL!
@tehgringe
@tehgringe 5 років тому
this is a great video
@jinxer3006
@jinxer3006 5 років тому
The cat feeder cracked me up!!!
@RupinChheda
@RupinChheda 6 років тому
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 років тому
Just make use of these LiFePo4 batterys ! 2,8-3,65volt and even easier to charge/trickle charged for ages without degradation of capacity.
@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.
@JNET_Reloaded
@JNET_Reloaded 4 роки тому
Can you make heating controll and thirmistat all wifi with a mini and can be set via webpage?
@htcheroportugal
@htcheroportugal 6 років тому
Hello under normal conditions how long does the battery last?
@SaumavaDas
@SaumavaDas 5 років тому
what's the name of the tool u used to hold the ESP while u solder?
@doro516
@doro516 4 роки тому
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.
@daniel.ehrhardt
@daniel.ehrhardt 6 років тому
This is great :)
@KingACF
@KingACF 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
@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"
@PremiumStyleLP
@PremiumStyleLP 3 роки тому
Hey, kann man sowas auch an 230 Volt Wechselstrom betreiben? (Mit Adapter natürlich) Wäre super, wenn man sich sein eigenes Smart-Home bauen will :)
@ufohunter3688
@ufohunter3688 6 років тому
Very nice.
@tubejim101
@tubejim101 4 роки тому
lol. Love the cat feeder :)
@georgedicu7397
@georgedicu7397 5 років тому
Awesome!!
@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
@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.
@Abbici
@Abbici 2 роки тому
Hallo... I like your WONDERFULL project! Can I ask you a stupid question? How long does that rechargeable battery last? Isn't it better for projects like these two AA batteries? @}-,-'--------- Gianfranco
@alexandermyagkov7707
@alexandermyagkov7707 6 років тому
Exelent!!!
@zerobyte.758
@zerobyte.758 6 років тому
very nice
@jeffbornes3986
@jeffbornes3986 2 роки тому
NICE!
@batuhanegesen
@batuhanegesen 6 років тому
6:20 nailed it. lmao
@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.
@JohnoScott
@JohnoScott 6 років тому
Fantastic
@prashantmanshrestha
@prashantmanshrestha 2 роки тому
can we send notification offline or locally with out internet??
@Jajaho2
@Jajaho2 6 років тому
Nice video, thank you very much for taking the effort of making it. Really appreciate it. Btw. like the jokes.
@bitlunislab
@bitlunislab 6 років тому
Thanks!
@jhana.2023
@jhana.2023 5 років тому
You are a artist. I do it. Cool. 1000 likes !
@MrHbpatel
@MrHbpatel 6 років тому
👍 my wish u could include wall button panel powered directly without lipo , similar to thermostat
@bitlunislab
@bitlunislab 6 років тому
more projects coming :)
@robhein
@robhein Рік тому
This was 4 years ago, can i buy a finished product like this somewhere? Banggood or aliexpress must have?!
@freeelectron8261
@freeelectron8261 5 років тому
Cool little iot button. Some would say its a bit loony but what would they know ;)
@jonathanjuarezgarcia579
@jonathanjuarezgarcia579 4 роки тому
Which IDE / toolchain do You use? In 6:31?
@CrayyyCrayyy
@CrayyyCrayyy 4 роки тому
LOL Yes the Cat Feeder was the BEST :)
Remote power outlet home automation tutorial ESP8266
6:09
bitluni
Переглядів 396 тис.
😨Новая Война в GTA 5 Online #shorts
00:40
King Dm
Переглядів 1,4 млн
ОДИН ДОМА #shorts
00:34
Паша Осадчий
Переглядів 2,8 млн
Что будет с кроссовком?
00:35
Аришнев
Переглядів 2,5 млн
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Переглядів 175 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 512 тис.
ESP8266 Voltage Regulator (LiPo and Li-ion Batteries)
5:17
Rui Santos
Переглядів 60 тис.
ESP8266 E.v.i.l  Twin 2 in 1:  E.v.i.l twin & D.eauth Programming & Testing
9:01
Solar Weather Station [WiFi, MQTT, Smart Home, ESP8266]
11:06
bitluni
Переглядів 183 тис.
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 567 тис.
$5 DIY Wireless MQTT Smart Home Window Sensors
8:42
The Hook Up
Переглядів 141 тис.
The Cheapest CNC Milling Machine
17:55
bitluni
Переглядів 2,2 млн
DIY Home Security - ON A BUDGET!
9:12
DIY Perks
Переглядів 5 млн
iPhone - телефон для нищебродов?!
0:53
ÉЖИ АКСЁНОВ
Переглядів 3,7 млн
#Shorts Good idea for testing to show.
0:17
RAIN Gadgets
Переглядів 198 тис.
Самый маленький игровой ПК
0:46
ITMania - Сборка ПК
Переглядів 628 тис.