#263

  Переглядів 11,842

Ralph S Bacon

Ralph S Bacon

День тому

A simple (and cheap) way to send a WhatsApp message to your (and others') phone.
PCBWay - up to 60% off Flex/Rigid PCBs pcbway.com/
All code and more information in my GitHub:
bit.ly/ESP32_WhatsApp_Demo
So you need your ESP32 (or other Internet-connected system) to "phone home" and let you know there is a problem? This simple method of using WhatsApp may be the answer for you.
For hobbyists, it is ridiculously inexpensive ($4 per YEAR) and easy to implement.
For businesses, or those with a more complex required, there are very affordable plans to allow messaging any phone and receiving replies, or button clicks and much more!
I've included some simple (albeit not secure, nor encrypted) code as an example but we'll update this as part of the ESP32 HTML series of videos I'm doing.
All code and more information in my GitHub:
bit.ly/ESP32_WhatsApp_Demo
Links to CallMeBot.com
► CallMeBot: www.callmebot.com/blog/free-a...
► TextMeBot: textmebot.com/
► Twilio: www.twilio.com/en-us/whatsapp...
► CallMeBot Subscription options
Code
The code you will find in a separate folder in my GitHub; but bear in mind the URLEncode library may have to be installed separately (especially on the Arduino IDE). Go to *Sketch* → *Include Library* → *Manage Libraries* and search for *URLEncode* library by **Masayuki Sugahara**. Simples.
Other Stuff
► AD-11 Advanced Solderless Breadboard (with Terminals)
bit.ly/3LUnsNJ
► List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
bit.ly/UKpostsVideoList-RalphB...
All code and more information in my GitHub:
bit.ly/ESP32_WhatsApp_Demo
► If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite (and other μControllers) journey
My channel, GitHub and blog are here:
------------------------------------------------------------------
• / ralphbacon
• ralphbacon.blog
• github.com/RalphBacon
• buymeacoffee.com/ralphbacon
------------------------------------------------------------------
My ABOUT page with email address: / ralphbacon

КОМЕНТАРІ: 99
@blic-sx9ix
@blic-sx9ix Рік тому
I have heard the expression "and Bob's your uncle" before but never knew its origins. I asked Alexa and she informed me it has something to do with one of your Prime ministers, Lord Salisbury, that gave a plush appointment to one of his nephews. Thanks Ralph for another informative video.
@monoamiga
@monoamiga Рік тому
I needed that knowledge! ;) Thanks!
@RalphBacon
@RalphBacon Рік тому
I never knew the source of that expression (nor do I remember saying it in this video, it's just part of UK everyday speech, I suppose) but always good to know!
@willofirony
@willofirony Рік тому
I like the thought of conversations, i.e. a two way link. Then, given the software to respond to an incoming message at the ESP32 end, could switch your heating off for you, even if you were down at B&Q when you received the warning. As to cost, in your heating example, the link could pay for itself and reducing your carbon footprint is for free! Well done you, Ralph.
@RalphBacon
@RalphBacon Рік тому
Your suggestion sounds good, Michael. I'm sure there are countless ways this could be used to good effect.
@dougbarber600
@dougbarber600 Рік тому
Great Video Ralph
@RalphBacon
@RalphBacon Рік тому
Glad you enjoyed it, Doug.
@ronen124
@ronen124 Рік тому
thanks Ralph for teaching us your new findings...
@RalphBacon
@RalphBacon Рік тому
My pleasure!!
@veedonfleece3694
@veedonfleece3694 Рік тому
once again, exceptionally clear and interesting. Well done!
@RalphBacon
@RalphBacon Рік тому
Glad you enjoyed it!
@user-zz1pz8fo8t
@user-zz1pz8fo8t 2 місяці тому
Hello Ralph, thanks a lot for your job,
@RalphBacon
@RalphBacon Місяць тому
My pleasure!
@himdimzma
@himdimzma Рік тому
Great video and a great channel
@RalphBacon
@RalphBacon Рік тому
Thank you very much!
@monoamiga
@monoamiga Рік тому
Cool video! Just one remark: %20 is not 'twenty'. Twenty is %14. %20 is 'two-zero' since it's not decimal.
@RalphBacon
@RalphBacon Рік тому
Well, strictly speaking yes. In the same way we should not say 1 point seventy-five for 1.75 when it is one point seven five, but in everyday colloquial speak I think it's OK.
@briansmith7015
@briansmith7015 Рік тому
Hi Ralph. I use a sim800 board with a nano and a 1p mobile sim (texts are 1 p each). The big advantage is sms's go straight to phone where as messenger services seem to go to sleep if the phone is left motionless for a while. I've migrated the whole lot onto a pi 4 and node red but the basics are simple. Luv the videos, thanks. B.
@RalphBacon
@RalphBacon Рік тому
Sounds like a good alternative method, Brian. But I get WhatsApp messages regardless of what my phone does (it keeps running in the background, I'm assuming). Anyway, as long as we have some sort of messaging system running it's all good!
@steverileyretired
@steverileyretired Рік тому
Cool idea, thanks
@RalphBacon
@RalphBacon Рік тому
Glad you like it!
@theonlymudgel
@theonlymudgel Рік тому
I prepared the list first. - Missed by that much. G'day Ralph. Hope you're well.
@RalphBacon
@RalphBacon Рік тому
You never miss, thanks for the files!
@garrett798
@garrett798 Рік тому
Think I am going to have to make a couple of panic buttons for my elderly in-laws. Hopefully works with 8266 so I can keep small add a covered toggle switch, Cr2032 battery and you have a pocketable device for those help I've fallen and can't get up moments. Keep up the great content, I get a lot of great Ideas from your channel.
@RalphBacon
@RalphBacon Рік тому
I know that the ESP32 is a bit too heavy on sleep current for a CR2032 battery so the ESP8266 may fare better. Or check out the ESP32 single-core alternatives(which are replacements for the ESP8266, says Espressif) which might have lower currents. Or, do what I do with my Storage Bin Lid devices and have the current totally switched off by using a SI4599 dual MOSFET. The button is then used to switch it all on, send the message and auto-switches off when done.
@garrett798
@garrett798 Рік тому
@@RalphBacon was actually planning on the device activates on toggle switch on and sends message and perhaps lights led when sent. Not as elegant as the MOSFET but was just going to have returning the toggle switch to turn off. By the way in laws are in Heidelberg just a bit from Stuttgart.
@RalphBacon
@RalphBacon Рік тому
I nearly went to university in Heidelberg (Ich hab' mein Herz in Heidelberg verloren) but eventually ended up going to Marburg and studied (amongst other things) FORTRAN 😮😁😂
@fillempie1501
@fillempie1501 Рік тому
I am using XMPP for this. Old school but works :)
@RalphBacon
@RalphBacon Рік тому
Still running is it, that old "Extensible Messaging and Presence Protocol". As long as it works, it works!
@Jokel39
@Jokel39 Рік тому
Hi, thanks for the video! Is it possible to use an ethernet shield instead of wifi? Can you do a video with an ethernet board ? Thanks a lot
@RalphBacon
@RalphBacon Рік тому
You can certainly use an Ethernet shield for an Arduino UNO (and I've done video #74 on that ukposts.info/have/v-deo/fmKeeqKEjbCJkYE.html ) but you can't (easily) plug in that shield to an ESP32.
@joramotorsportteam3277
@joramotorsportteam3277 Рік тому
Super! Where is the link to Your heating project?
@RalphBacon
@RalphBacon Рік тому
Either video #225 ukposts.info/have/v-deo/bqCnk66peYN7lIU.html or video #222 ukposts.info/have/v-deo/sHpphWmwqnlpsmw.html and there are GitHubs for them both.
@scottstevens7569
@scottstevens7569 Рік тому
Great info and opens ideas for sure. :) I use a tablet and phone with no# to communicate with esps, over wifi, so likely the apps signal is over phone provider rather than wifi internet.?
@scottstevens7569
@scottstevens7569 Рік тому
Seems Telegram is worth looking into.😀
@RalphBacon
@RalphBacon Рік тому
Well, the signal to request the WhatsApp message is sent via a standard URL (so Wi-Fi plus Internet) but the WhatsApp message itself is sent to the phone via the the Internet (but still [optionally] using the Internet). My mum's tablet works like this, no SIM required.
@darktherapy
@darktherapy Рік тому
I’d love to see this as an OctoPrint plug-in to notify me of finished prints or print failures etc.
@RalphBacon
@RalphBacon Рік тому
That would be cool! Also Prusa-Link is now being developed (it now allows transfer of g-code to Prusa printer over WiFi or Ethernet) so a "run this command when finished" would be great. I might suggest it to them (and take the credit 😲)
@egonsvensson2728
@egonsvensson2728 Рік тому
Hello Ralph! I use IFTTT for the same type of applications. They have loads of different applets and services depending on what you want to do. You can create 5 applets for free without paying a cent. The applets sends me a mail with text I choose if the burglar alarm goes off and for when the postbox is opened, for example. It sends out mails instantly and works flawlessly. :)
@RalphBacon
@RalphBacon Рік тому
IFTTT (If This Then That) is a great system, Egon, and I've played with it. But this is just a simple bolt-on standalone service that I'm bringing to everyone's attention.
@ChrisGlasow
@ChrisGlasow 3 місяці тому
Hi Ralph, Great project, but could you direct me to the full code, to include local SSID etc? or have I missed something?
@RalphBacon
@RalphBacon 2 місяці тому
My demo code is usually in my GitHub for the video, in this case here: github.com/RalphBacon/263-WhatsApp-for-your-ESP32-and-others If you need more, shout loudly, Chris!
@marcelobenitezabc
@marcelobenitezabc Рік тому
Hi..excelent video..thanks so much.... However..I can not find the 4 euros/year offer...do you now if it's gone? (sorry..I know this is not your bussiness..but I hoped you could help) thank you..
@RalphBacon
@RalphBacon Рік тому
Let me check... hmmm, that's strange. There is now no mention of any fee whatsoever for the CallMeBot service, so maybe, just maybe, he raised enough money and now provides the service completely free, like he did when I first started using it. Failing that, you could contact him 🤷‍♂️ if you need to be absolutely sure.
@WagonLoads
@WagonLoads 11 місяців тому
Could you please make a video to address all of the problems I list below? I have been designing PCBs in KiCad for a couple years. Nothing produced yet... because I hit a roadblock at the very fundamental level.. esp modules like (esp12F, esp32s, esp32-S3-1U) and others need "Strapping resistors". one example says to put strapping resistors on pins that are not listed in the datasheet pinout.. also, the above esp32 do not all have GPIO21 and GPIO22 used for i2c.. I heard that you can assign i2c to almost any pin on a esp32.. but I'm not sure if any of the above have pins forbidden to use for i2c. It would be nice if there was a master look-up table for strapping resistor pins.. and i2c pins on devices that don't have GPIO21/22 Last question is on footprints Some parts I have no clue what size to use... Like the Stemma QT connector
@RalphBacon
@RalphBacon 11 місяців тому
I hear your frustration and pain, but that brick wall in front of you is, in fact, just made of sand and can be easily knocked down. When you refer to "esp modules... like esp32s..." are you referring to the actual dev module boards (typically look like this: s.click.aliexpress.com/e/_DCC19nj ) that I often show in my projects? If so, you don't need any extra resistors but you do have to be aware of which pins are strapping pins. This is partially documented here bit.ly/431GQO1 and I notice that he has updated his information after my rant that keeping GPIO 2 high at boot meant that I could not upload code! How annoying! (I might have said it more in the vernacular than that at the time). My updated "Which ESP32 pins to use" can be found here: github.com/RalphBacon/260-ESP32-Web-Pages-Part-2 but also look at the RandomNerds page too as that gets updated too. I can't believe you're using "bare" ESP32 WROOM or WROVER modules like this bit.ly/3pNP668 as my question would be, why? Let me know!
@wolfberrinhos7068
@wolfberrinhos7068 Рік тому
Thank you, Very good Video. Interesting service, and I agree, very cheap. Do you know something like that, but for SMS ?
@Mr.Leeroy
@Mr.Leeroy Рік тому
GSM modules, e.g. SIM800, SIM7600, etc.
@wolfberrinhos7068
@wolfberrinhos7068 Рік тому
@@Mr.Leeroy Thanks.
@wolfberrinhos7068
@wolfberrinhos7068 Рік тому
@@Mr.Leeroy It is a solution, but it is a lot more expensive, even using a prepaid SIM, it is necessary to recharge it times to times to keep it active. It Costs a lot more that 4$ per year. I' m looking for something like an free/cheap SMS gateway. I` ve found some but not at this price.
@RalphBacon
@RalphBacon Рік тому
Not that I know of - not free (almost) anyway. But as Leeroy mentions you can easily build a GSM module and get a SIM card for messaging that _does not expire_ at the end of a period.
@wolfberrinhos7068
@wolfberrinhos7068 Рік тому
​@@RalphBaconThanks
@josephchamness9915
@josephchamness9915 Рік тому
You can't use the WhatsApp API (or whatever he uses) directly?
@YTDUDE
@YTDUDE Рік тому
you can register a meta dev account and do the same from there without exposing your number to unknown third parties. but you need to get your homework done there as well ;)
@RalphBacon
@RalphBacon Рік тому
You just need to register your phone to get the API key.
@mahudson3547
@mahudson3547 Рік тому
Good stuff! I have just been wrestling with https to post data from an esp8266. Easy if you don't encrypt it. But a challenge otherwise. Settled for fingerprint for now but the idea of it expiring is a pain. Really look forward to how you resolve it (you will, won't you??!!)
@RalphBacon
@RalphBacon Рік тому
You can always use encrypted https but "insecure" which means the server's certificate isn't checked (mostly good enough for IoT type stuff). I'll be talking more about this in a future video (that HTML Part 4 I mentioned).
@AleksandrIvin
@AleksandrIvin Рік тому
Nice video. Would you consider to use Telegram?
@geoffw.5003
@geoffw.5003 Рік тому
Agree with you, using Telegram for this type of thing is a much better solution. No need to mess about with a man in the middle site or the hassle/risk of having to pay a yearly sub. Also at a quick glance, I dont think callmebot allows for msgs back to control the ESP32. If you use Telegram you can send control msgs back in the other direction
@Leif_YT
@Leif_YT Рік тому
I would also recommend Telegram. Used it for many projects and its very solid, official API, good libraries and no fees.
@RalphBacon
@RalphBacon Рік тому
I've never used Telegram but I'll put it on the list. I was specially interested in the use of WhatsApp here.
@Mr.Leeroy
@Mr.Leeroy Рік тому
Better support Pushover. No subscriptions there.
@RalphBacon
@RalphBacon Рік тому
Sounds cool. Here's the link for everyone: pushover.net/
@VLandrew
@VLandrew Рік тому
I perfer using pushover
@RalphBacon
@RalphBacon Рік тому
Another worthy alternative.
@yogeshitaliya473
@yogeshitaliya473 Рік тому
😍😍😍😍😍
@RalphBacon
@RalphBacon Рік тому
Great to see you here Yogesh! 🥇
@henkbloemink5322
@henkbloemink5322 Рік тому
I use telegram with the free built in bot
@RalphBacon
@RalphBacon Рік тому
Yes, that works well too.
@lilbuzz999
@lilbuzz999 Рік тому
I use Telegram bot as well. It works great for me. I needed something that plays the text notification sound even when the phone is in sleep mode as I have my refrigerator door sensor tell me its been left open. Ridiculous side-by-side doors - close one, and the air pressure pops the other open. Great video as usual Ralph!
@b.c.5024
@b.c.5024 Рік тому
Two phone numbers and the API key were clearly visible. Social engineering or just bad edits?
@RalphBacon
@RalphBacon Рік тому
Bad edits. Could you send me the time codes via email please?
@b.c.5024
@b.c.5024 Рік тому
​@@RalphBacon Sent you a WhatsApp message using the url, phone, and key provided in this video.
@RalphBacon
@RalphBacon Рік тому
Got it. I'm going to have to cut a second or so from the video and blur some other stuff. Let this be a lesson to me! Thanks for doing this. 👍
@RalphBacon
@RalphBacon Рік тому
Sigh. "There was a problem in processing your video. As a result, your recent edits were not saved." Very helpful message. Not.
@b.c.5024
@b.c.5024 Рік тому
@@RalphBacon Grab a new API key. No need to obscure it then. Phone is still visible. That may mean a re-upload.
@fooballers7883
@fooballers7883 Рік тому
thanks...
@RalphBacon
@RalphBacon Рік тому
You're welcome!
@rivierafoncier2671
@rivierafoncier2671 7 місяців тому
Hey perfect video. Please how can I contact you I have some questions 🙏🏼
@RalphBacon
@RalphBacon 7 місяців тому
Just post your (technical) questions here!
@doctorteeth
@doctorteeth Рік тому
My IDE does not like #include
@RalphBacon
@RalphBacon Рік тому
"Does not like", you say, Steve? The exact error message would be helpful here. Perhaps you need to install the library first? But which IDE are you using anyway?
@doctorteeth
@doctorteeth Рік тому
@@RalphBacon Using Arduino IDE 2.0.4, but I have discovered that because I am using ESP8266, I have to use #include instead. All ok now thanks!
@RalphBacon
@RalphBacon Рік тому
Happy you found the issue!
#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.
26:39
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 503 тис.
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Переглядів 12 млн
NO NO NO YES! (40 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:27
PANDA BOI
Переглядів 81 млн
Nonomen funny video😂😂😂 #magic
00:29
Nonomen ノノメン
Переглядів 60 млн
Секретная разработка КГБ! Волга «Догонялка» на V8…
1:07:10
Мастерская Синдиката
Переглядів 2,4 млн
GMRS Tips for Beginners to Maximize Your Range
8:27
Citizen Survival Plan
Переглядів 422
#BB9 Organising your code🧹for easier debugging and maintenance✅
18:45
#363 Which ESP32 pins are safe to use?
11:53
Andreas Spiess
Переглядів 123 тис.
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
#257 Wireless Serial Comms⚡for your Arduino (or other μController)
29:40
PlatformIO: All you need to know in 10 Minutes!
10:56
J's e-shack
Переглядів 277 тис.
#266 ESP32 Deep Sleep Project - Door Open/Closed Detection with ESP-NOW
25:18
451 Which Processor can kill the ESP32?
11:24
Andreas Spiess
Переглядів 330 тис.
Watch gravity pull two metal balls together
12:47
Steve Mould
Переглядів 4,7 млн
Changing Replace And Edit Backgrounds New Tech || Photo Eedit NEW3X
0:50
МОЙ ПЕРВЫЙ ТЕЛЕФОН - Sony Erricson T280i
18:02
ЗЕ МАККЕРС
Переглядів 54 тис.
The Worst Product I've Ever Reviewed... For Now
25:04
Marques Brownlee
Переглядів 7 млн
Клавиатура vs геймпад vs руль
0:47
Balance
Переглядів 338 тис.