ESP8266 (NodeMcu) Raspberry Pi MQTT | ESP8266 Publish/Subscribe

  Рет қаралды 32,317

High Voltages

High Voltages

4 жыл бұрын

This is the 3rd video of How to MQTT series. In this video, we will learn how to subscribe and publish MQTT messages using ESP8266 (NodeMcu). We will use the Raspberry pi as Local mosquitto MQTT broker which we created in the last video.
We will read the temperature and humidity values from a DHT11 sensor using Nodemcu and publish it on topic "data", raspberry pi will subscribe to that topic and receive that data. So this can also be considered as "Raspberry pi Esp8266 Wireless communication" or "NodeMcu Raspberry pi IoT".
Get PCBs at 10% off www.nextpcb.com/
Order your projects at fiverr: www.fiverr.com/users/emmiasim67/
Read the blog and get code: highvoltages.co/iot-internet-...
code: github.com/HighVoltages/ESP82...
Full Playlist: • How to MQTT ?
Raspberry pi as MQTT broker: • Raspberry Pi as a MQTT...
ESP8266 WifiManager: • Esp8266 connect WIFI w...
Watch How to use ESP8266 with MQTT broker on a cloud.
• ESP8266 Publish/subscr...
Amazon and Banggood Purchase links:
*****************
Buy anything from amazon
amzn.to/2SGees7
Buy Arduino UNO R3
amzn.to/2zmeipW
Arduino starter kit with book
amzn.to/3cg8Svt
Raspberry pi
amzn.to/2zjiYx2
Browse Arduino products
amzn.to/2zgCLx9
Esp8266 boards
amzn.to/2WGpOo6
Arduino many in 1 sensor kit
amzn.to/3ccMvag
RFID module
amzn.to/35Ip06r
Bangood
UNOR3 Basic Starter Kits
www.banggood.com/custlink/3Dm...
Arduino 37 in 1 sensor modules
www.banggood.com/custlink/KDK...
MFRC522 RFID Reader
www.banggood.com/custlink/KK3...
Arduino Mega kit (19 % off)
www.banggood.com/custlink/vmD...
Basic Electronic kit
www.banggood.com/custlink/DmG...
RFID starter kits V2
www.banggood.com/custlink/3Km...
Nodemcu ESP8266
www.banggood.com/custlink/3GG...
DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I will receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for your support!
****************
For More Projects and Tutorials visit our Website:
www.highvoltages.co
Follow us on Facebook
/ highvoltagestech
For business enquires and sponsorships, email me
highvoltages670@gmail.com
For Arduino, Raspberry Pi, IoT, and programming projects check my Fiverr profile,
www.fiverr.com/emmiasim67
Video Tags:
ESP8266
Raspberry pi
MQTT
How to MQTT
How to esp8266 MQTT
Nodemcu
esp8266 publishing dht22 readings with mqtt to raspberry pi
esp8266 mqtt client
esp8266 mqtt tutorial
esp8266 mqtt example
esp8266 dht11 mqtt
esp8266 dht11 mqtt home assistant
nodemcu mqtt client
nodemcu mqtt home assistant
esp8266 raspberry pi wireless communication
esp8266 iot tutorial
esp8266 iot projects
esp8266 talking to raspberry pi
internet of things
#ESP8266 #RaspberryPI #MQTT #HowtoMQTT ---------------------------------------------------------------------------
BUY ELECTRONICS COMPONENTS FROM INDIA'S BEST DIY STORE
DIY Usthad Official store diyusthad.store/hv
--------------------------------------------------------------------------- Hire me on fiverr: www.fiverr.com/emmiasim67 Hire me on Fiverr: www.fiverr.com/s/z2dj0R
~-~~-~~~-~~-~
Please watch: "How to Set Up Wokwi for IoT Simulation in VS Code with PlatformIO"
• Simulating IoT project...
~-~~-~~~-~~-~

