Best IoT Project 🔥🔥 using ESP32 and Sensor with Fan Dimmer | Alexa Google Home Automation 2022

Sdílet
Vložit
  • čas přidán 10. 07. 2024
  • In this ESP32 tutorial, I have explained how to make the best IoT Project using ESP32 and DHT11 sensor with fan dimmer to control appliances from ESP RainMaker, Google Assistant, Alexa, IR Remote, and manual switch. I have used all the FREE tools for this IoT-based home automation system.
    To try out the FREE trial version of Altium, click here - www.altium.com/yt/techstudycell
    During the internet of things tutorial video, I covered the following topics:
    00:48 Control relays with Google Assistant and Alexa using ESP32.
    01:06 Control ceiling fan speed with voice command.
    01:25 Control lights fan manually with IR remote and switches.
    04:12 Required components for the IoT projects.
    04:19 Circuit diagram of ESP32 IoT project.
    06:03 Source codes for the IoT Project using ESP Rainmaker.
    07:40 Update WiFi details through OTA with the Rainmaker app.
    08:42 Add IoT devices in Amazon Alexa App.
    09:08 Add IoT devices to the Google Home app.
    Required Components (without PCB) for the ESP32 project.
    1. ESP32 DEV KIT V1
    2. 8-channel 5V SPDT Relay Module
    3. TSOP1838 IR receiver (with metallic casing)
    4. DHT11 temperature sensor
    5. Switches
    6. 4-step Fan regulator
    OR
    (2.2uf & 3.3uf 250V Capacitor, 2.2-ohm 1/2W Resistors, 220k 1/4W Resistors, and 4-step selector switch)
    For the PCB, I have shared the complete component list during the video.
    Amazon India Affiliate links:
    ESP32: amzn.to/331pohb
    8-channel 5V Relay Module: amzn.to/3mTWyVZ
    Echo Dot Alexa(4th Gen): amzn.to/3srCiPA
    Amazon United States Affiliate links:
    ESP32: amzn.to/3mBjCch
    8-channel 5V Relay Module: amzn.to/3p50UeH
    Help my projects on Patreon: / techstudycell
    Feel free to donate any amount: paypal.me/sdaspay
    Download the Code for the ESP32 IoT project with ESP Rainmaker from the following article:
    iotcircuithub.com/esp32-iot-p...
    Download the PCB Gerber File of the ESP32 IoT Project:
    iotcircuithub.com/wp-content/...
    Important points:
    1. You don't need any Amazon echo device for this IoT Project.
    2. You need to install ESP Rainmaker, Google Home, and Amazon Alexa apps on mobile.
    3. You can control relays from any WiFi network if ESP32 is connected to WiFi.
    4. Update the Preference URLs to install the ESP32 board version 2.0.5 as shown in the video.
    5. Before scanning the QR code, press and hold the ESP32 BOOT button for 4 seconds, then scan the QR code.
    6. IR receiver sensor must have a metallic casing. Otherwise, you may face issues while trying to get the Hex code.
    7. In the 4-step regulator step-2 & 3 must be internally connected.
    8. Please watch the complete video, otherwise you may face some issues.
    **Please take proper safety precautions while working with high voltages.
    Previous Video links:
    Previous ESP32 Project: • The SMARTEST Home Auto...
    Get the HEX codes from IR remote: • Smart Home with Amazon...
    During the internet of things tutorial video, I explained all the steps to make this IoT-based project, and how to connect ESP Rainmaker with Google Home and Amazon Alexa app.
    As I have used capacitive reactance for the fan dimmer circuit, so you will not get any humming sound while controlling the fan speed.
    You can control the lights and fan speed without internet from the IR remote & switches. ESP32 will automatically connect with the IoT cloud when the internet comes back.
    You can also add timer in the ESP Rainmaker app to control the relays automatically.
    If the ESP32 is connected to Wi-Fi, then you can control the relays from anywhere in the world with Alexa and Google Assistant. And you can also monitor the real-time feedback and sensor reading in the Amazon Alexa and Google Home IoT applications. So with this smart house project, you can convert any appliance to IoT devices and control them through the internet.
    So, now you can just ask Google Assistant, "Hey Google, turn off lights", or "Alexa, turn on light". that's it.
    #iotprojects #homeautomation #esp32
    -----------
    Thanks For Watching...
    ✅ SUBSCRIBE ✅LIKE ✅SHARE ✅ COMMENTS
    Find out more projects: iotcircuithub.com/
    Facebook: / techstudycell
    Instagram: / techstudycell
    Telegram: t.me/techstudycell/
    -----------
    -----------
    WARNING:
    This video is for demonstration and educational purposes only.
    Each demonstration presents risks and hazards that must be fully understood before attempting.
    And should be performed only by professionals
    -----------
    Other useful IoT projects:
    Latest ESP32 projects playlist:
    • ESP32 Projects
    Latest NodeMCU projects playlist:
    • NodeMCU Projects
    Arduino Home Automation Projects playlist:
    • Arduino Projects
  • Věda a technologie

