MQTT with ESP32 and DHT22 using Wokwi | Display on Node-Red Dashboard

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • In this video, we will see how to Simulate ESP32 Integration with DHT22 with Wokwi and send the temperature and humidity values to the Node-RED Dashboard using MQTT.
    By the end of this video, you can see the real-time changes in Temperature and humidity of DHT22 on the Node-Red Dashboard using the MQTT publish and subscribe mechanism.
    1. Setup ESP32 with DHT22 in Wokwi
    2. Add the libraries needed
    3. Upload the code
    4. Setup the MQTT publish in code
    5. Setup Node-Red
    6. Create a Node-Red Dashboard to subscribe
    7. View the Dashboard for the Temperature and Humidity values
    This can be used as IoT projects for final year students
    __________________________________________________________
    🔗Important links:
    GitHub Tutorial Link: github.com/Har...
    Wokwi Home Page: wokwi.com/
    ESP32 Pin Layout: docs.espressif...
    __________________________________________________________
    🙋Connect with Me:-
    Presenter: Hariharnath Paduchuru
    LinkedIn: / hariharnath
    WhatsApp channel: whatsapp.com/c...
    __________________________________________________________
    🎥 🎤️ My Video Equipment:-
    Boya ByM1 mic: amzn.to/3MkRMRg
    BROLAVIYA Overhead Video Mobile Stand: amzn.to/3QCpDYq
    Digitek Tripod: amzn.to/49g1Cxm
    Digitek Ring light: amzn.to/46LGwFJ
    __________________________________________________________
    🎞Curated Playlists:-
    IoT Fundamentals: • Fundamentals of IoT
    IoT Applications: • IoT Applications
    Career in IoT: • Career in IoT
    IoT Cloud Platforms: • IoT Cloud Platforms
    Azure IoT Series: • Azure IoT Tutorial Series
    Node-RED Tutorials: • Node-RED Tutorials
    __________________________________________________________
    ‪@Wokwi‬
    #mqtt #esp32 #wokwi

Komentáře • 19

  • @XD340Rafael
    @XD340Rafael Před 3 měsíci +1

    Hello, I'm here from Brazil, your video helped me a lot! Thanks!

  • @gopinathareddyambati4314
    @gopinathareddyambati4314 Před 7 měsíci +1

    Very nice 👏

  • @adebayu1428
    @adebayu1428 Před 4 měsíci +1

    hello, its a nice video, but i have a question ? do you use hivemq websocket client for MQTT broker?

    • @IoTFrontier
      @IoTFrontier  Před 4 měsíci

      Thank you. I have used 1883 port in this video which is a Tcp port. You can also use websocket port 8884 if your application demands it

    • @adebayu1428
      @adebayu1428 Před 4 měsíci

      @@IoTFrontier thankyou for the repply, i tried use websocket from hivemq but in my node red it keep disconnected, even i have configured the mqtt in, do you know why its happened?

    • @IoTFrontier
      @IoTFrontier  Před 4 měsíci

      May be you can get the answer here groups.google.com/g/node-red/c/ByzqoQdkGMI?pli=1

    • @adebayu1428
      @adebayu1428 Před 4 měsíci +1

      @@IoTFrontier thankyou alot fot helping me, have a good day

  • @eamonhannon1103
    @eamonhannon1103 Před 4 měsíci

    Where is the broker running ? Are the MQTT Broker and Wifi Connections WOKWI virtual connections ?

    • @IoTFrontier
      @IoTFrontier  Před 4 měsíci

      I have used hivemq public broker as shown in the diagram in the video. The wifi used in Wokwi is the virtual connection.

  • @lecturerintisaar3015
    @lecturerintisaar3015 Před 5 měsíci

    Sir please help me out with this question, Can u create ur own library of sensor in workwi ??

    • @IoTFrontier
      @IoTFrontier  Před 5 měsíci

      Yes that should be possible. Check out their documentation or support to learn more

    • @lecturerintisaar3015
      @lecturerintisaar3015 Před 5 měsíci

      @@IoTFrontier thank u

  • @nhanphamuc6972
    @nhanphamuc6972 Před 2 měsíci

    Sir please help me out with this question, When I enter any line, I receive nan data ? and I can't deploy it myself, because then the data returned is nan

    • @IoTFrontier
      @IoTFrontier  Před 2 měsíci +1

      There could be multiple reasons. Few of them are here
      1. Sensor might not be working
      2. Sensors connections might be loose
      Check it properly or try to use another sensor if available
      This is applicable if you are using the real sensor instead of simulator

    • @nhanphamuc6972
      @nhanphamuc6972 Před 2 měsíci

      @@IoTFrontier I copied your code, but when I press enter on any line of code, the data will be nan

  • @snehan2629
    @snehan2629 Před měsícem

    Where can I get the code?

    • @IoTFrontier
      @IoTFrontier  Před měsícem

      @@snehan2629 check the description. Follow the steps in GitHub