MQTT + Nodemcu (Controlling appliances over Internet using your Smart Phone)| IoT Projects | ESP8266

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มี.ค. 2016
  • This video will let you know about the most used transport protocol i.e. MQTT protocol. And also how to use that protocol with your ESP8266 12e development board. I have explained this project by controlling my home appliances with my SMART phone.
    This IoT project will let you think project over internet as it is too easy to make and understand.
    _________________________________________________________________
    Buy the components from here
    ESP8266 12e development board(NodeMCU CP2102) (amzn.to/2BKS7cv)
    LED Matrix Display - (amzn.to/2rRiwzv)
    Female to Female connector wires - (amzn.to/2rPynOW)
    Google AIY Voice Kit - (amzn.to/2r55KMD)
    ESP8266 01 wifi module (amzn.to/2E7MsdP)
    HiLink 220v ac to 5v dc power supply(amzn.to/2pT2xij)
    5V Relays (amzn.to/2ChddQC)
    MCT2e IC (amzn.to/2H3ncss)
    1n4007 Diode (amzn.to/2EM4IuD)
    BC547 transistors (amzn.to/2oiTbfV)
    1k resistors (amzn.to/2Gri8Nl)
    330ohm resistors (amzn.to/2ojg8zN)
    16 channel analog multiplexer module (amzn.to/2mLwlfl)
    PIR motion sensor (amzn.to/2EK1OX2)
    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 screw terminal (amzn.to/2EM5Luz)
    _________________________________________________________________
    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
    You can also send me donation through my UPI I'd from Google tez, PhonePe, BHIM etc.
    sachinsms1990@okaxis
    _________________________________________________________________
    Facebook :- / techiesms
    Twitter :- / imtechiesms
    Instagram :- / techiesms
    Website :- www.techiesms.com
    WhatsApp number :- +91 82000 79034
    _________________________________________________________________
    #techiesms
    explore | learn | share

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

  • @sawknitsrestha3698
    @sawknitsrestha3698 7 ปีที่แล้ว +4

    Thank you ! Great tutorial. Hope you keep uploading these kind of projects.

  • @hasoanaa
    @hasoanaa 7 ปีที่แล้ว +1

    Thanks for such a brief tutorial . Its works with me controlling four relays !

  • @alejandrosantiago6080
    @alejandrosantiago6080 6 ปีที่แล้ว +2

    Hi, thanks for the video, It help me a lot. I wanto to make two friendly suggestions:
    1.- Add some small links under the description of the video example:
    /min7/sec20 -ESP Configuratiom
    min10/sec/8 -Adafruit Config, etc.
    It will make more easy for those who have some doubts about a concrete part of the process.
    2.-For me the; uint16_t num = atoi((char *)LUZ2.lastread);
    dont work, I have to use;
    if (strcmp((char *)LUZ2.lastread, "OFF") == 0)
    if (strcmp((char *)LUZ2.lastread, "ON") == 0)
    instead.
    Thanks a lot for the tutorial, keep up the good work.
    -Alex. From Mexico.!

  • @Pramod1901
    @Pramod1901 7 ปีที่แล้ว +3

    Hi Sachin, great video. Thx for sharing. One issue I have noticed is when the system is idle for some time, it stops responding to the feeds. I have to restart the module for it to start responding again. Any suggestion on what I might be missing out on?

  • @debabanerjee8029
    @debabanerjee8029 7 ปีที่แล้ว +5

    In this TUTORIAL Sachin Soni (techiesms) give a clear view of how to implement this project..by which , peoples who don't have good Idea about adafruit & MQTT can understand How its work and implement the project...So it's a Wonderful Video and Wonderful works he has done...not only that , when i am having problem with my project I Got the help from him almost same day I posted my problem...So Thank you "techiesms" and keep posting wonderful project in detail....as you did..

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

      +Deba Banerjee sure
      will definitely
      explore, learn and share with you all

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

      Да, очень классное видео

  • @hermanhermitz9101
    @hermanhermitz9101 6 ปีที่แล้ว +1

    Perfect for beginners and more importantly it works.

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

    Thank you so mach
    and can you tell us how to connect push button
    i mean turn on/off the relays via both mqtt and push button
    and everything was work without any problems except the app
    Dose ios have this app that you use

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

    Thank you sir for the detailed description

  • @xidameng
    @xidameng 6 ปีที่แล้ว +8

    Thanks a lot man, your video helped me create my first IOT project using MQTT! oh one last thing, my IDE issued error after inserting the 2 lines of your hand-typed code(the atoi part), and it was fixed later by replacing that line of code with:" int num = atoi((char *)onoffbutton.lastread); "

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

      Dude, thanks so much for posting this, it was driving me nuts.

  • @SunilSudevan
    @SunilSudevan 8 ปีที่แล้ว

    hi Sachin, if i use Amazon web Service IOT for MQTT it gives me sdk to select 1. Embedded C 2. Node js 3. Arduino Yún
    which one should i select ? i have OTA enabled my node mcu using platformio IDE.

  • @jstnpaul91
    @jstnpaul91 6 ปีที่แล้ว +2

    Great video brother. Very informative. Keep on doing the great work. We all are watching and hitting the like button as well :) I know u need boost to come up with another amazing work

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

      +justin paul you totally understand my feelings
      R u a TH-camr?

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

    Hi Sachin, How can I access the code you developed for this project? I do not see any link for it.

  • @pokkiez
    @pokkiez 6 ปีที่แล้ว +1

    Thanks for a tutorial

  • @ravipujari360
    @ravipujari360 8 ปีที่แล้ว +1

    thanks man very helpful. looking for more videos

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

      for more videos and blogs, visit my website,
      www.techiesms.com

  • @chi-tinhnguyen5176
    @chi-tinhnguyen5176 6 ปีที่แล้ว

    Nice video, I already done this
    and quick question How can I connect adafruit io with alexa skill
    Please help me

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

    Waw thanks. That is how to convert to integer, I always fail at that part. Can you tell me why must uint_16?

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

    Can we control the nodemcu by local wifi as well as by the internet. Please explain

  • @CRAugustoSalazarMontes
    @CRAugustoSalazarMontes 7 ปีที่แล้ว

    Good video, continue like this and thanks for your work, greetings from Mexico

  • @default_youtube_profile
    @default_youtube_profile 6 ปีที่แล้ว

    I have been controlling appliances over internet sending commands via json how is MQTT different ?

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

    Can you make one complete video to control sonoff devices ( ESP8266), that would be very helpful.
    and can I share my devices/switch with other people with the app/account?

  • @muhammadnoumankhan9735
    @muhammadnoumankhan9735 6 ปีที่แล้ว

    Is this possible if I design a button on mqtt app and when I turn it off it reply me or show notification that light which is set according to that button is off

  • @debabanerjee8029
    @debabanerjee8029 7 ปีที่แล้ว

    Ok one thing came to my mind that , is it possible to enter the Variable SSID/PASSWORD of wifi router to the EEPROM of NodeMcu by user via HTTP or any app and after restarting the NodeMcu will read it from its EEPROM..?. If any Idea then please share..

  • @debabanerjee8029
    @debabanerjee8029 7 ปีที่แล้ว

    Hi , Sachin I am very much excited to inform you that as you said my problem solved after downloading the new code(UPDATED) from techiesms. Thank you very much.
    Kepp posting Wonderful projects on techiesms.

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

      +Deba Banerjee good to hear
      Share this if you like it

  • @techhutbd954
    @techhutbd954 6 ปีที่แล้ว

    Is it possible to make an HTML file where directly I get the ON/OFF button for my load control? It is pretty annoying to write 0 and 1 again and again. Also, it will make a problem for multiple loads.

  • @ajayjoseph4626
    @ajayjoseph4626 6 ปีที่แล้ว

    You should have done a video about publishing too, it would have really helped out.

  • @cjpatel1992
    @cjpatel1992 8 ปีที่แล้ว

    Nice to see such a video from Gujarati - Ahmedavadi Guy :D Keep it Up.

    • @jatinkg1
      @jatinkg1 8 ปีที่แล้ว

      Check out my video and projects at my channel jatinkg1 :-) Gujarati - Bhavnagari Guy ;-)

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

      pro tip: watch series at Kaldrostream. Me and my gf have been using them for watching lots of of movies lately.

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

      @Grady Timothy Yea, have been using kaldroStream for months myself :D

  • @hevolution80
    @hevolution80 6 ปีที่แล้ว +1

    You should honestly go in the Microsoft Support business with how you explain son well

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

      +Hevolution Thank you for the suggestion. I would love to go there can you give my reference at Microsoft.

  • @venkatganesh7519
    @venkatganesh7519 7 ปีที่แล้ว

    when i create my account in adafruit . after my login its is not redirecting me to the dashboard coud u help me out

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

    Very informative video, can we create our own MQTT server?

  • @nagunaidu1664
    @nagunaidu1664 6 ปีที่แล้ว

    I have created a new Mqtt broker account but in account I did not get the right side corner options for I'll create a switches,what happened? Can u Plz solve my prblm?

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

    hello i have wdt reset problem in esp8266 for another project !! any solution plz

  • @ionutaurelian2963
    @ionutaurelian2963 6 ปีที่แล้ว

    hello i need some help if you cane
    i use this code but for me not work
    i see this error MQTT not authenticated

  • @HoBrian
    @HoBrian 8 ปีที่แล้ว

    Sachin, May I ask whether you can use the ESP8266 alone instead connected with Arduino? Is that ESP8266 not enough port to control or other reason. Hope you can teach me!

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

      +Ho Brian ofcourse you can use it alone. Just upload the code and give the module and separate power supply and you are ready to use it

  • @himanshudoria698
    @himanshudoria698 8 ปีที่แล้ว

    Hey Sachin , I am using a web application on the internet for publishing messages in the MQTT, can I in the same fashion use the Adafruit.io to recieve the message published from my WebApp ?

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

      +Himanshu Doria yes you can, just subscribe to one of the topic on Adafruit IO and you can both transmit and receive data on your MQTT client app.

  • @xennelul
    @xennelul 8 ปีที่แล้ว

    How does MQTT compare to SMQ from realtimelogic.com ?

  • @vinayTshetty
    @vinayTshetty 6 ปีที่แล้ว

    Android Source code is avaliable for this..? can i have the link for the source code

  • @MrRoboto2338
    @MrRoboto2338 7 ปีที่แล้ว

    Thank You, come again.

  • @Each1Teach1Tech
    @Each1Teach1Tech 6 ปีที่แล้ว

    Nice you can use blinky to do this too.

  • @dipeshpatidar2473
    @dipeshpatidar2473 6 ปีที่แล้ว

    i am getting a error.....my node mcu is not getting connected to MQTT server, what could be the problem? plzz help me

  • @debabanerjee8029
    @debabanerjee8029 7 ปีที่แล้ว +1

    Ok ..Thank you..

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

    hi , can esp be a mqtt broker itself?

  • @K1M1LD1S
    @K1M1LD1S 8 ปีที่แล้ว +1

    A very good intractive video you have presented... lets try it.. i will sure to inform you after sucess

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

      +Kamal Das you will definitely succeed in making this. And do celebrate your success by sharing this video so that others also get benefitted.

    • @K1M1LD1S
      @K1M1LD1S 8 ปีที่แล้ว

      Problem !! After SignUp I dashboard is not opening.

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

      +Kamal Das may possible their is some problem while making your account. Try again by making another account

    • @K1M1LD1S
      @K1M1LD1S 8 ปีที่แล้ว +1

      +Sachin Soni Sucess.. done

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

      +Kamal Das grt news. Congrats...

  • @debabanerjee8029
    @debabanerjee8029 7 ปีที่แล้ว

    Thanks for your support Sachin BUTTON Function code is working fine .....But one thing I noticed that is when I used PIN number D10(GPIO 1)(TXD0) of my node mcu as Digital_Input then Button function is not working but when I used PIN number D5(GPIO14)(HSCLK) as Digital_Input then the code working fine...do you know where was the problem? Is it not possible to use (TXD0) Pin as Digital_Input ?.....
    And another thing if you have any knowledge then please share with me...
    Actually I made a switch Board ( I called It SMART BOARD) by learning your wonderful tutorials which have 4 Internet operated switches and a EMERGENCY SWITCH. and it is working fine for which thanks to you...
    But one problem is that if I transfer this switch board( SMART BOARD) to my sister's house or my mother's house or anywhere else then I have to reprogramme my NODEMCU with their WIFI_SSID and PASSWORD accordingly...which is not possible by my sister or any person who have no knowledge of IDE programming...
    So is there any way to solve this problem .. like any apps / web portal by which we can only enter the SSID and PASSWORD to node MCU easily...
    If it is possible then it will be very handy and useful ..
    If you have any Idea regarding this issue then please share........
    Thank you.

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

      you can't use TXD0 pin and Serial communication simultaneously. Because this pin is reserved for serial communication.
      And talking about the other problem regarding variable SSID and Password, right now I don't know the solution for this but I'll explore this problem and try to get the solution. If I haven't came back to you with the solution, than mail me after one week to remind me this

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

    Sir , How i get feedback of relay status

  • @mirzashaker1010
    @mirzashaker1010 5 ปีที่แล้ว +2

    PLEASE CAN YOU SHOW, HOW TO ADD MQTT LIBRARIES IN ARDUINO IDE.

  • @Kalaakaar-in
    @Kalaakaar-in 8 ปีที่แล้ว +8

    Hi! Just a suggestion. I think you can give this video in more precise way and crush it within 5 mins.

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

      +mediamilan I am trying to follow this concept only. Precise content and less time. Still thanks for the suggestion.

    • @SoumilShah
      @SoumilShah 7 ปีที่แล้ว +2

      uint16_t num=atoi(onoffbutton.lastread);
      invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]
      getting this error help

    • @chiragsehgal6585
      @chiragsehgal6585 6 ปีที่แล้ว

      we are dealing with pointers here ,so
      go for-----> uint16_t num = atoi((char *)Light.lastread);
      it will work for sure
      In video he has not compiled the code ,else would have got error.

    • @candidjogger361
      @candidjogger361 6 ปีที่แล้ว

      @Chirag Sehgal, thank you. it worked

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

      Kalaakaar Makerspace exatly he's stuffing.

  • @abhikhandelwal4340
    @abhikhandelwal4340 7 ปีที่แล้ว

    hey I have a question would you please tell me that how will you control the brightness of a bulb

    • @TheMrFrontera
      @TheMrFrontera 7 ปีที่แล้ว

      Look up single phase AC voltage controller. I guarentee there's probably smarter ways to do this but one way is to put two thyristors in parallel. Have the PWM pin from the microcontroller control the gate of the thyristors to open and close at certain intervals depending on how dim you want the bulb. The code you'll probably want to copy from someone whos done it before you or you'll be sitting there learning about a lot of new hardware, and then sitting there trying to figure out how to code it for a long time. The hardwares easier than the code to me

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

    Very helpful

  • @savetheworldology
    @savetheworldology 8 ปีที่แล้ว

    Do you think its possible to use the MQTT + Node MCU to receive an email or sms and output the data to an LCD 2x16?

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

      +Sam Clare I am not sure. But I'll try doing this. Just drop your mail I'd,I'll let you know if I succeeded doing this

    • @savetheworldology
      @savetheworldology 8 ปีที่แล้ว

      +Sachin Soni (techiesms) how can I give you my email without publishing it in the comments. I managed to get the Node MCU working with the 4x20 LCD. :)

  • @anandkawale483
    @anandkawale483 6 ปีที่แล้ว

    sir how to create adafruit account...it is not entered in sign in page

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

    Please post a how to setup a Broker and how to remotely connect to it. I am stuck so please if possible then do help.

  • @TechSupportlink
    @TechSupportlink 6 ปีที่แล้ว

    Nice sir,

  • @sasaamr9723
    @sasaamr9723 6 ปีที่แล้ว

    how can i get the arduino code in this video ?

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

    Can you explain mosquitoe broker

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

    How can you get AIO server Port ?

  • @siddharthachatterjee2335
    @siddharthachatterjee2335 7 ปีที่แล้ว

    Hi,
    Great video. Thanks.
    In need some direction here :
    My ESP8266 module connects to “test.mosquitto.org” and subscribes to a topic say “b1”. What ever is published to “b1”, it can read it immediately.
    Problem happens when my second ESP8266 module subscribes to “test.mosquitto.org” to “b1”. It continuously returns :
    WiFi connected
    IP address:
    192.168.0.9
    Attempting MQTT connection…connected
    Message arrived [b1] 0
    Attempting MQTT connection…connected
    Message arrived [b1] 0
    Attempting MQTT connection…connected
    Message arrived [b1] 0
    Attempting MQTT connection…connected
    Could you kindly suggest what might be going wrong. I look forward to your advice.

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

      +Siddhartha Chatterjee can you send me the code so I can study and come to any conclusion

    • @siddharthachatterjee2335
      @siddharthachatterjee2335 7 ปีที่แล้ว

      Hi Sachin, Thanks for your reply. I could manage to figure out the solution. It is working fine now. Regards.

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

      +Siddhartha Chatterjee Great to hear that!!!
      But will you share the problem and also the solution here so that people facing similar problems can be helped

    • @siddharthachatterjee9959
      @siddharthachatterjee9959 7 ปีที่แล้ว

      Hey Hi,
      I was using the same clientId for bother the ESP8266s. This was creating a clash.
      The problem gets solved by using different cliendIds for each ESP8266 as then there is no clash.
      Cheers !!

  • @alireda646
    @alireda646 7 ปีที่แล้ว

    The words doesn't help me
    To describe how great you did to us all ☺️
    God bless you my brother
    I had made the project and it's working very well
    But I have a little question...
    Is adafruit free to use?!
    I mean is it an open source to do what ever I want in it?!

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

      Yes!!!, Adafruit is providing free MQTT service to everyone.
      if you really want to thank me and describe how great I did, just share my work so that you can also help the community with this work.
      Visit my website for more such projects, www.techiesms.com

    • @alireda646
      @alireda646 7 ปีที่แล้ว

      I want to translate your work to my language (Arabic)
      If you don't mind

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

      +ali reda I would love to see this
      mail me so that we can have talk further
      sachinsms1990@gmail.com

    • @alireda646
      @alireda646 7 ปีที่แล้ว

      I used
      Mqtt dashboard for Android
      It's pretty easy to use
      Using the same method you did in the video
      You are a very smart engineer
      Many thanks to you
      And
      How can I talk to you in private?!

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

      +ali reda mail me
      sachinsms1990@gmail.com

  • @prashanthrav
    @prashanthrav 6 ปีที่แล้ว

    I've done everything you have said but in the end i am getting some alien messages in the serial monitor after uploading.
    for e.g. ^EpÉ4AHäMÐipÍ'$ü
    I am also getting a message after uploading that WARNING: Spurious .github folder in 'Adafruit MQTT Library' library
    I've been sitting with this thing from the morning but unable to figure out what next. Pl help

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

      Check the baudrate both in Serial.begin() in code and in serial monitor. They must be same.

  • @duclongbka7933
    @duclongbka7933 8 ปีที่แล้ว

    Thanks a lot for your video :).I understand a lot of things

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

      if you liked it, simply share it.

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

    Please do more videos we will surely support

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

      I already did a lot of project videos after this, kindly explore our channel.

  • @apoorvagowda2885
    @apoorvagowda2885 7 ปีที่แล้ว

    i am using esp8266 wifi module instead of node mcu is this code works with that module.

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

      +apoorva.a apooorva yeah
      Absolutely

  • @hemantaphurailatpam3956
    @hemantaphurailatpam3956 8 ปีที่แล้ว

    i want to used a temperature sensor to my NodeMCU. i can't figure out the ide code to send data to my feeds.

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

      You can go for the Slider(Photocell feed) given in the example by adafruit

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

    help me bro ...final year project .code error

  • @ZulfiqarAadil
    @ZulfiqarAadil 6 ปีที่แล้ว

    Can we also integrate Alexa with this MQTT along with FTTT ?

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

      +Zulfiqar Aadil yes

  • @yuvraj9385
    @yuvraj9385 7 ปีที่แล้ว

    Sachin Soni (techiesms) hi ... i want to know how we can u
    se mqtt and nodemcu to unlock door using RFID card and the unlocking of door automatically switches the light on of that area ..

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

      +yuvraj upadhyay this can be done. But using WiFi and Mqtt is not at all useful in this application.
      You can just use arduino board along with RFID reader module and connect all the appliances and electronic lock with wires. This will be cheaper and also easy to make.
      If you use nodemcu then you need to attach wifi module to every appliances

    • @yuvraj9385
      @yuvraj9385 7 ปีที่แล้ว

      yes actually i want to use nodemcu (as we all know its a it uses Aurdino enviorment) and i have done half part but how to use MQTT on it i'am not able to figure it out ...so i need help regarding that ..

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

      +yuvraj upadhyay ok so let me know what you have done and what you want to know or how can I help you

    • @yuvraj9385
      @yuvraj9385 7 ปีที่แล้ว

      so first step what i have done is
      1>we have used the nodemcu coded it and linked up with the RFID setup .... which when scanned on the scanner opens the door and updates the RFID id of the person ...
      2>now what i want is the next step i want to use MQTT protocol in a view to make it secure (MQTT all of us know is secure ) so how can it be done im not able to figure out how to corelate MQTT with the part that i have done

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

      +yuvraj upadhyay just mail me
      We will continue with mail
      sachinsms1990@gmail.com

  • @anupbalharpure
    @anupbalharpure 6 ปีที่แล้ว +1

    Nice video....
    Can you please explain how to develop broker instead of using a radily available broker.

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

      +Anup C Balharpure
      No.
      I'm too seeking for this

    • @anupbalharpure
      @anupbalharpure 6 ปีที่แล้ว

      we can able to install MQTT server, but still don't know how they search client

    • @totolook
      @totolook 6 ปีที่แล้ว

      install mosquitto server, in my case i use mosquitto broker server in my rpi1

  • @kamals4905
    @kamals4905 7 ปีที่แล้ว

    mqtt works on local network?
    like arduino based esp88266's web server

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

      +kamal sonani No.
      It's like you can control from anywhere in the world with your smart phone having internet pack..
      In the video also
      I am using separate internet connection for smart phone and esp8266
      So it's not a LAN connection

  • @mohammadoky7440
    @mohammadoky7440 6 ปีที่แล้ว

    Are they should be connected with the same wifi?

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

      No. Not required

  • @abhikhandelwal4340
    @abhikhandelwal4340 7 ปีที่แล้ว

    ets Jan 8 2013,rst cause:4, boot mode:(1,6)
    my mqtt connection cant established shows the above error

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

      +ABHI KHANDELWAL mail me the error and the code you r uploading

  • @rocksonagyeman1626
    @rocksonagyeman1626 7 ปีที่แล้ว

    Do you perhaps know of a php library i could use with adafruit mqqt broker?

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

      +Rockson Kwame Agyeman I have bonuses about this.
      But will let you know if I find any answer for this

  • @ionutaurelian2963
    @ionutaurelian2963 6 ปีที่แล้ว

    this is exact error for my esp8266 Connecting to MQTT... Not authorized to connect

  • @ahmedali-xg9sg
    @ahmedali-xg9sg 7 ปีที่แล้ว

    why when reset esp lost connection and when to generate another key it work
    .any solution for this problem, thx

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

      +ahmed ali I never faced such problem
      Let me analyse
      Mail your code at
      sachinsms1990@gmail.com

  • @Tensopiseth
    @Tensopiseth 6 ปีที่แล้ว

    get error alot
    do to you have upload scrip
    want to copy

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

    someone pls help,i cant find the dashboard

  • @ahmedali-xg9sg
    @ahmedali-xg9sg 7 ปีที่แล้ว

    sorry i know i ask you many questions :D
    my question is i want to connect switch and when on/off by switch the button state in dash board also change can you help me and how get dash board in mobile app (the same dash board on IO-Adafruit),thx

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

      +ahmed ali no problem buddy
      And you can definitely get the data on your smart phone through any MQTT app
      And you can get it by physically pressing the button on ESP12e board
      In the code
      First subscribe to a topic and see whether the switch is pressed or not
      And if switch is pressed
      Publish a value in that topic
      Easyyy

    • @ahmedali-xg9sg
      @ahmedali-xg9sg 7 ปีที่แล้ว

      send state of led to broker when button pressed maybe i can do it ,but how change the state switch on dash board ,in other words how can i tell the switch new state from esp ,thx

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

      +ahmed ali see
      It's not a physical switch on the dashboard
      It's just representation of data in memory.
      Or we can say the it will show the last data updated in that particular topic
      So if you are publishing some value in particular topic on which switch of the dashboard is subscribed, then the switch will also toggle it's position according to the new data updated.
      Summing up my point
      Just publish 0 or 1 in a topic through your esp
      And also make a button in the dashboard with the same topic as that of you are publishing value.and observe the changes

    • @ahmedali-xg9sg
      @ahmedali-xg9sg 7 ปีที่แล้ว

      Sachin Soni ok thx

  • @tarasandeep1
    @tarasandeep1 7 ปีที่แล้ว

    Why Nodemcu? For MQTT bidirectional communication which firmware is better?

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

      +Tara Sandeep Arduino firmware is better for MQTT as it is easy to use and also ready made libraries are also available for it

    • @tarasandeep1
      @tarasandeep1 7 ปีที่แล้ว

      thanks

  • @AbhishekKushwaha-xr4ww
    @AbhishekKushwaha-xr4ww 6 ปีที่แล้ว +1

    Hi techiesms This is Abhishek , I AM trying to create iot using standalone ESP8266 -01 . I have created my own app and also webserver . Problem is that I works fine for some time but then it stops working I.e blue light that keeps on blinking in ESP stops and it gets freeze . This usually happen when I connect AC source to relay. Other wise when I don't connect my appliance with relay. It works fine for long hours. I don't know what's the problem Please help me out. No clues in web i have found. Almost same thing happend when I tried creating using arduino nano and ESP. That after some time it stops responding. Please help me Please help...I am waiting for reply .... I have changed 3 ESP to confirm whether my ESP is fine or not....

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

      +Droid Developer that's a great coincidence.
      Actually I'm​ too facing that same problem of switching relay through ESP which I'm doing for my next video.
      That same blue LED freeze when I connect relay.
      Still I didn't find the solution but will soon fig out and will be making project tutorial video on it
      So just subscribe my channel to get notified for that upcoming project

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

      so there must be error in the code. When the code gets stuck in infinite loop doing nothing, the wdt overflows and it get reset

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

      I made the video for solving that problem.
      Have a look
      th-cam.com/video/3YG9uvCiHR0/w-d-xo.html

    • @AbhishekKushwaha-xr4ww
      @AbhishekKushwaha-xr4ww 6 ปีที่แล้ว

      Bro can u use Ac Appliance with relay to make sure its not restarting .
      That much was working fine with my setup i.e relay was switch fine without any appliance but when any appliance is connected it restarts randomly. Please do check . And also check using arduino serial monitor to check restart issue.

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

    Could u please provide me code for this project

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

    Can you send circuit diagram or source code plzz

  • @SoumilShah
    @SoumilShah 7 ปีที่แล้ว

    uint16_t num=atoi(onoffbutton.lastread);
    invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]
    getting this error help

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

      uint16_t num=atoi((char *)onoffbutton.lastread);
      Replace with this, the error will get solved

    • @SoumilShah
      @SoumilShah 7 ปีที่แล้ว

      bro thanks a lot
      we learn so many things from you keep making videos

  • @livestreaming249
    @livestreaming249 6 ปีที่แล้ว

    How to controll more application with nodemcu is it possible to controll atleast 20applications

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

      For that you need to go for premium version of Adafruit io.
      By paying $10 a month

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

      Yes

    • @livestreaming249
      @livestreaming249 6 ปีที่แล้ว

      Then how we can controll upto 20applications

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

      For that we need to use 2 NodeMCU

    • @livestreaming249
      @livestreaming249 6 ปีที่แล้ว

      Sir can you please explain me how to connect 2 nodemcu

  • @harshdeepthakur7728
    @harshdeepthakur7728 6 ปีที่แล้ว

    Hi, i have connection failed problem ,while connecting to mqtt.connected() and give me return value -1

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

      send the screen shot of error on whatsapp. +91 82000 79034

  • @aswiniummadi9551
    @aswiniummadi9551 7 ปีที่แล้ว

    Hi your project is nice. can you post the code for this. i want to make replication of this project.

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

      visit my blog on MQTT on my website, you will get code there
      www.techiesms.com

  • @chanduk7758
    @chanduk7758 6 ปีที่แล้ว

    sketch_feb07f.ino:25:27: fatal error: Adafruit_MQTT.h: No such file or directory

  • @yaazhlenepanneerselvam2341
    @yaazhlenepanneerselvam2341 7 ปีที่แล้ว

    while (( subscription = mqtt.readSubcription(5000)))
    it is not going into the loop
    no errors in execution
    can u fix this
    the same code I used as urs and also created a adafruit dashboard with two attributes under a feed name called project which consisted of Light and Radio
    and also I have many doubts in this could ple give me ur mail I'd where I could send all my doubts

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

      sachinsms1990@gmail.com

  • @ahmedali-xg9sg
    @ahmedali-xg9sg 7 ปีที่แล้ว

    i created an account on Adafruit and i can;t reach my dashboard
    any help ,thx

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

      goto
      io.adafruit.com
      on the upper right corner click on signin and than login to your account
      Next page will be your dashboard

    • @ahmedali-xg9sg
      @ahmedali-xg9sg 7 ปีที่แล้ว

      Sachin Soni thanks

  • @thewackydose
    @thewackydose 6 ปีที่แล้ว

    how can i make my own mqtt broker. I dont want to use any third party broker for my IoT project

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

      +Rohit Mathur
      I don't know how to make a global broker
      But yes, you can turn your raspberry pi board as a Local MQTT broker

    • @thewackydose
      @thewackydose 6 ปีที่แล้ว

      I have set up my raspberry pi as MQTT broker. The broker is working perfectly fine. But the client is not getting connected to the broker. On the serial monitor, I get "Attempting MQTT connection...failed, rc=-2 try again in 5 seconds" Client.state() returns -2. I believe -2 means the network connection couldn't be established. I hope that you could help me out to get this resolved. Ur help has always taken me a step forward. Visit goo.gl/eDodKJ. You can see my exact problem with the code I've been using.

  • @RajeshKonduru006
    @RajeshKonduru006 7 ปีที่แล้ว

    GREAT VIDEO SACHIN. I COULD NOT GET INTO DASHBOARD. PLEASE HELP ME.

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

      just logIn to your account and after that go to the address, io.adafruit.com/username
      for eg. my username is sachinsoni, so that address of my dashboard is
      io.adafruit.com/sachinsoni

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

    can you give me the code of arduiono

  • @hemantaphurailatpam3956
    @hemantaphurailatpam3956 8 ปีที่แล้ว

    it works but took a very long time to turn on and off the light. I don't know what's problem

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

      It happened with me also. In my case the problem was slow internet connection

    • @hemantaphurailatpam3956
      @hemantaphurailatpam3956 8 ปีที่แล้ว

      now its working fine,,thanks anyway..i would like you to do more videos on IoT

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

      +hemanta phurailatpam I am working on that. May be I won't be uploading through this TH-cam channel but you stay updated with my fb page which says fb.com/techiesms

  • @dineshs4145
    @dineshs4145 6 ปีที่แล้ว

    In Adafruit control only 5 upto D4 why another pins can't control. Only 5 pins control

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

      You need to change the Adafruit MQTT.h file
      Their change the Max Subscriptions from 5 to 10

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

    I have some doubt in this video are you ready to help me . anything please reply me you're my only help

  • @nuovovideo
    @nuovovideo 7 ปีที่แล้ว

    I can't Understand why if I Upload the ESP8266 WiFi Scan Example, It can see my SSID WiFi ( I have three at my home). But With your Example, it stop at the first Step, It is waiting to connect at my WiFi, and doesn't work. It stop with many .............................................................................. and don't go ahead. I put everything I need like your example.

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

      this means that you must have entered the wrong ssid name or password.
      Or it can be like you accidentally have attached space after of before your ssid name or password. For example
      "SmS " > this is wrong as I have a blank space at the end
      "SmS" > this is correct
      If still the problem is not solved, do send me the code, I will debug that

  • @pmvanker
    @pmvanker 6 ปีที่แล้ว

    wah bhiaband saru hto video mazza avi... bnavo aava video hu pn embedded engineer chu.. gandhinagar... subscribe my chnal too bro.

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

    Hey! If you want to make another IoT tutorial with more sensor content - check out ubeac.io
    We are looking for beta testers familiar with sensors and IoT and would appreciate your expertise.
    We've had issues with people testing Arduinos but if you have a cell-phone app that mimics Bluetooth beacons, like Beacon Simulator, you can play around with it. Cheers!

  • @09_patel_nayan29
    @09_patel_nayan29 3 ปีที่แล้ว

    Nodemcu ko kese openhab se connect kare

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

    Bro this machine work from long distance

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

      Yes

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

      @@techiesms how much distance its maintain

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

      From anywhere in the world
      It’s working on internet

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

      @@techiesms i want to make this project

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

    Code link

  • @dineshs4145
    @dineshs4145 6 ปีที่แล้ว

    Please give me suggestions

  • @ionutaurelian2963
    @ionutaurelian2963 6 ปีที่แล้ว

    plise help