Komentáře • 204

  • @TechStudyCell
    @TechStudyCell  Před rokem +6

    If you want to buy this complete project (🔥Rs: 3399🔥), then please send an email to connect.techstudycell@gmail.com with your address.
    (Including pre-programmed ESP32, DHT11 sensor, IR receiver, 1 selector Switch, IR remote)

    • @mehuld4223
      @mehuld4223 Před rokem +2

      want to buy only pcb..price ?

    • @monojitbiswas3679
      @monojitbiswas3679 Před rokem +1

      Hello this is monojit . I am using the esprainmaker app but its not reliable the signal just gets disconnected frequently and esp32 is also facing some problem. Can this same programme be done in adrino cloud iot with fan speed control. As before you have made only switching with adrinocloud can i also add fan speed control in adrino cloud please make a video based on adrino cloud with fan speed control

    • @simomoaatasim1258
      @simomoaatasim1258 Před rokem

      I want to buy only PCB i can or not

    • @09eeashishkumar72
      @09eeashishkumar72 Před rokem

      Hello sir how to meet this type of pcb and where

    • @ersamresh6899
      @ersamresh6899 Před rokem

      Only pcb prise kya hai and ager complete package dete hai to warrenty bhi hogi kya

  • @sunman778
    @sunman778 Před rokem

    Каждое видео на вес золота. Ты просто гений. Ждём твои шикарные разработки . Спасибо за труд.

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

    You're doing a great job bro

  • @sohinideb7843
    @sohinideb7843 Před rokem

    Well explained...thanks for sharing

  • @deodatusmaliti7790
    @deodatusmaliti7790 Před rokem +1

    Many thanks broh

  • @rohitpawar2394
    @rohitpawar2394 Před rokem +1

    Thanks sir

  • @Romiqtiink
    @Romiqtiink Před rokem

    wow what a brilliant and inspiring idea. if you add a motor to the curtain it will definitely be more interesting.

  • @bruhmetsaiharnet6595
    @bruhmetsaiharnet6595 Před rokem +1

    excellent,

  • @vishnubajoria60
    @vishnubajoria60 Před rokem

    Thanks for the long awaited project.

  • @AbhishekSharma-nz7nz
    @AbhishekSharma-nz7nz Před rokem +1

    Hi,
    I have a question regarding ESP 32.
    Rainmaker turns on/off the lights but if we want to design different colors? or designs ,what else do we need ?
    example in the picture in an SPI mode
    serial peripheral mode to make the color & design.

  • @rubialugattimoreira1978

    Perfect! 👏👏👏
    Let me sugest a topic, rainmaker + sonoff DIY

  • @Sahilgaming-rj4km
    @Sahilgaming-rj4km Před rokem +1

    Nice project

  • @aniketpol1502
    @aniketpol1502 Před rokem

    Great video brother... Awesome...!

  • @vishaljain6130
    @vishaljain6130 Před rokem

    Dear, Happy Diwali.
    At last I succeed. Earlier I have done mistake now rectified. But in Google App, Fan speed can't control neither through app nor voice commands but through Alexa all things are happening through app as well as voice command. Really beauty of Home Automation. If possible, please try for Google also so that fan speed can be controlled as Alexa.
    Thank you very much to share your knowledge.

  • @norules7142
    @norules7142 Před rokem +1

    Please do include the internal bluetooth option as during powersurge or internet issues at that time also we can control using Bluetooth..

  • @60pluscrazy
    @60pluscrazy Před rokem +1

    Excellent 🙏

  • @arewatec
    @arewatec Před rokem

    hello engineer, I really need help on fan manual control i need only 2 bottom control instead of 4, I mean up and down only. thank you.

  • @paulvincentlinda8083
    @paulvincentlinda8083 Před rokem

    Nice vids always👍🏼

  • @contalivreemaberto1385
    @contalivreemaberto1385 Před rokem +2

    Good Morning
    Dear
    I really like your video they are excellent and very didactic and functional. Congratulations.
    Please, could you make another video teaching how to use the thermostat function in Rainmaker
    With DS18B20 or and also with DHT22/11
    I thank you in advance

  • @jittaweemetesirorat7577
    @jittaweemetesirorat7577 Před rokem +1

    good

  • @dattatrayaapte280
    @dattatrayaapte280 Před rokem

    Thanks a lot for this excellent project. Can you please tell how to add WS2812S (Addressable) LED Strip and modify the program for rain maker

  • @nawinlifehacks9978
    @nawinlifehacks9978 Před rokem

    Excellent 👌👌👌👌

  • @jnanendrakumarrout1127

    Sir, can I do the same with ESP 32 node MCU development board. Please reply.
    Thanx and great salute for sharing your knowledge

  • @arifbadboy6706
    @arifbadboy6706 Před rokem

    can i yous this poject 8realy switch and estra fan speed up down controll

  • @hk0954
    @hk0954 Před 9 dny

    Pls make same video with adding inbuilt esp32 blootooth control also

  • @imransajid7615
    @imransajid7615 Před rokem +1

    Wow

  • @TechMechRobo
    @TechMechRobo Před rokem

    I really like all of your projects❣️ Can you please make same project but using firebase and Mit app inventor.

  • @tanmoythakur2483
    @tanmoythakur2483 Před rokem

    Keep it up bro.......

  • @gamingwithsolo4542
    @gamingwithsolo4542 Před 3 měsíci

    Hello sir I am from India. I watch all your videos. I wanted to know a solution from you. That is, if you create a home automation system with ESP Rainmaker, you can use five appliances and one fan, and you can also make the system controllable with push buttons. Please make a video about it I am waiting for you. ❤️❤️

  • @ravikantakate16
    @ravikantakate16 Před 9 měsíci

    Sir, can we connect the display for monitoring time and temperature and humidity.

  • @aravindhanvivekanandhan5649

    Best videos expect more 😃👍👍

    • @TechStudyCell
      @TechStudyCell  Před rokem

      More to come!

    • @aravindhanvivekanandhan5649
      @aravindhanvivekanandhan5649 Před rokem

      ​@@TechStudyCell you always do same project with different type of method and version and i love it but can u do different so everybody likes GAS LPG FIRE sensor very important for household To avoid cylinder blast

  • @TechnoSAP
    @TechnoSAP Před rokem +1

    👍👍

  • @anokhautomation4453
    @anokhautomation4453 Před rokem

    Very nice project 👍

  • @subhodipmondal777
    @subhodipmondal777 Před rokem

    Please make a video on 60amp MPPT smart charge controller

  • @vipinvg2048
    @vipinvg2048 Před rokem

    Can you make smart IR blaster

  • @iamrafic
    @iamrafic Před rokem

    Excellent project Bro, highly requested project.
    Can you make a new video to incorporate preferences.h library with esp8266?

    • @TechStudyCell
      @TechStudyCell  Před rokem +1

      Already made video on ESP8266 and preferences.h

  • @aniketpol1502
    @aniketpol1502 Před rokem

    Sir, please can you make the same code but without the sensors part... Just switches and fan speed control

  • @monojitbiswas3679
    @monojitbiswas3679 Před rokem

    Hello this is monojit . I am using the esprainmaker app but its not reliable the signal just gets disconnected frequently and esp32 is also facing some problem. Can this same programme be done in adrino cloud iot with fan speed control. As before you have made only switching with adrinocloud can i also add fan speed control in adrino cloud please make a video based on adrino cloud with fan speed control

  • @imransajid7615
    @imransajid7615 Před rokem

    I'm waiting this video with fan dimmer

  • @omaromar1953
    @omaromar1953 Před rokem

    Sir i have a question, why three relays are connected to the fan? Also why there’s filters on these three relays?

  • @koteswararaoneelapu3432

    WOW ALL FEATURES AVILABULE IN THE SKETCH ,EXCELENT BROW U R MY BEST TECHNICAL CZcamsR WELDONE THANKYOU

  • @myelectroniclab
    @myelectroniclab Před rokem

    Sir ap arduino ide ka kon sa version use kar rahy ho

  • @TheArither__2805
    @TheArither__2805 Před rokem +1

    Sir please 🥺 reply that esp32 were not connected automatically

  • @Abidali-qi3xj
    @Abidali-qi3xj Před 20 dny

    I have this project with complete documentation.
    Features are
    1. Door lock and unlock through fingerprint.
    2. Water pump control system
    3. Pir motion with lighting
    4. Gas detection and exhaust system.
    5. All status are shown on blynk iot app

  • @mahadabdillahi276
    @mahadabdillahi276 Před rokem

    please can you try to make with 16relays channel module

  • @yogendrajamsariya1193

    bro you done it great job so much love too you

  • @vipulkamble9702
    @vipulkamble9702 Před rokem

    Do you use active low relay module because after program esp32 when I turn off the switch my device gets high and vice versa after turn on it gets low

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

    You can on switch manually and off the switch by app it possible please answer

  • @Techcommunity360
    @Techcommunity360 Před rokem

    Please can I get the link on how to create the Bluetooth app my self

  • @majidsadique2244
    @majidsadique2244 Před rokem

    Your work is very good and helpful. I am facing a problem in compiling this code. "Error compiling for board ESP32 Dev Module. ". I have successfully compiled your code for ESP Rainmaker 8 channel module with preference library. The difference is only of DHT sensor. I have also added this library. If you got me, please explain. Thanking you.

  • @kaviprasanth4999
    @kaviprasanth4999 Před rokem

    Explain how to install this codes on esp32 s3 module

  • @jtechlink9641
    @jtechlink9641 Před rokem

    Schedule is not working in rainmaker app for this code as it's not executing, automation is executing.

  • @aniketpol1502
    @aniketpol1502 Před rokem

    Bro... I have a small idea... If that is possible that would make this project even more useful.... Can you add IR transmitter code so that we can control IR devices using voice commands or ESP Rainmaker app?
    Please do reply about this idea... Is it worth it?

  • @rajansaini2368
    @rajansaini2368 Před 7 dny

    Sir, in the code you have posted here, the dimmer of the fan does not work in the ASP Rain Maker app. Please fix it.

  • @ABCD-tl8vg
    @ABCD-tl8vg Před rokem

    4:19 in which software this simulation is done??

  • @satishtech92
    @satishtech92 Před 7 měsíci

    Hi sir
    Its automatically reset when fan switch on by rainmaker

  • @muhammadkhalid9419
    @muhammadkhalid9419 Před 9 měsíci

    hi, using the provided code, when i try to control the fan speed from app, it restarts the esp32, manual control is updated fine.

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

      am facing the same problem

  • @abidshahriar7095
    @abidshahriar7095 Před 9 měsíci

    what is the resistor value you used with the capcitor for fan dimming?

  • @firdoshdiakus4841
    @firdoshdiakus4841 Před rokem

    Does anyone have a problem units going off line after two days of use??

  • @saikatd9037
    @saikatd9037 Před rokem

    How to change wifi credentials for any update, like password or wifi SSID?

  • @uddhavmahadik10
    @uddhavmahadik10 Před rokem

    Simpletimer library problem i am facing issue in compoling this code error compiling for board

  • @jtechlink9641
    @jtechlink9641 Před rokem

    Why schedule feature is not working in rainmaker app. Is bcoz of the code. If it is then pls update how to make it work.

  • @vsrkraju7147
    @vsrkraju7147 Před rokem

    while trying to pair with rainmkaer app with qr code, getting device not found, enabled the bluetooth and geo before scanning the QR code, could you please help me on this

  • @skshailesh24
    @skshailesh24 Před rokem

    Sir esp 32 not connecting automatically with wifi when hotspot is off (when on) and esp 32 is on

  • @nagarava
    @nagarava Před rokem

    How to install .ino through Arduino 2.0, same keep in website

  • @kingstone2098
    @kingstone2098 Před rokem

    Can i control appliances on 2 Android mobiles

  • @Voice.Of.Nation
    @Voice.Of.Nation Před rokem

    Why use pc817 optocupler in there?

  • @TheArither__2805
    @TheArither__2805 Před rokem

    Sir I also commented this issue in last video but you don't reply that

  • @yogendrajamsariya1193
    @yogendrajamsariya1193 Před rokem +1

    💛💛💛💛💛

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

    Kay aap course karao ge

  • @yashwanthmastery
    @yashwanthmastery Před rokem +1

    Brother what is your education Quality

  • @rahulseran762
    @rahulseran762 Před rokem

    I am a huge fan if your work! I have a query, Rainmaker has a limit of 5 devices in one account. Is there a way to increase the IO's in ESp 32 board.

    • @TechStudyCell
      @TechStudyCell  Před rokem

      No limits. In previous Projects I have connected 8 appliances with rainmaker

  • @SunilChauhan-sg7re
    @SunilChauhan-sg7re Před 10 měsíci

    Bhai ji aap ki sari video dekhta hu bahut badiya project banate ho aap ka no milega

  • @zeliaamelia7292
    @zeliaamelia7292 Před rokem

    how to use the local language (not English) many languages......?

  • @hasstv9393
    @hasstv9393 Před rokem

    I'm getting
    Claiming failed with error : Claim init failed
    error in the app, after scanning the qr code. it never happened before.
    Someone please help me.

  • @travellinginfo4653
    @travellinginfo4653 Před rokem

    Sir HEX code not generated by the given file. It’s always showing 0*FFFFF. Plz help me to fix this problem.

  • @09eeashishkumar72
    @09eeashishkumar72 Před rokem

    Sir I want know how to make this project. Please tell me full information

  • @biswajitcreativity7294

    Sir why the Google home not connect with ESP rainmaker

  • @fernandozamora7040
    @fernandozamora7040 Před rokem

    Why doest confirm Node association, the module can be configured by RainMaker

    • @TechStudyCell
      @TechStudyCell  Před rokem

      use a new ESP32 board,

    • @fernandozamora7040
      @fernandozamora7040 Před rokem

      @@TechStudyCell thanks, Do you think that an ESP 32 no original could have this Problem ??

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

    error error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?

  • @sunderyogi
    @sunderyogi Před 9 měsíci

    Dear sir your not using bt136 instead of relay for controlling fan

  • @palashkarmakar9069
    @palashkarmakar9069 Před rokem

    It would be better if it had Bluetooth. Later want video with Bluetooth ,IR remote, EEPROM ,RainMaker.

  • @tushardas9825
    @tushardas9825 Před rokem +1

    Pls avoid this Esp rainmaker kind of apps as it has got hidden limitations of devices ( total number) and allways remember their limitations on messages (MQTT). It works, looks good and valid only for testing kind of projects, else no value in real projects. It's not for pro's. Otherwise your video and effort is surely good 👍

  • @vishaljain6130
    @vishaljain6130 Před rokem

    Dear, with humble request, code hasn't compiled. Under Void Get Relay State 1st mistake"fanSpeedControl(currSpeed); was not declared in this scope. 2nd mistake " SimpleTimer.h" no such file.
    Please reply as I keenly awaited.
    Thanks a lot.

  • @piaggio500dani5
    @piaggio500dani5 Před rokem

    thanks for the video 🙏🙏does it work with esp8266??

  • @roopsvinay
    @roopsvinay Před rokem

    Brother, Thanks for your videos. WIFI DOES NOT CONNECT BACK IF router is restarted. Also Scheduling works only first time the board is configured. After that scheduling does not work once ESP32 is restarted After power outage.

    • @roopsvinay
      @roopsvinay Před rokem

      Wifi connection issue is solved by restoring esp32 to factory settings and then using it again. But scheduling in Rainmaker app is not working. But scheduling in Alexa app is working fine

    • @DanishPatel-lg1mo
      @DanishPatel-lg1mo Před 6 měsíci

      @@roopsvinay But we have to press the EN button everytime to connect it back to the wifi after a powercycle, why it doesnt automatically connect?

  • @ajishtm4306
    @ajishtm4306 Před 8 měsíci +1

    When i turn on or off the fan all system getting restarted and wifi was disconnected and then connecting to wifi ,the fan relays are stationary ,no any changes ,please help me to solve this problem

  • @drelectronics13
    @drelectronics13 Před rokem +1

    Face cam 👍😊

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

    Sir i have tried your code but it is always showing Error of copling with ESP32 DEV Module

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

    Plz share schematic file

  • @RameezRazaRiaz99
    @RameezRazaRiaz99 Před rokem

    brother while compiling this sketch I get error that the sketch is bigger than the space available and that it uses 136% space on ESP32. how do I fix it?

    • @TechStudyCell
      @TechStudyCell  Před rokem

      Select proper board and partition scheme before compilation

    • @RameezRazaRiaz99
      @RameezRazaRiaz99 Před rokem

      @@TechStudyCell I have selected board as doit esp32 devkit v1. What do you mean by partition scheme?

  • @eddyparker7861
    @eddyparker7861 Před rokem

    ESP_RMAKER_PARAM_RANGE' was not declared in this scope
    showing error
    sir kicho koren
    1 bochor theke ey project ready korte chesta kor6 hochhena

  • @FarhanAli-oo8ye
    @FarhanAli-oo8ye Před rokem

    Sir cod compaling error speed 0 loop

  • @kevalparmar6586
    @kevalparmar6586 Před rokem

    Code not uploading to bord

  • @mdtalibhasan6393
    @mdtalibhasan6393 Před rokem

    How much money will it take to make this sir

  • @iamrafic
    @iamrafic Před rokem

    Bro,
    Is it possible to access the ESP rainmaker device with the ip addresses through browser?

  • @Mech-Hi-Tech
    @Mech-Hi-Tech Před rokem

    Please gave me code you are used in this video for fan with switch and regulator

    • @TechStudyCell
      @TechStudyCell  Před rokem

      Download from article. link in description

    • @Mech-Hi-Tech
      @Mech-Hi-Tech Před rokem

      Sry bro i got you latter on i checked your code and also Circuit diagram

  • @dipaksonone2917
    @dipaksonone2917 Před 10 měsíci

    When i turn on or off the fan all system getting restarted is any ony one facing this issue.musy reply tech study cell

    • @ajishtm4306
      @ajishtm4306 Před 8 měsíci

      Yes😢,iam facing this same problem,is there any solution , please help me

    • @satishtech92
      @satishtech92 Před 7 měsíci

      Me 2 facing these problem

  • @skd999100
    @skd999100 Před 6 měsíci

    🤙👍🙏💪💚

  • @TheArither__2805
    @TheArither__2805 Před rokem

    Sir please reply