Home Automation based on Local MQTT server using Raspberry Pi and NodeMCUBoard | ESP8266 Projects

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • JLCPCB Prototype for $2(Any Color): jlcpcb.com
    This video shows how you can turn your Rapsberry pi 3B board as a Local MQTT server and using that we can control our home appliances and monitor multiple sensors locally on our smart phone.
    _________________________________________________________________
    Buy the components from here
    Buy electronic components from utsource online store: www.utsource.net"
    Raspberry Pi 3B kit(UTsource) - (goo.gl/E3S4iM)
    ESP8266 12e development board(NodeMCU) from HiLetgo (goo.gl/EyLQxM)
    5V Relays (amzn.to/2ChddQC)
    1n4007 Diode (amzn.to/2EM4IuD)
    BC547 transistors (amzn.to/2oiTbfV)
    330ohm resistors (amzn.to/2ojg8zN)
    16 channel analog multiplexer module (amzn.to/2CVawDI)
    PIR motion sensor (amzn.to/2EK1OX2)
    MQ35 sensor
    Sound Sensor (amzn.to/2HCYO0z)
    Light Sensor (amzn.to/2CcBAPr)
    DHT11 Temperature and Humidity sensor(amzn.to/2sPh3fO)
    7805 Regulator IC (amzn.to/2CdUvcq)
    9V Power Adapter (amzn.to/2CfffAL)
    2 pin PCB mount terminal (amzn.to/2EM5Luz)
    _________________________________________________________________
    Important Links
    Raspbian OS - (www.raspberrypi.org/downloads...)
    SD card formatter - (www.sdcard.org/downloads/form...)
    Etcher - (etcher.io/)
    Article on my Website - techiesms.com/home-automation...
    MQTT Dashboard application - (goo.gl/vN44B4
    )
    _________________________________________________________________
    if you love watching my videos and interested in learning new new projects,then donate me at PayPal so that I can do it forever and better then before.
    www.paypal.me/techiesms
    _________________________________________________________________
    Code & Library
    goo.gl/AzbyJX
    _________________________________________________________________
    Subscribe Now :- bit.ly/techiesms_youtube
    Facebook page of Best ATL :- / bestatl
    Facebook :- / techiesms
    Twitter :- / imtechiesms
    Instagram :- / techiesms
    Website :- www.techiesms.com
    WhatsApp number :- +91 82000 79034
    _________________________________________________________________
    #techiesms
    explore | learn | share
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 90

  • @Akshaychaturvedi1
    @Akshaychaturvedi1 5 ปีที่แล้ว

    Great video. Just one question, how can I run MQTT server script on pi and listen to some of the data flowing on the same pi and take action against it. For example, the temperature sensor data can be used to turn on the fan connected via relays to Raspberry Pi.
    Also had a doubt regarding the port number. There must be some file you ran for a broker on PI? Can you please elaborate on that?

  • @sanjeev44
    @sanjeev44 5 ปีที่แล้ว

    One Word ----> Brilliant👌👌

  • @os-channel
    @os-channel 8 หลายเดือนก่อน

    Hi techiesms,
    what a great project! It works properly.
    I would like to setup a MQTT project with one ESP32 as a subscriber and another ESP32 as publisher. The broker should be a local RasPi standalone as Broker-Server creating its own WLAN without connection to the Internet via Router or Access Point.
    Can you give me hints how to do this?
    The handling of the ESP32 should be easy. But with the RasPi I have got my problems to combine the installed Mosquitto and the WLAN-Server capabilities.
    Do you have this setup described in one of your courses? (Please without NodeRed.)
    Thanks!
    Oli

  • @RailyardProductions
    @RailyardProductions 4 ปีที่แล้ว

    How would I control some stepper motors with your code and the esp8266 nodemcu board. My steppers are very small and I’m hoping to control them without using a motor shield. Can I use MQTT to send the correct commands?

  • @jeromegalleon1382
    @jeromegalleon1382 5 ปีที่แล้ว

    Sir, can you make automatic transfer switch between the grid and solar panel?

  • @Donny_DL
    @Donny_DL ปีที่แล้ว

    hi, can I command relays also when my phone are disconnected to my wifi? or it work only in local, when all is connected to wifi?

  • @dompower500
    @dompower500 5 ปีที่แล้ว

    Excellent tutorial

  • @vamsikrishna9825
    @vamsikrishna9825 5 ปีที่แล้ว +1

    hi techiesms
    how many nodemcus we can connect to the raspberry pi????

  • @vipul-pawar
    @vipul-pawar 5 ปีที่แล้ว

    very much useful it is like IOT offline

  • @Leo-sy4mi
    @Leo-sy4mi 5 ปีที่แล้ว +2

    Great video!!
    I am gonna try myself as well. I am thinking to use ESP32 instead.
    Any changes to your setup (using ESP8266) that I need to be aware?

  • @harsheetchordiya1773
    @harsheetchordiya1773 3 ปีที่แล้ว +1

    cant we make this to be controlled by anywhere like can we connect the raspberry pi to the interner??

  • @saurabhpatil2311
    @saurabhpatil2311 5 ปีที่แล้ว

    @techiesms can you please tell how to configure the same setup with home assistant , I have pcb ready and it does work with the app and I want to make it work with homeassistant and alexa.
    Kindly tell how it can be done .

  • @krishnawa_
    @krishnawa_ 5 ปีที่แล้ว

    Great tutorial👍👌

  • @someonecooltech
    @someonecooltech 2 ปีที่แล้ว

    Thank you for your sharing, is this project require a router? or the Raspberry pi is an access point?

    • @techiesms
      @techiesms  2 ปีที่แล้ว +1

      we require a router

  • @YouTube-i9
    @YouTube-i9 4 ปีที่แล้ว

    Is it possible to do local and remote mqtt server in the same device ?

  • @rishabhshah8845
    @rishabhshah8845 5 ปีที่แล้ว

    awesome video bro 👍👍

  • @eriklaken1025
    @eriklaken1025 5 ปีที่แล้ว +1

    Thank you :)

  • @tahirjamal1720
    @tahirjamal1720 4 ปีที่แล้ว

    How can we connect two or more nodemcu (esp8266) with a single raspberry pi??

  • @reni_christian
    @reni_christian 3 ปีที่แล้ว

    Best explanation.

  • @RCshizzle
    @RCshizzle 5 ปีที่แล้ว

    Excellent tutorial! Will this setup allow remote control through the cloud from outside the home?

  • @deepakagrawal9654
    @deepakagrawal9654 5 ปีที่แล้ว

    Superbbbbbbb...!!! 👏👏👏👏👏

  • @ajaybnl
    @ajaybnl 5 ปีที่แล้ว

    Thanks for sharing.

  • @MrKrazydude12345
    @MrKrazydude12345 4 ปีที่แล้ว

    Hi how to make it work if i wanna replace the phone app with a button on raspberrry pi

  • @jasonliew2678
    @jasonliew2678 3 ปีที่แล้ว

    This cannot be work if I connect each of my component to different network?

  • @dineshbobburu4743
    @dineshbobburu4743 3 ปีที่แล้ว

    Great Explanation!! If we consider real time scenario and if we are making a product then how are we gonna connect esp32's acting as a subscriber to the Raspberry PI acting as MQTT broker, as the esp32 code can't be updated again and again when IP address of broker change, can you please clarify this doubt and mobile app will be interacting with the MQTT broker as publisher to MQTT broker, Thanks in advance...

  • @ramut3362
    @ramut3362 5 ปีที่แล้ว

    so can u pls share how to make the connections of raspiberry pi an and node mcu

  • @SDIWAKAR
    @SDIWAKAR 5 ปีที่แล้ว

    i want to do the same thing by using pubsubclient library in place of adfruit_mqtt_client , how can i do that what will be code for that..??

  • @seyyedamirhossein7778
    @seyyedamirhossein7778 3 ปีที่แล้ว

    hi , can we write a public ip from another mqtt server instead of this ip?
    please help

  • @woodywood1951
    @woodywood1951 5 ปีที่แล้ว

    Hello.
    I like your videos, but I got an error: unknown option -m
    Why?
    Thanks.

  • @CharudattUplap
    @CharudattUplap 5 ปีที่แล้ว

    Could you please also cover NODE-RED+MQTT+Raspberry Pi and ESP8266

  • @mohamedsiddik0
    @mohamedsiddik0 3 ปีที่แล้ว

    Thanks for sharing, is there any APP for IOS?
    Could you please !!!

  • @Kwikwik
    @Kwikwik 2 ปีที่แล้ว

    can we implement alexa into this?

  • @vamsikrishna9825
    @vamsikrishna9825 5 ปีที่แล้ว

    hello there thanks for this video. please make a video on how to install multiple mqtt brokers on raspberry pi3 i.e example mosquitto mqtt broker and aws iot using broker bridging .

  • @mountrat
    @mountrat ปีที่แล้ว

    Can u please help me to design PCB layouts professionally? I want to get a professional course for that

  • @tejaswinim4139
    @tejaswinim4139 4 ปีที่แล้ว

    Can we use breadboard instead of PCB for connections?? Please do help we have to work on that project.

  • @RahulSingh-wq3sr
    @RahulSingh-wq3sr 5 ปีที่แล้ว

    How can i take this over the internet?
    Do i need static ip or port forwarding for that in my router?

    • @techiesms
      @techiesms  5 ปีที่แล้ว

      Watch this th-cam.com/video/9dxEdDDb_gE/w-d-xo.html

  • @ppgg997
    @ppgg997 4 ปีที่แล้ว

    I think the project is kinda simple but very interesting, and your video explained it very well! I want to build something like that but beeing able to connect to the network from the internet. I dont want to expose a port on my router actually:( I there an other way??
    Also i want to have a server like rasberry and nothing cloud based because i want to be robust and can work offline too:) Thanks if you can suggest something it would help a lot!

    • @qwarlockz8017
      @qwarlockz8017 4 ปีที่แล้ว +1

      setup an openvpn server in your network. Setup openvpn client on your phone. click the button and your phone is back in your network safely

    • @ppgg997
      @ppgg997 4 ปีที่แล้ว

      @@qwarlockz8017 Will look into it! Thanks!

  • @acevedod
    @acevedod 7 หลายเดือนก่อน

    Sir, could you please consider making a tutorial/video to control these relays with the raspberry pi but using the Arduino Iot Cloud and the API they provide for the mqqt broquer exchange

  • @anishmulukutla5777
    @anishmulukutla5777 5 ปีที่แล้ว

    How can I connect this to google assistant?

  • @MPElectronique
    @MPElectronique 5 ปีที่แล้ว

    Hi.
    Will it work outside your house ?
    Thanks.
    Marc.

    • @techiesms
      @techiesms  5 ปีที่แล้ว

      depends on you routers coverage area
      It will work till you are connected with your router

    • @qwarlockz8017
      @qwarlockz8017 4 ปีที่แล้ว

      @@techiesms put openvpn on your phone and you can control it safely from anywhere

    • @IoTwithVaibhav
      @IoTwithVaibhav 3 ปีที่แล้ว

      @@techiesms yes if we connect with global server like broker.hivemq.com

  • @RealElaineee
    @RealElaineee 5 ปีที่แล้ว

    Personally speaking, pcbway's service makes me feel more secure because their service rep is more responsive and I can get any information I want on their website.

  •  4 ปีที่แล้ว +1

    thanks

  • @TechnologyWithSaikat
    @TechnologyWithSaikat 4 ปีที่แล้ว

    Sir, if we connect our local server to internet means we can access globally right?

  • @harryiotdeveloper7307
    @harryiotdeveloper7307 5 ปีที่แล้ว

    You can use node red

  • @vipulkamble9702
    @vipulkamble9702 5 ปีที่แล้ว +3

    Please show us how do you design nodemcu PCB (kindly request)

    • @ryanbarrera2595
      @ryanbarrera2595 5 ปีที่แล้ว

      Yes that is also something I really wanted to know.

    • @techiesms
      @techiesms  5 ปีที่แล้ว

      I’ll be making a video on designing pcb soon

    • @ajaybnl
      @ajaybnl 5 ปีที่แล้ว

      Download Diptrace and learn on youtube. Its a piece of cake.

  • @arijitbag10
    @arijitbag10 5 ปีที่แล้ว

    that code is working in opposite direction i.e it is turning off in 1 value and turning on in 0 value

  • @TheCarbys
    @TheCarbys 5 ปีที่แล้ว +1

    Personally i prefer to use blynk server in local network.

  • @technolabcreation
    @technolabcreation 5 ปีที่แล้ว

    👌👌👌👌

  • @rajpalpatil274
    @rajpalpatil274 4 ปีที่แล้ว +1

    can we make hybrid like online as well as offline.....Online we have a lot of option but when the internet is gone there is a lot of issue. So trying to find a solution to make it work offline as well as online.....hope the question make sense ......thank you for the info though great work keep it up.

    • @hitenlulla2713
      @hitenlulla2713 2 ปีที่แล้ว

      Did you get a solution to this problem?

  • @pravinraj201
    @pravinraj201 5 ปีที่แล้ว

    I tried using with the 4 channel relay module,but all the relays are turned automatically on when I power the nodemcu and switching buttons on turns off the relay ...please help with the code ...what code to change ?

    • @techiesms
      @techiesms  5 ปีที่แล้ว

      Change the the connections from NC to NO or viceversa

    • @pravinraj201
      @pravinraj201 5 ปีที่แล้ว

      @@techiesms where Sir ,is it in the code ? Or physically through wire?

    • @techiesms
      @techiesms  5 ปีที่แล้ว

      Wires

    • @pravinraj201
      @pravinraj201 5 ปีที่แล้ว

      @@techiesms but sir it may look odd then , I want to know why its working reverse on 4 channel relay board and would like to know how through code this can be solved , thanks for replying

  • @woodywood1951
    @woodywood1951 5 ปีที่แล้ว

    not working: no such file, etc...

  • @amitgupta-or5nm
    @amitgupta-or5nm 4 ปีที่แล้ว

    my mqtt dashbaord app is not connecting with server.....showing error

    • @IoTwithVaibhav
      @IoTwithVaibhav 3 ปีที่แล้ว

      Server is offline try another global server like broker.hivemq.com

  • @artisingh9165
    @artisingh9165 3 ปีที่แล้ว

    Techiesms team
    Please show excel data to publish and subscribe using mqtt

  • @vimalbethuraj3915
    @vimalbethuraj3915 2 ปีที่แล้ว

    bro what is your graduation......?
    coz.. to discuss with my parents abt ur graduation

    • @techiesms
      @techiesms  2 ปีที่แล้ว +1

      B.E in Electronics and Communication

    • @vimalbethuraj3915
      @vimalbethuraj3915 2 ปีที่แล้ว +1

      @@techiesms thank you

  • @fibranijevidra
    @fibranijevidra 2 ปีที่แล้ว

    The article on your website does not exist.

    • @techiesms
      @techiesms  2 ปีที่แล้ว

      techiesms.com/home-automation-based-on-local-mqtt-server-using-raspberry-pi-and-nodemcu-board/

  • @user-le1fn1tx3h
    @user-le1fn1tx3h 5 ปีที่แล้ว

    Где бы посмотреть пример скетча?

    • @homosanians
      @homosanians 5 ปีที่แล้ว

      там же ссылка в описании есть

  • @robomakers8982
    @robomakers8982 5 ปีที่แล้ว

    Blynk is more compitable for you

  • @alpha_pixel_
    @alpha_pixel_ 4 ปีที่แล้ว

    Does it work on raspberry pi 4

  • @Rishabhmadanvlogs
    @Rishabhmadanvlogs 3 ปีที่แล้ว

    website hack ho gai kya aapki???

    • @techiesms
      @techiesms  2 ปีที่แล้ว

      techiesms.com/home-automation-based-on-local-mqtt-server-using-raspberry-pi-and-nodemcu-board/