Пікірлер: 48
@HighVoltages
@HighVoltages 3 жыл бұрын
Watch How to use ESP8266 with MQTT broker on a cloud. kzbin.info/www/bejne/m4LZnXuBidGMeac
@christophdittmer5331
@christophdittmer5331 Жыл бұрын
You already know youre getting the best when the indish accent starts.
@HighVoltages
@HighVoltages Жыл бұрын
:)
@ZersoLP
@ZersoLP 3 жыл бұрын
Some comments say the music is distracting but I think its fine. Instead you should get a better microphone to hear your voice clearer over the music. Great video!
@chrisw1462
@chrisw1462 4 жыл бұрын
You have a very strong accent, to an American, and the background music is just a little too loud. Together it makes listening very hard.
@HighVoltages
@HighVoltages 4 жыл бұрын
Yes i realised that too. I will improve in my upcoming videos.
@tavreensalman9212
@tavreensalman9212 4 жыл бұрын
Well done 👍👍👍
@HighVoltages
@HighVoltages 4 жыл бұрын
Thank you! Cheers!
@JKFCV
@JKFCV 3 жыл бұрын
What is the fastest speed of communication? That is how many values per second can be transmitted?
@DJosh-cs5vx
@DJosh-cs5vx 2 жыл бұрын
Thanks
@baseladams280
@baseladams280 3 жыл бұрын
What do need to do, if the Raspberry pi and the esp32 arr not on the same wifi? In other words, how subscribe Mqtt Messages over internet? Thank you for the video!
@HighVoltages
@HighVoltages 3 жыл бұрын
I will make this video in the coming days :)
@bradlevan3121
@bradlevan3121 4 жыл бұрын
I’m using DS18b20 sensor on D2 (only pin that seems to work) & 128X32 i2c OLED to display Current temp on D1&D2. Can you assist with code? I can get each to work independently but not together. Great videos!
@HighVoltages
@HighVoltages 4 жыл бұрын
Sure, the problem you have is the sensor only works on D2 and because of that you cannot use multiple sensors ?
@bradlevan3121
@bradlevan3121 4 жыл бұрын
High Voltages DS18b20 only works (shows correct temp) on D2 yes, if I put it on any other GPIO it says it’s -120degreesF. I guess the problem is I cannot add OLED to display current temp while seeing temp reading on MQTT from DS18b20
@HighVoltages
@HighVoltages 4 жыл бұрын
@@bradlevan3121 please email me the code so i can comment.
@manalelh9660
@manalelh9660 3 жыл бұрын
taaaannkkkks ttooo muuuuch bbrroooo
@HighVoltages
@HighVoltages 3 жыл бұрын
You are welcome
@moshebensal7109
@moshebensal7109 4 жыл бұрын
Very interesting. It's not clear to me, why we need background music? This is very disturbing to me, and I'm sure many more people, Too bad.
@HighVoltages
@HighVoltages 4 жыл бұрын
Thank you for your feedback and i believe that music added with learning canhelp you learn better and i may be wrong. But if my audience finds it annoying, i will make videos wothout music. Thanks :)
@chrisw1462
@chrisw1462 4 жыл бұрын
Yes, just a little too loud, too.
@HighVoltages
@HighVoltages 4 жыл бұрын
@@chrisw1462 i will improve in the next videos, thank you for the feedback :)
@abhirupbera804
@abhirupbera804 2 жыл бұрын
Sir, How to send one digital input and receive one digital output? Say, we have two esp8266 through adafruit broker. One esp digital input will make another esp digital output high and vice versa. Please help me out.
@HighVoltages
@HighVoltages 2 жыл бұрын
you can read input from one esp8266 and publish on a topic lets say "input" and the other esp will subscribe to same topic and then whenever the other esp will recieve any data, write a code to change the output.
@abhirupbera804
@abhirupbera804 2 жыл бұрын
@@HighVoltages Sir, Please help with the code.
@mommypotatottv
@mommypotatottv 3 жыл бұрын
is there a tuto of how to link the node mcu or the gateway with cloud
@HighVoltages
@HighVoltages 3 жыл бұрын
Here it is . kzbin.info/www/bejne/m4LZnXuBidGMeac
@ezclap0379
@ezclap0379 4 жыл бұрын
Allen Pan has 100 percent been here
@Joshrp59
@Joshrp59 4 жыл бұрын
Hi, is there a way to publish to MQTT with retained flag active from this MCU?
@HighVoltages
@HighVoltages 2 жыл бұрын
yes you can.
@someonecooltech
@someonecooltech 2 жыл бұрын
so esp8266 don't have to connect to WIFI?
@HighVoltages
@HighVoltages 2 жыл бұрын
you can connect both esp8266 and pi to the same WiFi or you can use Raspberry pi as an access point and esp8266 can connect to it, in both cases they are on same network but it can work without internet.
@hayafatime8998
@hayafatime8998 3 жыл бұрын
Can we connect our local pi network to firebase to publish data?
@HighVoltages
@HighVoltages 3 жыл бұрын
Yes, we can. In the case of this tutorial, sensors are connected to a local broker i.e. Raspberry pi and raspberry pi can publish that data on firebase.
@hayafatime8998
@hayafatime8998 3 жыл бұрын
@@HighVoltages thank you.. Can u plz make a video on that as well!
@HighVoltages
@HighVoltages 3 жыл бұрын
@@hayafatime8998 Sure i will in upcoming days.
@tejaranganath9517
@tejaranganath9517 3 жыл бұрын
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Multiple libraries were found for "ESP8266WiFi.h" Used: C:\Users\Puligilla\Documents\Arduino\libraries\ESP8266WiFi Not used: C:\Users\Puligilla\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi In file included from C:\Users\Puligilla\Desktop\sketch_apr07a\sketch_apr07a.ino:1:0: C:\Users\Puligilla\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:28: fatal error: wl_definitions.h: No such file or directory #include ^ compilation terminated. exit status 1 Error compiling for board Generic ESP8266 Module. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. i am getting these errors please help me sir
@wajdibrahem7617
@wajdibrahem7617 3 жыл бұрын
the portal config won't open ! some one help me plz !
@dsdridi5362
@dsdridi5362 3 жыл бұрын
hi , ican u help me ? my esp8266 dont reconnect to mqtt broker ( on node red raspberry pi ) after when the pi reboot .
@HighVoltages
@HighVoltages 3 жыл бұрын
Are you using reconnect function in your loop body ?
@kuldipgami4442
@kuldipgami4442 4 жыл бұрын
Raspberry pi send data to nodemcu via local or globall
@HighVoltages
@HighVoltages 4 жыл бұрын
Locally, but same code can be used for global transmission using any external mqtt cloud.
@ennaiarindhal3141
@ennaiarindhal3141 3 жыл бұрын
Bro can read flow sensor Data using esp8266 raspberry pi
@HighVoltages
@HighVoltages 3 жыл бұрын
Hello, Sorry your question is unclear but as far as i understand yes you can read flow sensor data using ESP8266.
@ennaiarindhal3141
@ennaiarindhal3141 3 жыл бұрын
Ok how can i do that?
@MrBobWareham
@MrBobWareham 3 жыл бұрын
please please stop the music!!!
@HighVoltages
@HighVoltages 3 жыл бұрын
I will take care of it next time, sorry for this time :)
@SepahEMahdi
@SepahEMahdi Жыл бұрын
background music is too laud and pointless we cannot even hear you
ESP8266 Publish/subscribe to Cloud | MQTT
18:39
High Voltages
Рет қаралды 15 М.
How to Get Started with MQTT
13:38
Opto Video
Рет қаралды 399 М.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 59 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
MQTT with a Raspberry Pi and an Arduino
19:34
Gary Explains
Рет қаралды 72 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 559 М.
Raspberry Pi IoT Server Tutorial: InfluxDB, MQTT, Grafana, Node-RED & Docker
12:32
Learn Embedded Systems
Рет қаралды 215 М.
Compare Versions and Types of NodeMCU ESP8266 Boards
6:33
BINARYUPDATES
Рет қаралды 48 М.
#255 Node-Red, InfluxDB, and Grafana Tutorial on a Raspberry Pi
16:31
Andreas Spiess
Рет қаралды 253 М.
Simple ESP32 IoT Sensor Node Tutorial: WiFi Enabled MQTT Sensor Data Node
10:58
Learn Embedded Systems
Рет қаралды 49 М.
15 Brilliant IoT Projects for Beginners!
9:25
ToP Projects Compilation
Рет қаралды 794 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 272 М.
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН