How to send sensor dat to thingspeak server using ESP and Arduino.

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

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

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

    *Updated Code Edited Code*
    --------------------------------------------------------
    Before uploading my code.
    Step 1: remove the ic ATmega328 of arduino.
    Step 2: connect Rx of arduino to Rx of ESP and Tx of arduino to Tx of ESP.
    Step 3: Open serial monitor of arduino and set baud at 115200 and Both NL&CR
    Step 4: Send AT it should return OK then AT+CIOBAUD=9600 it should return OK if not then write AT+UART_DEF=9600,8,1,0 it should return OK.
    Step 5: change the serial monitor setting to baud rate at 9600 and Both NL&CR.
    Step 6: change the mode of ESP by sending AT+CWMODE=3 it should return OK
    Step 7: upload my code and test
    ----------------------------------------------------------------------------------------------------------------------------
    #include
    #include
    String apiKey = "XXXXXXXXXXXXXXXX";
    dht DHT;
    #define DHT11_PIN 4
    int humi,temp;
    SoftwareSerial ser(2, 3); // RX, TX
    void setup(){
    ser.begin(9600);
    Serial.begin(9600);
    unsigned char check_connection=0;
    unsigned char times_check=0;
    Serial.println("Connecting to Wifi");
    while(check_connection==0)
    {
    Serial.print("..");
    ser.print("AT+CWJAP=\"SSID\",\"PASSWORD\"
    ");
    ser.setTimeout(5000);
    if(ser.find("WIFI CONNECTED
    ")==1 )
    {
    Serial.println("WIFI CONNECTED");
    break;
    }
    times_check++;
    if(times_check>3)
    {
    times_check=0;
    Serial.println("Trying to Reconnect..");
    }
    }
    delay(5000);
    }
    void loop()
    {
    DHT.read11(DHT11_PIN);
    humi=DHT.humidity;
    temp=DHT.temperature;
    Serial.print("H:");
    Serial.print(humi);
    Serial.println("%");
    Serial.print("T:");
    Serial.print(temp);
    Serial.println("C");
    // TCP connection
    String cmd = "AT+CIPSTART=\"TCP\",\"";
    cmd += "184.106.153.149"; // api.thingspeak.com
    cmd += "\",80";
    ser.println(cmd);
    if(ser.find("Error")){
    Serial.println("AT+CIPSTART error");
    return;
    }
    // prepare GET string
    String getStr = "GET /update?api_key=";
    getStr += apiKey;
    getStr +="&field1=";
    getStr += String(10);
    getStr +="&field2=";
    getStr += String(10);
    getStr += "

    ";
    // send data length
    cmd = "AT+CIPSEND=";
    cmd += String(getStr.length());
    ser.println(cmd);
    if(ser.find(">")){
    ser.print(getStr);
    Serial.println(getStr);
    }
    else{
    ser.println("AT+CIPCLOSE");
    Serial.println("CIPCLOSE");
    }

    // thingspeak needs 15 sec delay between updates
    delay(16000);
    }

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

      why in code is error: 'getStr' does not name a type?

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

      Can you please share screenshot of the error.

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

      Hey friend, It's an system error. Not related to code.

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

      esp8266 join wifi but Serial Monitor print("Trying to Reconnect..")
      how to fix

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

      @@MyEngineeringStuffs
      thx buddy but now i can't send data to thingspeak

  • @subinkrishnakt4058
    @subinkrishnakt4058 6 หลายเดือนก่อน

    is that a resitor on that wifi module? why did ypu solder it? if you soldered whats the resistence value and what pins you connected?

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

    Hey i am using nodemcu for the same project but everytime i open my serial monitor it just shows trying to reconnect.

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

      It works for NodeMCU also, just use TX, RX, 3V and GND from NodeMCU.

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

      Hey friend sorry for the inconvenience. Recently I have noticed many ESP01 module comes with different firmware. I will soon upload a well define tutorial on this topic again. For the time being please try to check and pass AT COMMANDS manually and get the ESP module checked. Sure I will update a better and checking process for the ESP. Thank you

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

      ​@@MyEngineeringStuffs Please, you can upload your code again, the 404 error page.

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

    How did you get the datas uploaded to ThingSpeak. I tried the same code. It is not working . But tried without any codes with AT command. It worked . But with this code. It doesn't

  • @sameerk12982
    @sameerk12982 4 ปีที่แล้ว +3

    Excellent tutorial....Thank you very much for creating such an informative tutorial. appreciated.

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

    I am using ACS 712 voltage sensor and ZMPT101B current sensor I will have to upload the data to thingspeak. I am doing this for my small electricity monitoring system but I don't have any prior knowledge of it. I need your help.

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

    why didn't u connect the RX and TX pins from the ESP to the RX TX ports built in the Arduino? On the Arduino u instead connected it to ports 2 and 3. why didn't u connect them to ports 0 and 1?

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

      Hey friend you can connect as you like. I am using software serial to do my job you can use hardware serial pins to carryout your task.

  • @отпирайте
    @отпирайте 4 ปีที่แล้ว +1

    I did everything correctly, yet: "Error compiling for board Arduino Zero (Programming Port).". I even disconnected that one wire during compiling. I use digital pins 8 and 9 instead, do they need to be 2 and 3? i did change the pins in the code though

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

      Hey friend sorry for the inconvenience. Recently I have noticed many ESP01 module comes with different firmware. I will soon upload a well define tutorial on this topic again. For the time being please try to check and pass AT COMMANDS manually and get the ESP module checked. Sure I will update a better and checking process for the ESP. Thank you

    • @отпирайте
      @отпирайте 4 ปีที่แล้ว

      MyEngineeringStuffs I have an arduino zero. Is the wiring any different in my case?

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

    Hello,
    I am trying to connect it with the wifi, but its getting failed. I have checked all the connections upto ic pins. Checked tge ssid and password through ip also. But the problem still persists. Could u plz suggest how to solve it? I have designed the circuit without the resistors.

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

    Why I always trying to connecting bro?
    I tried to connect my esp8266 with AT+CWJAP in serial monitor it work just fine (default empty code), but when I use your code it "Done Compiling" but always trying to reconnect.

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

      Hey friend just try to connect manually with your wifi. Means try AT COMMANDS to connect ESP8266-01 with your WIFI ROUTER.

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

    Sir, what if I use an MQ-2 gas sensor? What codes should I replace or on this current code then?

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

    Which DHT library are you using?
    It doest work with he adafruit dht library.

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

      Hey friend sorry for not including DHT library. You can download from here: myengineeringstuffs.com/download/1097/
      Delete the previous library before you add this one.

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

      Hey friend sorry that i have not included the download file. Please download from here myengineeringstuffs.com/download/1097/

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

      no problem

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

      The issue is with the version of the dht library, I used version 1.2.2 and it works like a charm

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

    We can send dte from arduino UNO to Thinkspeak without program the ESP ??

  • @trungthai2658
    @trungthai2658 8 หลายเดือนก่อน

    what's the hell? t run code and repair to suit with my project but the serial alway to print connect the witfi ?

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

    i tried this in IDE 1.8.9 but the code is failing in all kinds of ways.
    dht.begin does not work, and after trying that to solve i bump into
    warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] on if(ESP8266.find(">"))

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

    Hey! I have issues with fetching data FROM api on web on my arduino. Can you tell me what to program on arduino and what to program on esp8266? Can i upload the code just to arduino and then communicate with esp?
    Thank you.
    M

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

    Shouldnt rst and cspd pins be powered with 3.3V pin on arduino

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

      no it should be in pull condition. Means A register should be connected in between the pins and 3.3v power.

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

    Thank you for sharing valuable information 🙏🏽

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

    I will send sensor data from arduino to esp8266 ESP-12E, will esp8266 ESP-12E work with thingspeak ?

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

      The code I have proved will not work for your requirement if your ESP12E isn't in AT-COMMAND mode. But yes you to do that by writing its appropriate code.

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

    AT+CIPCLOSE
    after started sending data
    it's stopping automatically
    lm35 temp sensor data is not uploading to thingspeak

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

      Hey friend check your thingspeak credentials and api key.

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

    In my serial monitor only showing again and again.. trying to reconnect...
    I am using my mobile hotspot .and also ESP_019F90 open wifi signal is visible in my network settings tab
    Could you please help

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

    This has been very helpful! Thank You!

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

      *Thank you Friend* for your kind words.

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

      hi. may i ask your favor to help me out solve my problem? i currently facing "Trying reconnect" all over again. i don't know how to solve it. i've watching other tutorial regarding to the problem, but the result still same

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

    Hi Sir, I wanna ask. How to upload or sending data to thingspeak every 15 minutes or 1 hour? Because I have final task that I want to uploading data to ThingSpeak every 15 minutes

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

    i have installed all the required libraries required for lm35 and pulserate sensor
    Is there any library for ESP8266

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

      Need to include ESP board manager in preferences(Aditional board manager ULR).
      This is the Link: arduino.esp8266.com/stable/package_esp8266com_index.json
      Then go to Tools-->Boards --> Click Board Manager

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

    how to remove this error "ESP8266 CIPSEND ERROR: RESENDING"

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

    it is showing "'writeThingSpeak' was not declared in this scope" What to do now

  • @CC-er7ln
    @CC-er7ln 4 ปีที่แล้ว

    Hi sir how to connected lm35, sound, water, touch sensor connected with arduinouno and esp8266 wifi moduals

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

      Hey friend try to interface every module with their respective communication protocol and after getting individual values of every module try to send the data using ESP to thingspeak sever. Hope you get he point and how to interface all the modules you can search on my youtube channel or any other channel. Thank You

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

    Hey your video is awesome bro but I'm having some issues with the esp8266.
    I cant connect esp8266 with the WiFi. Do I need to set it to Station mode first ?

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

      Hey friend try to configure your ESP as AT+CWMODE=3 with both AP and ST mode.

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

      @@MyEngineeringStuffs Thanks man. I found out that I was connecting wrong pin in the arduino :p
      What I did was
      RX➡️RX
      TX➡️TX
      instead of
      RX➡️TX
      TX➡️RX
      Silly me 😝

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

      @@shirishranjit9677 Best of luck friend

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

      @@shirishranjit9677 Best of luck friend

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

    what would be the Rx Tx pins if I wish to plug into Arduino mega??

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

      As I am using Software Serial you can use the same pin. Sorry to reply to you late.

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

    hi nice video but i m new in arduino and i cant look clearly where you put wire into ESP8266
    i want to know, can you help me

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

    What software do you use to make the circuit diagrams?

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

    Nice detailed video.. I have a query.. how can I insert an rf module data instead of the DHT/. any help will be really appreciated

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

    Sorry, your source code links are not working. They have so many ads baked in you can't get to anywhere.

  • @raimondiinc.5970
    @raimondiinc.5970 6 ปีที่แล้ว

    Hi, I need help. I got it to work and all but the temp is in Celsius not Fahrenheit. How can I change It? thank you

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

      hey friend you can the formula *temp_f = (temp_c x1.8)+32* to convert the temperature in Fahrenheit. And upload the data

    • @raimondiinc.5970
      @raimondiinc.5970 6 ปีที่แล้ว +1

      Which line? At the temp_f=DHT.readTemperature();
      Or
      GetStr += String(temp_f);

    • @raimondiinc.5970
      @raimondiinc.5970 6 ปีที่แล้ว +1

      Thank you

    • @raimondiinc.5970
      @raimondiinc.5970 6 ปีที่แล้ว +1

      Got it. I put it at the getStr line. It works. Thank you very much. Your awesome.

    • @raimondiinc.5970
      @raimondiinc.5970 6 ปีที่แล้ว +1

      A friend of mine showed me your video and I have to thank him.

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

    Hello, I have a query. I used your code and it did build in successfully but the wifi is not getting connected. The Serial monitor keeps showing "trying to connect". Please tell me how can I solve this issue?

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

      Hello Riddhi Sai... I have posted a new code. Code is pinned in the description box please try that code.

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

      @@MyEngineeringStuffs i fried both of em but both of em have the same problem.

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

      Hey Riddhi Sai try this steps
      Before uploading my code.
      Step 1: remove the ic ATmega328 of arduino.
      Step 2: connect Rx of arduino to Rx of ESP and Tx of arduino to Tx of ESP.
      Step 3: Open serial monitor of arduino and set baud at 115200 and Both NL&CR
      Step 4: Send AT it should return OK then AT+CIOBAUD=9600 it should return OK if not then write AT+UART_DEF=9600,8,1,0 it should return OK.
      Step 5: change the serial monitor setting to baud rate at 9600 and Both NL&CR.
      Step 6: change the mode of ESP
      AT+CWMODE=3 it should return OK
      Step 7: upload my code and test

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

      @@MyEngineeringStuffs I will try this out !!! Thank you so much !!!

    • @MaMo-1208
      @MaMo-1208 5 ปีที่แล้ว

      @@riddhisaireddy6096 how....can u help me plz

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

    Hello Sir. Do you know how to send mq7 gas sensor to mysql using esp01 as data transceiver ???

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

      Hey friend, yes it is possible to log in mysql. First you need to create a local server and create a database and a php script that can receive data and add to the database(mysql).

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

      @@MyEngineeringStuffs Sir please can you teach me how. I know how to make php code but for coding arduino to send data is my problem.

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

      Can you show me sir how to code arduino for sending data to mysql. Ive seen many tutorials but all were not working. I hope sir that you can help me sir for this. God bless 🙏

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

      Please mail me. So that I can help you.

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

      @@MyEngineeringStuffs I've sent you an email Sir.

  • @VJ-gv1mz
    @VJ-gv1mz 3 ปีที่แล้ว

    Sir in this project instead of humidity sensor I use pulse and LM35 Temperature sensor so the code is varies if varies send that code

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

      Hey Raj,
      First try to get the data from PULSE sensor & LM35 sensor if you get the data as per your requirement. Try the code in this video following the same procedure to send the data to thingspeak.

  • @elijahturatsinze1576
    @elijahturatsinze1576 4 ปีที่แล้ว +3

    thank you so much for the video, you really gave me the hint for doing my project.

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

    I m trying to upload the ultrasonic sensor data but its not getting upload.

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

    Hi thank you so much for providing the tutorial. my monitor is say "trying to reconnect" forever. and I've already changed baud rate to 9600. any chance you know how to fix that ????/by the way. im using ESP8266 Mini.

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

      Hey friend thank for the comment. Have you tried the procedure pinned in the comment section again you need to change mode of ESP to ST. So, make the mode default to ST+AP, by using AT+CWMODE=3 at command.

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

      @@MyEngineeringStuffs I dont see the pinned comment,but i did try using AT+CWMODE=3 at monitor command and sent, nothing happened. sorry i dont know how to change . mode of ESP to ST

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

    Can i using this data from server to control relay with other arduino?

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

      The same will not help you friend. You need to take the reading API.

  • @Sebastian-wj5gy
    @Sebastian-wj5gy 3 ปีที่แล้ว

    Thank you very much my friend, you really helped me.

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

    for arduino mega can it work ?, sorry my english it's no good

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

    I also work on thingspeak but my sensor does not obtained on the thingspeak field.
    Please give me suggestion about it. My sensor is MQ-7

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

      bro did you get the answer for that? cuz im also using mq7 sensor

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

      Hey friend follow like this first read the mq7 sensor and try to print the data on serial then try the above process to send the data to thingspeak in one of the field value.

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

      If possible please try updated process
      th-cam.com/video/cpPMGioijqY/w-d-xo.html

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

    why i cannot upload to the board.... Error compiling for board Arduino/Genuino Uno

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

      Hey friend, if have connected the right board and selected the right board from board manager then the error is some thing different. Please send the actual or send the screen shot of the full error page.

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

    Can you develop code for resistance measurement instead of temp and humidity measurement

  • @отпирайте
    @отпирайте 4 ปีที่แล้ว

    does it update automatically or do I have to upload the code every time to do so?

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

      Its does upload automatically. Please follow the tutorial.

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

    Sir, we tried the code..but we r getting "trying to reconnect" problem again and again. We deleted the code too. Still no change. Can u please reply us soon?

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

      Hey *Megha C V* do check with the baud rate Or you can delete the connecting code and manually connect with the wifi. After connecting the wifi module with wifi just unplug it and connect with the Arduino. So that wifi will automatically connect with your wifi network. And delete the connecting code from Arduino code and give a try . Hope this helps you

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

    the text file provided is not the same as in the tutorial

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

    thanks for the video, I followed the exact thing except that I used ESP01 Adapter, however, it's not connecting to internet. Always "....Trying to Reconnect"

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

      Hey *hulk brain* try to check with your WIFI credentials and if every thing is ok. Then try to delete the code:
      if(ESP8266.find("WIFI CONNECTED
      ")==1)
      {
      Serial.println("WIFI CONNECTED");
      break;
      }
      times_check++;
      if(times_check>3)
      {
      times_check=0;
      Serial.println("Trying to Reconnect..");
      }
      From the while loop in the setup function.

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

      I also have the same problem and did the same solution as you gave, but the problem still persists. Please rply as soon as possible

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

      Hey *Shikha Ujjainiia*
      Delete this code and try again:
      if(ESP8266.find("WIFI CONNECTED
      ")==1)
      {
      Serial.println("WIFI CONNECTED");
      break;
      }
      times_check++;
      if(times_check>3)
      {
      times_check=0;
      Serial.println("Trying to Reconnect..");
      }

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

      Did you guys manage to solve the problem?

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

      Sir now wifi connection problem is solved but a new problem arises that the serial monitor is not showing temperature and humidity values and it also not sending values to the thingspeak. please send me ur email id.

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

    cause it wont even let me compile the program, I used the correct library but it says error compiling cause of the adafruit library

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

      Can you let me know the error type.

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

      Even i had the same problem. I resolved it.
      You can go to sketch/include library/manage libraries. There search for DHT sensor library and select version 1.2.2
      It works correctly. You'll get that error if you're using any other version above 1.2.2

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

    Can i receive data from thingspeak with esp8266-esp01

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

      Yes, you can with read API key. When you will hit the URL, you will get JSON data. Then you need to process the data.

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

      @@MyEngineeringStuffs But none of the video use esp01 for receiving data instead nodemcu is used for receiving data.So what i asked whether can we receive data with esp01 specifically

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

      Yes, friend why not if we are getting the data. Just we need to read the JSON data and process accordingly.

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

    How can we get the temperature without connecting the laptop through USB???

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

      Hey friend this USB cable is only for power supply. You can use any external power supply to power you project or system.

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

    i am getting the issue at connecting with the wifi. Any solution to that??

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

    The code is not in sync with the library file provided.

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

      Hey friend you need to download DHT library only and then you can follow the steps.

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

    well tried it but my serial monitor only show
    Connecting to Wifi
    .
    that's it, nothing happens after that, any reason why?
    *Edit, now it's stuck at trying to reconnect..

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

      same thing happened to me after changingmy baudrate to 9600 and using esp8266 saparately i can easily conect to wifi .... dont know whats wrong with the code

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

    what is the registor value on esp8266

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

    "exit status 1
    Error compiling for board Arduino/Genuino Uno." It is showing this error. How to resolve this error?

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

      Please take a screen shot and send it to support@myengineeringstuffs.com

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

      same issue here

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

    Hi, Can you please tell me on how to connect to
    Wifi WPA2-Enterprise from that requires SSID, username and password? Im using Mega 2650 with ESP -01S. Thank you

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

      can you share all the details via mail. ESP-01S can be work like other ESP-01 module.

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

    I couldn't download the code ! It shows the page doesn't exist. Can u fix it?

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

      Hey friend please check it is in the description box.

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

    thanks a ton sir for uploading this video

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

    what are the thingspeak credentials required
    I have already provided required credentials

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

    hi, I use the updated codes, but it still can't locate dht.h (dht:1:17: error: dht.h: No such file or directory. pls help. thanks.

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

      Hey friend you can download DHT library. Download link is in the description.

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

      thanks so much for this prompt response. I have installed dht.h correctly. but I still get "'dht' can not name a type]" error.

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

      Hey, friend please check the dht library first. Means test the library and get the temperature and humidity value. After that add the esp code and check it. See there are many DHT library available on net so test a good one to get the temp and humi value then proceed. Hope this helps you.

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

      Hi there, like your earnest response. Now code upload is done correctly. I got wifi connect failure by showing " reconecting" repeatly . Why the code dont need to type my wifi ssid and password to get connected?

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

      updating - my esp01s-8066 leds are not blinking. does it normal even before connection, only see the TX on arduino blinks when try to reconnect.

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

    Is there no ssid or password required like node mcu to esp8266 module to internet.

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

      Hey friend every WIFI module needs to connect with. So, you need to provide cccSSID NAME and SSID PASSWORD in the code.

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

      But in code no Ssid and password is written.
      So where we have to write.

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

      Hey friend this piece of code is used to connect with your SSID.
      ser.print("AT+CWJAP=\"AndroidAP\",\"bejq3330\"
      ");
      Where AndroidAP is my SSID NAME
      bejq3330 is my SSID PASSWORD.

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

    got the error about dht library saying dht is not name a type

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

    well explained. But unable to download the Code.

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

    Sir,How could I get wifi module ssid and pass??🙏🙏

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

      Hey friend If you have a HOME wifi connection you should have wifi name (SSID) and password (SSID password) OR if you are using Mobile tethering you should have a WIFI name(SSID) and a password.

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

    why my esp8266.begin there got error ??

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

    how do u fix the compiling error with the dht library

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

      Can you let me know the error type.

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

      it says FindFirstFile C:\Users\Anwar\AppData\Local\Temp\arduino_cache_372182: The system cannot find the file specified.
      Error compiling for board Arduino/Genuino Uno.

  • @Sajidali-pl8ki
    @Sajidali-pl8ki 5 ปีที่แล้ว

    ESP8266 join wifi but serial monitor print("try to reconnect )
    how to fix it

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

      Hey friend Its an issue with your ESP-01 module baud rate. The steps I have mentioned and pinned in the comment please try that. You need to change the baud rate of ESP-01 to 9600 and try the code provided.

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

    can i get the source code i am not able to download from given blog website..!

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

      Please send your requirements to my mail address allabtprojects@gmail.com

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

      Hey friend you can send your requirements to my mail.

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

    Nice video, thanks :)

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

    Thank you for this content sir, I was wondering how we can analyze the data then? TIA

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

    HOw to install DHT library .. it occurs compile error

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

      Hey Aishwarya just extract the zip and copy/paste the library folder into the given location:
      Documents\Arduino\libraries\Here
      and close all the Arduino window and reopen it.

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

    very helpful bro good work

  • @ManojKumar-np4ej
    @ManojKumar-np4ej 4 ปีที่แล้ว +1

    I need thinkspeak program where do i get

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

      Hey friend please explain me little more so that I can help you little more.

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

    how to slove this error
    In file included from C:\Users\Mayur\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:
    C:\Users\Mayur\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory
    compilation terminated.
    Error compiling.

    • @RahulK-bp8ej
      @RahulK-bp8ej 5 ปีที่แล้ว

      the same error is being faced by me after adding the new dht library ... hope i get a reply soon

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

      @@RahulK-bp8ej i so time add this library but still same issue.but now i am slove that one.

  • @NguyenDuy-jd6sm
    @NguyenDuy-jd6sm 5 ปีที่แล้ว +2

    great tutorial m8 !

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

    Hey, thanks for the good video. Can you share the exact schema of the circuit? Thanks :)

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

      Hey, thank you for your words. The download link is in the description box. :)

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

    what about using adlx345?

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

      Do you want to send accelerometer data to thingspeak server? You can send any sensor data to server as per your requirement.

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

      @@MyEngineeringStuffs i can send acelaration data, but my code for send orientation won't work with esp8266, but work with adlx345 - arduino

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

      @@Drakanx can you please contact me on my email ID. I can not understand, what exactly you need.

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

    hello, thanks for the good video but even though I deleted the part that you posted I still have the problem of reconnection and I don't know why 😢😢😢🤦‍♀️🤦‍♀️😢 plzz help me

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

    Can i get all the link or not ? Becaz all the link is not available any more

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

      Hey friend please check it is in the description box.

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

    Good Job,thanks for share

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

    Hi can you re-upload the code? the link you gave is error. Thank you in advance

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

    thank you so much bro!

  • @MaMo-1208
    @MaMo-1208 5 ปีที่แล้ว

    i cant understand the connections..........can u help me

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

    Hello my friend. Very nice. But your links in the comment are dead... and we can't download the code... seeya

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

      Hey, friend sorry for that. My website is under construction please get my mail id from about section and mail me your requirements I will send it ASAP.

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

      @@MyEngineeringStuffs please give me Ur contact no or email id..I am facing trying to reconnect issue..

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

      @@rahulanand7830 hey friend sorry for the inconvenience, please try this video tutorial th-cam.com/video/yHRkv8p5QmU/w-d-xo.html

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

      @@MyEngineeringStuffs Thank u very much I will try to implement this now.If u can share Ur email id or any contact details it will be good for me.I will contact u if some prblm persists.Actually I am stuck in my college major project.If u can guide me ,I will be very thankful.

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

      Yes definitely I will help you. you can mail at allbputprojects@gmail.com

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

    Just wifi cobnecting not to beconneted .. Whyyyyy?

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

    it also says error compiling to the Arduino Uno itself

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

    i am unable to download th code can u create a another link for it

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

    does it worls on every sensor

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

      Hey friend, This code is written to read DHT sensor, If you want to interface any other sensor you need to write the interfacing code of that sensor. And every thing is same for sending the data into thingspeak sever is same.

  • @92IslamicStudio
    @92IslamicStudio 3 ปีที่แล้ว

    Code not working
    Can you please send the code. i will be very grateful to you

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

      Hey, friend please mail me your requirements.
      Thank you

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

    Thank you bro!

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

    list out the credentials for thingspeak

  • @justforfun...7099
    @justforfun...7099 3 ปีที่แล้ว

    why my dht11 showing nan%

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

    how much ohm need resistor ?

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

      Hey friend I have connected 1K ohm resistor. At RST and CH_PD to VCC. Its a pullup condition you can use any resistor above 1K upto 10K(Tested).

  • @ManojKumar-np4ej
    @ManojKumar-np4ej 4 ปีที่แล้ว +1

    Nice bro

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

    Can we use ESP8266?

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

      Hey friend it is developed on ESP8266-01 in AT mode.

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

      @@MyEngineeringStuffs hello sir, I need some help. Do you use gmail?

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

      Hey friend please send your requirement at allabtprojects@gmail.com

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

      I've already emailed you. Please kindly help me out and I've read about your service, I'm ready to pay you.Thank you

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

      Ok
      Hey friend, just give me some time. I will send you all the detail.

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

    i am unable to connect to thingspeak
    give me any solution

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

      Change the Baudrate to 115200 and then try. It will work

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

    I am unavailable to connect to wifi why

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

      Hey friend please follow this tutorial
      th-cam.com/video/cpPMGioijqY/w-d-xo.html
      Hope this will help you.