No video

DIY Home Automation - ESP32, Raspberry Pi, Node Red, MQTT, Smart House || IoT Project - Part 1

  Рет қаралды 63,963

Boris Dusnoki

Boris Dusnoki

5 жыл бұрын

JLCPCB Prototype for $2(Any Color): jlcpcb.com
!!!! IMPORTANT !!!! Please use version 1.0.0 of the ESP32 board from the board manager.
Check out my first attempt at a DIY Home Automation project.
With this small box I could control my tv, led strip, sound system and lights. It would also monitor the inside humidity and temperature as well as get real time data from an external API for the outside humidity and temperature and display them nicely in a graph. I even save all these values to a local database and display those values in a chart based on the date I choose.
Part 2: Code and Node Red Explanation - • DIY Home Automation - ...
ESP32:
y.sudokin.com/e... - AliExpress
y.sudokin.com/b... - Banggood
y.sudokin.com/a... - Amazon US
y.sudokin.com/a... - Amazon UK
y.sudokin.com/a... - Amazon DE
Raspberry Pi Zero W:
y.sudokin.com/rpzw - AliExpress
y.sudokin.com/b... - Banggood
y.sudokin.com/a... - Amazon US
y.sudokin.com/a... - Amazon UK
y.sudokin.com/a... - Amazon DE
HTU21D Temperature and Humidity Sensor:
y.sudokin.com/h... - AliExpress
y.sudokin.com/b... - Banggood
y.sudokin.com/a... - Amazon US
y.sudokin.com/a... - Amazon UK
y.sudokin.com/a... - Amazon DE
1838 IR Receiver:
y.sudokin.com/1838 - AliExpress
y.sudokin.com/b... - Banggood
y.sudokin.com/a... - Amazon US
y.sudokin.com/a... - Amazon UK
y.sudokin.com/a... - Amazon DE
Female Pin Headers:
y.sudokin.com/ph - Aliexpress
y.sudokin.com/auph - Amazon US
y.sudokin.com/akph - Amazon UK
y.sudokin.com/adph - Amazon DE
Soldering station:
y.sudokin.com/auss - Amazon US
y.sudokin.com/akss - Amazon UK
y.sudokin.com/adss - Amazon DE
Software Links:
Raspberry Pi Image - y.sudokin.com/d...
EasyEDA Project - y.sudokin.com/h...
Gerber Files - y.sudokin.com/h...
Github Project Repository - y.sudokin.com/h...
Arduino ESP32 Github Repository - y.sudokin.com/a...
Arduino IDE - www.arduino.cc...
Etcher - www.balena.io/...
Node Red Admin address: ip-address-to-raspberry-pi:1880
username: admin
password: password
Node Red UI address: ip-address-to-raspberry-pi:1880/ui
username: user
password: password
Raspberry pi user: pi
Raspberry pi password: password
→Support the channel via Patreon, Paypal, Bitcoin, Etherium or by visiting affiliate links
sudokin.com/do...
Follow me on LBRY:
y.sudokin.com/...
Follow me on Twitter & Instagram and my blog:
/ dusnoki
/ dusnoki
sudokin.com
Or hop on to my Discord channel:
/ discord
Thanks for watching, and I hope you learned something ;)

