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

  Рет қаралды 54,501

techiesms

techiesms

Күн бұрын

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

Пікірлер: 91
@sanjeev44
@sanjeev44 6 жыл бұрын
One Word ----> Brilliant👌👌
@vipul-pawar
@vipul-pawar 6 жыл бұрын
very much useful it is like IOT offline
@dompower500
@dompower500 5 жыл бұрын
Excellent tutorial
@krishnawa_
@krishnawa_ 6 жыл бұрын
Great tutorial👍👌
@rishabhshah8845
@rishabhshah8845 6 жыл бұрын
awesome video bro 👍👍
@eriklaken1025
@eriklaken1025 6 жыл бұрын
Thank you :)
@ajaybnl
@ajaybnl 5 жыл бұрын
Thanks for sharing.
@reni_christian
@reni_christian 4 жыл бұрын
Best explanation.
@deepakagrawal9654
@deepakagrawal9654 6 жыл бұрын
Superbbbbbbb...!!! 👏👏👏👏👏
@Leo-sy4mi
@Leo-sy4mi 5 жыл бұрын
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?
@fantomgaming9018
@fantomgaming9018 2 жыл бұрын
Why going for expensive?
@CharudattUplap
@CharudattUplap 6 жыл бұрын
Could you please also cover NODE-RED+MQTT+Raspberry Pi and ESP8266
@RCshizzle
@RCshizzle 5 жыл бұрын
Excellent tutorial! Will this setup allow remote control through the cloud from outside the home?
@techiesms
@techiesms 5 жыл бұрын
No
@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?
4 жыл бұрын
thanks
@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 .
@jeromegalleon1382
@jeromegalleon1382 6 жыл бұрын
Sir, can you make automatic transfer switch between the grid and solar panel?
@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 жыл бұрын
we require a router
@rajpalpatil274
@rajpalpatil274 4 жыл бұрын
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?
@saurabhpatil2311
@saurabhpatil2311 6 жыл бұрын
@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 .
@vamsikrishna9825
@vamsikrishna9825 5 жыл бұрын
hi techiesms how many nodemcus we can connect to the raspberry pi????
@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?
@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
@os-channel
@os-channel 10 ай бұрын
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
@RealElaineee
@RealElaineee 6 жыл бұрын
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.
@acevedod
@acevedod 9 ай бұрын
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
@TheCarbys
@TheCarbys 6 жыл бұрын
Personally i prefer to use blynk server in local network.
@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?
@YouTube-i9
@YouTube-i9 5 жыл бұрын
Is it possible to do local and remote mqtt server in the same device ?
@technolabcreation
@technolabcreation 6 жыл бұрын
👌👌👌👌
@MrKrazydude12345
@MrKrazydude12345 4 жыл бұрын
Hi how to make it work if i wanna replace the phone app with a button on raspberrry pi
@harryiotdeveloper7307
@harryiotdeveloper7307 5 жыл бұрын
You can use node red
@jasonliew2678
@jasonliew2678 4 жыл бұрын
This cannot be work if I connect each of my component to different network?
@vipulkamble9702
@vipulkamble9702 6 жыл бұрын
Please show us how do you design nodemcu PCB (kindly request)
@ryanbarrera2595
@ryanbarrera2595 6 жыл бұрын
Yes that is also something I really wanted to know.
@techiesms
@techiesms 6 жыл бұрын
I’ll be making a video on designing pcb soon
@ajaybnl
@ajaybnl 5 жыл бұрын
Download Diptrace and learn on youtube. Its a piece of cake.
@harsheetchordiya1773
@harsheetchordiya1773 3 жыл бұрын
cant we make this to be controlled by anywhere like can we connect the raspberry pi to the interner??
@goonline6882
@goonline6882 2 ай бұрын
I think no because everything should be connected with same wifi and globally it's not possible
@tahirjamal1720
@tahirjamal1720 4 жыл бұрын
How can we connect two or more nodemcu (esp8266) with a single raspberry pi??
@anishmulukutla5777
@anishmulukutla5777 5 жыл бұрын
How can I connect this to google assistant?
@SDIWAKAR
@SDIWAKAR 6 жыл бұрын
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
@arijitbag10
@arijitbag10 6 жыл бұрын
that code is working in opposite direction i.e it is turning off in 1 value and turning on in 0 value
@woodywood1951
@woodywood1951 5 жыл бұрын
Hello. I like your videos, but I got an error: unknown option -m Why? Thanks.
@mohamedsiddik0
@mohamedsiddik0 3 жыл бұрын
Thanks for sharing, is there any APP for IOS? Could you please !!!
@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 жыл бұрын
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!
@Kwikwik
@Kwikwik 2 жыл бұрын
can we implement alexa into this?
@tejaswinim4139
@tejaswinim4139 5 жыл бұрын
Can we use breadboard instead of PCB for connections?? Please do help we have to work on that project.
@techiesms
@techiesms 5 жыл бұрын
Yes you can
@mountrat
@mountrat 2 жыл бұрын
Can u please help me to design PCB layouts professionally? I want to get a professional course for that
@RahulSingh-wq3sr
@RahulSingh-wq3sr 6 жыл бұрын
How can i take this over the internet? Do i need static ip or port forwarding for that in my router?
@techiesms
@techiesms 6 жыл бұрын
Watch this kzbin.info/www/bejne/b5Xbdpd6eceSnac
@TechnologyWithSaikat
@TechnologyWithSaikat 4 жыл бұрын
Sir, if we connect our local server to internet means we can access globally right?
@harsheetchordiya1773
@harsheetchordiya1773 3 жыл бұрын
i have the same question did u find out?
@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
@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
@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
@woodywood1951
@woodywood1951 5 жыл бұрын
not working: no such file, etc...
@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/
@vimalbethuraj3915
@vimalbethuraj3915 2 жыл бұрын
bro what is your graduation......? coz.. to discuss with my parents abt ur graduation
@techiesms
@techiesms 2 жыл бұрын
B.E in Electronics and Communication
@vimalbethuraj3915
@vimalbethuraj3915 2 жыл бұрын
@@techiesms thank you
@artisingh9165
@artisingh9165 3 жыл бұрын
Techiesms team Please show excel data to publish and subscribe using mqtt
@robomakers8982
@robomakers8982 6 жыл бұрын
Blynk is more compitable for you
@user-le1fn1tx3h
@user-le1fn1tx3h 6 жыл бұрын
Где бы посмотреть пример скетча?
@homosanians
@homosanians 5 жыл бұрын
там же ссылка в описании есть
@Therishabhmadan
@Therishabhmadan 4 жыл бұрын
website hack ho gai kya aapki???
@techiesms
@techiesms 2 жыл бұрын
techiesms.com/home-automation-based-on-local-mqtt-server-using-raspberry-pi-and-nodemcu-board/
@alpha_pixel_
@alpha_pixel_ 4 жыл бұрын
Does it work on raspberry pi 4
@techiesms
@techiesms 4 жыл бұрын
Yes
@alpha_pixel_
@alpha_pixel_ 4 жыл бұрын
@@techiesms thankuu
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 33 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 26 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,4 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Easy MQTT Server Setup
7:35
bitluni
Рет қаралды 207 М.
Controlling everything with Node-RED dashboard via MQTT
13:36
techiesms
Рет қаралды 81 М.
MQTT Broker/Bridge on the ESP8266
17:28
Martin Ger
Рет қаралды 81 М.
Raspberry Pi IoT Server Tutorial: InfluxDB, MQTT, Grafana, Node-RED & Docker
12:32
Learn Embedded Systems
Рет қаралды 215 М.
Home automation that's private and local?! (Home Assistant Yellow)
19:49
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 11 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 487 М.