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

  Рет қаралды 735,119

bitluni

bitluni

Күн бұрын

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 жыл бұрын
The cat feeder machine got me!
@bastelbudi
@bastelbudi 7 жыл бұрын
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
@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.
@ytfp
@ytfp 7 жыл бұрын
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.
@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.
@lenaroseguera1241
@lenaroseguera1241 7 жыл бұрын
I just found your channel and now is my favorite electronic tutorials channel 👽
@bitluni
@bitluni 7 жыл бұрын
thanks!
@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!
@dnyaneshvarsalve
@dnyaneshvarsalve 2 жыл бұрын
You just recalled me this powerful yet small wifi board. Nice one
@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
@MjwAllMusic
@MjwAllMusic 7 жыл бұрын
Loved that feeding the cat part haha!
@madskillz1o1
@madskillz1o1 3 жыл бұрын
This video is exactly what I was looking for, thank you.
@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!
@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.
@crazieeez
@crazieeez 6 жыл бұрын
"Oh damn, I forgot to feed the cat." Gets to me. Good one! :D
@Tarbard
@Tarbard 7 жыл бұрын
Nice, I like the case.
@grindel80
@grindel80 7 жыл бұрын
Great work!!!
@Nicksperiments
@Nicksperiments 5 жыл бұрын
I rarely see Blender used for 3D printing. Very interesting
@jobopolo
@jobopolo 5 жыл бұрын
Nice project!
@MetalDeepthroat
@MetalDeepthroat 6 жыл бұрын
Coole Idee !
@abpccpba
@abpccpba 7 жыл бұрын
Very nice work. Congratulations. New subscriber.
@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 :)
@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
@isaacrafaelnunezservian708
@isaacrafaelnunezservian708 2 жыл бұрын
ajajsjdaj the cat feeder needs a litle bit of love. Genial bro!
@Karateschnitzl
@Karateschnitzl 7 жыл бұрын
Great Idea and great video! Keep it up
@bitluni
@bitluni 7 жыл бұрын
thanks.. I will :)
@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...
@madrian_hello
@madrian_hello 7 жыл бұрын
Man, your acting is the best. 😜
@MrRetep57
@MrRetep57 3 жыл бұрын
Nice video!
@jsmythib
@jsmythib 5 жыл бұрын
6:20 and you became a mandatory sub :) I finally got my esp-01 up and running. A great little board.
@HellaFunnyShorts
@HellaFunnyShorts 7 жыл бұрын
Cool project
@janiwindsor
@janiwindsor 6 жыл бұрын
This man a legend
@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}
@joshuarosen6242
@joshuarosen6242 6 жыл бұрын
For just a few pennies more you can buy an ESP-01 programmer with a UART/flash mode switch.
@krzysiojezyna3558
@krzysiojezyna3558 5 жыл бұрын
Great stuff
@siddacious
@siddacious 6 жыл бұрын
I am annoyed that I didn't find your channel until now. I am also amused by your cat.
@bitluni
@bitluni 6 жыл бұрын
thanks, I'm still happy that I made 30k subs so far :-)
@k4k48g8fi3kk
@k4k48g8fi3kk 7 жыл бұрын
I screamed after i seen the cat feeder. Very good video
@tehgringe
@tehgringe 5 жыл бұрын
this is a great video
@daniel.ehrhardt
@daniel.ehrhardt 6 жыл бұрын
This is great :)
4 жыл бұрын
Excellent humor. Good content . Yup Im in.
@sandyintisel
@sandyintisel 6 жыл бұрын
Wow.. amazing
@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.
@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.
@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"
@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.
@cbmeeks
@cbmeeks 7 жыл бұрын
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.
@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?
@2madrobot
@2madrobot 6 жыл бұрын
Emergency Cat feeder - I need one ASAP!
@doxy612
@doxy612 7 жыл бұрын
Great vid and top work! Is there a possibility to get the STL file for the button?
@CircsC
@CircsC 2 жыл бұрын
6:25 Cat approves of current design. Says to push to production immediately.
@tubejim101
@tubejim101 4 жыл бұрын
lol. Love the cat feeder :)
@fxtattoo
@fxtattoo 4 жыл бұрын
Ok, you get my thumbs up for the feeding the cat joke. LOL!
@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
@zenobikraweznick
@zenobikraweznick 6 жыл бұрын
brilliant!
@ufohunter3688
@ufohunter3688 7 жыл бұрын
Very nice.
@sphynxusa
@sphynxusa 7 жыл бұрын
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...
@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
@jinxer3006
@jinxer3006 5 жыл бұрын
The cat feeder cracked me up!!!
@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
@FrankP83
@FrankP83 7 жыл бұрын
A sort of dashbutton 😊
@platformkami2222
@platformkami2222 6 жыл бұрын
hallo Mr. i want to ask. how to make wifi speaker with nodemcu esp8266, thankyou
@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!
@jeffbornes3986
@jeffbornes3986 2 жыл бұрын
NICE!
@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.
@jhana.2023
@jhana.2023 6 жыл бұрын
You are a artist. I do it. Cool. 1000 likes !
@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?
@knisch.knecht
@knisch.knecht 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 жыл бұрын
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
@SoundGuy
@SoundGuy 5 жыл бұрын
Got a link for the box on Thingyverse? also a link to buy the button and the microswitch?
@RupinChheda
@RupinChheda 7 жыл бұрын
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.
@JohnoScott
@JohnoScott 6 жыл бұрын
Fantastic
@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
@MrHbpatel
@MrHbpatel 7 жыл бұрын
👍 my wish u could include wall button panel powered directly without lipo , similar to thermostat
@bitluni
@bitluni 7 жыл бұрын
more projects coming :)
@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.
@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.
@alexandermyagkov7707
@alexandermyagkov7707 6 жыл бұрын
Exelent!!!
@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.
@sorhu72
@sorhu72 6 жыл бұрын
Hello how can you plug lipo directly without any resistor?
@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.
@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?
@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?
@darklord_ice
@darklord_ice 3 жыл бұрын
Great project! would you share the .stl for the case? Thaaanks :)
@bartolo1780
@bartolo1780 4 жыл бұрын
Hi, mongoose os that you use in the video is not the same as the version I download for windows?
@scottlecomte6511
@scottlecomte6511 6 жыл бұрын
THE CAT FEEDER! LOL!
@rico8192
@rico8192 7 жыл бұрын
I really like the big button. Can that be purchased somewhere or was that printed. Thanks
@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
@freeelectron8261
@freeelectron8261 5 жыл бұрын
Cool little iot button. Some would say its a bit loony but what would they know ;)
@Jajaho2
@Jajaho2 7 жыл бұрын
Nice video, thank you very much for taking the effort of making it. Really appreciate it. Btw. like the jokes.
@bitluni
@bitluni 7 жыл бұрын
Thanks!
@mmilton62
@mmilton62 6 жыл бұрын
Cool!!!
@SantaDragon
@SantaDragon 2 жыл бұрын
I like the cat feeding machine xD
@Electromaniaworld
@Electromaniaworld 6 жыл бұрын
beautiful idea. 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?
@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?
@sonaaila499
@sonaaila499 4 жыл бұрын
HELLO GREAT VIDEO
@Darieee
@Darieee 5 жыл бұрын
Beautiful - cat approves as well
@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.
@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
@CrayyyCrayyy
@CrayyyCrayyy 4 жыл бұрын
LOL Yes the Cat Feeder was the BEST :)
I made a VGA card that blew my mind
15:44
bitluni
Рет қаралды 423 М.
Smoke Detector HACK! (sends SMS now)
12:05
bitluni
Рет қаралды 81 М.
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 32 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 194 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 85 МЛН
I made a custom ASIC: World's first of its kind
16:38
bitluni
Рет қаралды 188 М.
Solar Weather Station [WiFi, MQTT, Smart Home, ESP8266]
11:06
How We Made the Internet
22:12
NationSquid
Рет қаралды 807 М.
I made a little LED Matrix and everything went wrong
14:08
bitluni
Рет қаралды 40 М.
#101 Long lasting DIY "Amazon Dash Button" using an ESP8266
6:36
Andreas Spiess
Рет қаралды 98 М.
DIY Home Security - ON A BUDGET!
9:12
DIY Perks
Рет қаралды 5 МЛН
ESP8266 as Window Sensor with years of battery life
17:57
MakerMeik
Рет қаралды 177 М.
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 10 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 2 МЛН