Пікірлер: 76
@vegavega9399
@vegavega9399 4 жыл бұрын
Svaka čast na trudu i odlično urađenom tutorijalu,puno sreće u narednim prijektima. Bravo !
@cncmachineguy1
@cncmachineguy1 3 жыл бұрын
The image for the pi seems to be deleted. Do you have another image or do we need to install all the bits and pieces now?
@JoshuaSeagroves
@JoshuaSeagroves 5 жыл бұрын
Great video! Very well put together overview. Can't wait to see where you break it down into more details.
@dusnoki
@dusnoki 5 жыл бұрын
Thanks so much! It really means a lot. Gonna make a live stream where I go into the details of the code and the node red setup. Also going to publish the video on how I setup the raspberry pi if someone is interested.
@lanmi70
@lanmi70 5 жыл бұрын
Sjajno odradjeno, odlican tutorijal. Cestitam i zelim ti puno uspeha sa projektom.
@dusnoki
@dusnoki 5 жыл бұрын
Hvala Vam lepo. Jako je puno truda uloženo i puno znači dobar komentar :)
@lanmi70
@lanmi70 5 жыл бұрын
@@dusnoki Stvarno je odlicno i potpuno te razumem koliko ti je truda trebalo. Ja sam moj projekat radio ko crnac godinu dana, i razmisljam kuda dalje :) lanmisoft.com
@joeglass8431
@joeglass8431 5 жыл бұрын
Thatk you for doing all the hard work for us! Great Video!
@dusnoki
@dusnoki 5 жыл бұрын
Glad I could help :) and you like it
@originalhotrodder4337
@originalhotrodder4337 5 жыл бұрын
Great work Boris! Thank you for sharing. Going to watch your next videos on it for further detail.
@dusnoki
@dusnoki 5 жыл бұрын
Thanks man. It really means a lot.
@MsRodaroda
@MsRodaroda 4 жыл бұрын
Well done!! Congrats! I will be using sone of your tips!
@sarthakvarshney
@sarthakvarshney 2 жыл бұрын
Nice work buddy.
@Tony455HO
@Tony455HO 5 жыл бұрын
Great video Boris.. subbed and watching the rest of videos. Cheers.
@dusnoki
@dusnoki 5 жыл бұрын
Thanks man, I really appreciate it :)
@josemuygay8851
@josemuygay8851 4 жыл бұрын
This video is really great! You deserve more subscribers
@dusnoki
@dusnoki 4 жыл бұрын
Thanks man. I really appreciate it. Shame I don't have time to make new videos lately cause of work. But maybe soon :)
@Mariyana
@Mariyana 5 жыл бұрын
Can't wait for you to install this in our house ❤️
@dusnoki
@dusnoki 5 жыл бұрын
Soon :)
@collinpillay7173
@collinpillay7173 Жыл бұрын
Well Done mate , great job. The PI image and Gerber has been deleted . Would you mind , please updating the file for us . Looking forward . Please let know . Thanks again.
@casualrider9435
@casualrider9435 Жыл бұрын
Thank you for the vid. I want to do automation projects where the controls can be manipulated on a web-enabled devise that is not on the same wifi network as the esp32. How can I do that?
@brunojesus4994
@brunojesus4994 4 жыл бұрын
Awesome video! Thanks for sharing! It was very instructive. I still not saw the second video, but I have some "noob doubts" that I'll appreciate if you could help me. I don't have an HTU21D Temperature and Humidity Sensor, instead, I have a DHT11 sensor. Is it much more difficult to adapt the code for this sensor? Unfortunately, I don't have a Relay Board too, is it possible to use the same code to run, or I should do some changes to use just the protoboard? Thanks again!
@eliudsmarlin
@eliudsmarlin 5 жыл бұрын
Can I use Raspberry Pi 3 instead of the Pi Zero? Will the image work as is?
@dusnoki
@dusnoki 5 жыл бұрын
Yes you can, but I don't know if the image itself will work. I have made a detailed more recent video on how to install raspbian, mqtt, node red... on the raspberry pi (headless even), so you can check out that video if you wish. It also uses Peter Scargill's script. The only thing you are going to have to setup is the flow itself which you have in the github repo. kzbin.info/www/bejne/oYPZf5-Jf9hjfsk here is the link of the video.
@baseladams280
@baseladams280 3 жыл бұрын
Thank you for the video. how to send the MQTT messages over the internet and not only over the local network?
@muhammadatif1696
@muhammadatif1696 4 жыл бұрын
Please share the Raspberry Pi image again. It's not available in the provided link. It has been removed. Looking forward to it. Thanks!
@Roottech25
@Roottech25 4 жыл бұрын
is the ESP32 for connecting the relay board to the Raspberry PI? that part was not clear
@ngoranbedes6811
@ngoranbedes6811 5 жыл бұрын
Nice work good spirit Is it possible to do this same project without the ESP 32
@dusnoki
@dusnoki 5 жыл бұрын
Probably yes, with the esp8266. Just curious what you have against he esp32 :)
@HasanAYousef
@HasanAYousef 3 жыл бұрын
Great work, thanks
@dnyaz5622
@dnyaz5622 5 жыл бұрын
Hi Boris, Could you briefly explain how you store the DHT data in the SQL database?
@dusnoki
@dusnoki 5 жыл бұрын
You can check out part two of my video where I explain in more detail the code, node red setup and everything.
@sunitapatil381
@sunitapatil381 4 жыл бұрын
Thank you so much sir for this beautifull vedio thank you
@vunnamprasad
@vunnamprasad 5 жыл бұрын
Hi Boris, Do you have circuit diagram for this? BTW it's an excellent video :)
@dusnoki
@dusnoki 5 жыл бұрын
Hey man. Thanks i really appreciate it. You have a link in the description. The easy eda project. You can find the circuit diagram and the pcb layout there as well. Hope it helps. There is also a part two where I dive deeper into the code and node red.
@vunnamprasad
@vunnamprasad 5 жыл бұрын
@@dusnoki yep I've seen it. Thanks :)
@mcdls5
@mcdls5 5 жыл бұрын
Amazing work Boris. This is a fantastic template for the kind of automation I want to do. What are you using for your screen capture software and for your editing?
@dusnoki
@dusnoki 5 жыл бұрын
Thanks man it really means a lot. OBS studio is used for recording. And I use Adobe premiere Pro for editing and Adobe after effects for the animations. Also a bit of Photoshop and illustrator :)
@mcdls5
@mcdls5 5 жыл бұрын
I could go on and on about how really good this post is but I don't English too good. You see, I'm an American. :) What I like about what I see here is that you packaged the whole system together in a way people can emulate. And by people, I mean me. It's well thought out. It's scalable. It's a good base for additions. Besides the project being something to emulate, your work and your post are also.
@dusnoki
@dusnoki 5 жыл бұрын
Thanks man for the support :) this is a prototype and wouldn't use it for more than maybe the room temperature reading and ir controls. I'll be making a more real life solution with a proper relay board and explanation on my house that is being built at the moment. So will keep you posted how it's going and what I learned along the way.
@SyedAliNasir
@SyedAliNasir 4 жыл бұрын
Kindly share the circuit diagram.
@pistifesus1785
@pistifesus1785 5 жыл бұрын
Would you mind to share the flow? I am curious about historical weather data. I would love to see some of my weather stations display the data like yours. Thanks.
@dusnoki
@dusnoki 5 жыл бұрын
It's there in the github page. It has evolved a bit until then cause I added grafana support but it should still be viable.
@pedjanbgd4221
@pedjanbgd4221 5 жыл бұрын
Odlican video, Jel ti se isplati izrada sopstenog kucista 3D stampanjem, I kolika bi bila cena narucivanja preko JLCPCB-a DHL-om za srbiju da li je zaista 44.62$ shipping a PCB 2$?
@dusnoki
@dusnoki 5 жыл бұрын
E ne pitaj me za DHL molim te... Sad se svadjam sa njima neće da mi odobre komponente koje su mi poslali sa lcsc.com za novi projekat jer ih ima kao 600 komada pa misle da hoću da ih preprodajem(smd komponente neće ni da šalju neke manje od 100 komada) . Plus naplatice mi troškove spedicije(3500 din) i jos troškove carine i pdv(ne verujem ispod 1000). Tako da toplo bih ti preporucio naručivanje preko Obične pošte. Malo će duže trajati ali bice bezbolnije i mnoooogo jeftinije.
@pedjanbgd4221
@pedjanbgd4221 5 жыл бұрын
@@dusnoki Kad bi prodavao gotov KIT ne bih mogao komponente bi te jedino kocile.
@dusnoki
@dusnoki 5 жыл бұрын
A sto se tice 3d štampanja. Ne znam kolko bi me izašlo. Ovo svakako nije gotov proizvod već samo prototip modula. Kad bih pravio gotov proizvod ne bih koristio dev ploču već bih napravio redovnu ploču sa integrisanim esp32. Ali ovo vise radim iz hobija i jer me interesuje a i da pomognem drugima koji žele da udji u ove vode malo. Posto sam dosta toga morao da kopam po netu na raznim stranama.
@markosisak
@markosisak 5 жыл бұрын
Pozdrav Boris, odličan video! sviđa mi što daješ instrukcije kako što napraviti i samim time pomažeš hrpi ljudi koji počinju se time baviti da shvate principe. Da li si probao Home Assistant ( www.home-assistant.io/)? Ukoliko nisi toplo preporučam, jer ima support za jaaako puno proizvoda i meni je idealan kao centralni "hub" koji povezuje različite uređaje kao što su xiaomi, philips hue, node-red za automatizaciju, mqtt, esp8266 i slično. Sve u svemu velika podrška za ovakve videe i nadam se da češ nastaviti sa detaljnim videima.
@dusnoki
@dusnoki 5 жыл бұрын
Hvala puno. Mislim da sam već gledao home assistant nedavno ali nisam mogao još i njega da ubacim u ovaj video jer bi bio predugačak. Gledajte na ovaj video kao početak serijala o home automation. Biće ih još, kao i live streamova :) hvala još jednom na podršci i lepim recima. Stvarno puno znači
@denishd4706
@denishd4706 5 жыл бұрын
@@dusnoki Baš se radujem nadolazećim videima, jer i mene u poslednje vreme baš zanima kućna automatizacija! Samo napred! 😀🔝🔝
@robertparenton7470
@robertparenton7470 5 жыл бұрын
Thank You!
@desparky
@desparky 4 жыл бұрын
Thanks for sharing Boris. I've only recently discovered Node Red and this almost exactly what I intend to set up. Unfortunately the link to the Raspberry Pi image no longer works. Is it available anywhere? Cheers from Australia.
@dusnoki
@dusnoki 4 жыл бұрын
I would highly recommend installing rasbian from scratch using my tutorial. kzbin.info/www/bejne/aJjZg4mXfd2bjZY
@desparky
@desparky 4 жыл бұрын
Thanks Boris. I'll follow your lead. Cheers.
@rajpalpatil274
@rajpalpatil274 4 жыл бұрын
@@dusnoki Can this Image be installed on Raspberry Pi4 B ????
@juanrobertocuellarlozano5646
@juanrobertocuellarlozano5646 5 жыл бұрын
I downloaded the image and the dietpi.txt file is nothing like what you show in the video, i cannot change to which wifi network its going to connect
@dusnoki
@dusnoki 5 жыл бұрын
Yes I'm aware of this issue. That's why I created a new video how to install raspbian headless with Peter scargills script. You can check it out. Unfortunately, dietpi doesn't allow changing of WiFi after the fact. kzbin.info/www/bejne/aJjZg4mXfd2bjZY
@juanrobertocuellarlozano5646
@juanrobertocuellarlozano5646 5 жыл бұрын
@@dusnoki Thank you so much for the info
@ssabt12
@ssabt12 4 жыл бұрын
Hi.. would you like to collaborate with me and extend the software capability of this?
@denishd4706
@denishd4706 5 жыл бұрын
Ovu kombinaciju RPi -ja i NodeRed -a ću i ja jednog dana implementirati.. ali ne kontam bas kako se podesava node red.. moze neki video tutorijal i na tu temu? 😁 I ako bi mogao da stavis titlove na srpskom za svaki klip.. posto te preko 50% ne razumem.. jer mi engleski nije bas jaca strana.. a verovatno da ima jos takvih.. 😁😂
@JocinaKujna
@JocinaKujna 5 жыл бұрын
Staviću titlove čim stignem. A što se tiče node red-a. Pravicu live stream gde ću objašnjavati kako sam sve povezao ali na engleskom. Iskreno, Puno experimentisanja. I ako želiš da naučiš više stvari. Engleski je nažalost must have.
@denishd4706
@denishd4706 5 жыл бұрын
@@JocinaKujna Hahah znam.. ali ne ide.. 😂 Ovako iz knjige da strebam, nema sanse, slabo ja to zapamtim.. Najbolje bi bilo ovako kad igram razne igre, pa usput i slušam šta se priča.. i onda bih vremenom naučio (kao i većina mojih drugara).. ali na žalost, još uvek nisam sklopio računar, koji može da podrži igre koje me zanimaju.. (uglavnom ove najnovije, koje usput traze zverku do kompa)
@JocinaKujna
@JocinaKujna 5 жыл бұрын
Exelent video thanks 🌴🍾🍾🍾🍾🍾
@colinpamplin9976
@colinpamplin9976 5 жыл бұрын
Thanks for a really interesting video. However I cannot login to the dietpi installation, I have downloaded your .zip and used Etcher. Tried pi/password root/password etc. and nothing works. Any ideas? Is there a link to the node red flow?
@dusnoki
@dusnoki 5 жыл бұрын
Hey man, thanks for writing. I've just tried it now, it seems to work with pi/password. Haven't changed any passwords Node Red Admin address: ip-address-to-raspberry-pi:1880 username: admin password: password Node Red UI address: ip-address-to-raspberry-pi:1880/ui username: user password: password Raspberry pi user: pi Raspberry pi password: password The flow.json is there in the github repo. github.com/dusnoki/esp32-home-automation-mqtt Hope it helps... If you still can't login hop on to my discord channel discord.gg/Aef4VRc , I'll try and help you out when I find the time. I'll upload a new version of the dietpi that is updated with the newest flow.
@dijoxx
@dijoxx 4 жыл бұрын
Why do you say the relay is for low-power devices? It can very well accommodate higher power devices as well. Also, you really did not need a Raspberry PI for this project.
@denishd4706
@denishd4706 5 жыл бұрын
Inace, ja od nedavno pokusavam nesto sa Node.js da programiram.. meni je zanimljivije, da sve preko koda odradim.. 😁😂
@JocinaKujna
@JocinaKujna 5 жыл бұрын
Ja node.js programiram na poslu za backend. Kao i react.js za frontend :D
@dusnoki
@dusnoki 5 жыл бұрын
Inace ne pitaj zasto mi je mobilni odlucio da odgovaram sad drugog profila :D
@jacob.9664
@jacob.9664 5 жыл бұрын
$44 for shipping what?
@dusnoki
@dusnoki 5 жыл бұрын
Yeah that is shipping to Serbia via DHL. I know. A bit steep. In comparison, to the US it around $17 with DHL. Depends on the countries prices for shipping. There are other shipping methods available as well. Check the site for more details on the shipping cost to your country.
@jacob.9664
@jacob.9664 5 жыл бұрын
@@dusnoki Ah ok i feel bad for you. Good video btw :)
@dusnoki
@dusnoki 5 жыл бұрын
It's not this site particular. DHL has poopy rates to Serbia from anywhere. Thanks though :)
@balhoto
@balhoto 4 жыл бұрын
Nice. If you've got a litecoin wallet i'm keen to provide donations
@dusnoki
@dusnoki 4 жыл бұрын
sudokin.com/donate/ Don't have a Litecoin wallet but some ETH and BTC, also some other ways to donate. It is always appreciated and thank you in advance :)
These sound illusions fool almost everyone
24:55
Veritasium
Рет қаралды 1,5 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 31 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 564 М.
Monitor Room Temperature Remotely with Arduino & MQTT
15:23
Gary Explains
Рет қаралды 21 М.
What is an MQTT Broker Clearly Explained
10:11
Opto Video
Рет қаралды 190 М.
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Рет қаралды 816 М.
How to Run Linux on an ESP32
18:53
element14 presents
Рет қаралды 153 М.
12 Amazing ESP32 Projects explained in 9 minutes!
9:28
ToP Projects Compilation
Рет қаралды 373 М.
How to use MQTT in Node-Red: basics, examples, tip & tricks
29:21
Csongor Varga
Рет қаралды 40 М.