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

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • #Thingspeak #SendingDataToServer #IoT
    This tutorial is about how we can use the ESP8266 wifi module and Arduino to send sensor data to thingspeak.com. So, here I am using the DHT-11 sensor to fetch the humidity and temperature data and send it to the Thingspeak server.
    Set the Baud Rate of ESP to 9600 using AT Command (AT+CIOBAUD=9600) or you can use (AT+UART_DEF=9600,8,1,0)
    Before downloading please watch the full video to know about the procedure of how to send data because it will help you to understand the protocol and you can build many more things.
    In this tutorial, I am explaining how to test the ESP8266-01 module using Arduino UNO and
    send sensor data into thingspeak server.
    Requirements:
    #1. Arduino UNO
    #2. ESP8266-01 wifi module
    #3. DHT-11 sensor
    #4. Thingspeak server.
    IoT projects Arduino
    esp8266 wifi module Arduino
    esp8266 wifi module
    IoT projects ideas
    IoT projects with Arduino
    IoT projects esp8266
    what are iot projects
    Best Cloud Hosting:
    🌍 bluehost.sjv.i...
    Email Marketing tool:
    📨 myengineerings...
    📨 www.getrespons...
    Download Source Code:
    myengineerings...
    🪔 Please help to grow my channel by subscribing to my channel:
    🎬 / @myengineeringstuffs
    👉 You can visit my website and find interesting projects.
    🌍 myengineerings...
    🚮💲 if you want to contribute:
    Paypal account: allabtprojects@gmail.com
    ⚡🌟⚡🌟 More Projects below🌟⚡🌟⚡
    🧸 Game using Arduino
    🎬 • Two Player Ping Pong G...
    🌍 myengineerings...
    📡 Notice board projects
    🎬 • IOT (internet of thing...
    🌍 myengineerings...
    🎬 • Wireless notice board ...
    🌍 myengineerings...
    🏡 Home Automation Projects
    🔥 Firebase Based Home Automation
    🎬 • Google firebase based ...
    🌍 myengineerings...
    ☁ Google Assistance Home Automation
    🎬 • Google firebase based ...
    🌍 myengineerings...
    ⏱ RTC Projects
    🕜 Schedule ON/OFF devices using RTC
    🎬 • Schedule turn ON/OFF o...
    🌍 myengineerings...
    🕜 Timer, Stopwatch, and Alarm
    🎬 • Schedule turn ON/OFF o...
    🌍 myengineerings...
    🔌💡 AC voltage controlling Projects
    🎬 • ARDUINO AC VOLTAGE CON...
    🌍 myengineerings...
    👉 ⛅🌈Weather Monitoring Project
    🎬 • Weather data monitorin...
    🌍 myengineerings...
    👉🖨️ Thermal Printing Machine DIY
    🌍 myengineerings...
    🎬 • Mini serial TTL Therma...
    🌍 myengineerings...
    ⚠️Disclaimer: It contains Amazon affiliate links. which means I can get a small commission on the sale.
    This might be your indirect help to me.
    🌟 Material Requirements:
    👉 Arduino UNO ⚡ amzn.to/3ryB1ED
    👉 ESP8266-01 ⚡ amzn.to/39qiioC
    👉 Small Bread Board ⚡ amzn.to/3wdPKZ9
    👉 Connectors ⚡ amzn.to/39rwoGy / amzn.to/3mgxB8R
    👉 DHT-11 Sensor ⚡ amzn.to/3ryC2MX / amzn.to/3dzq81W
    👉 DHT-12 Sensor ⚡ amzn.to/39sGbvK
    👉 Variety connectors⚡ amzn.to/3mgxB8R
    👉 Arduino Starter KIT ⚡ amzn.to/3eOYfTU
    👉 HC-05 Bluetooth module ⚡ amzn.to/2Pa9P28
    👉 I2C LCD Module ⚡ amzn.to/32smgt2
    👉 16x2 LCD Module ⚡ amzn.to/3ecu07Y
    👉 0.96" I2C OLED ⚡ amzn.to/3JmV1H1
    👉 Raspberry Pi Pico ⚡ amzn.to/3HgWY5e
    👉 RC522 RFID ⚡ amzn.to/3j6cJUE
    👉 Micro USB Cable ⚡amzn.to/3HEhNJ0
    👉 TCS3200 Color Sensor ⚡amzn.to/3XRQtg9
    👉 PCF8574 IC ⚡amzn.to/3kUzgnP
    👉 NodeMCU⚡amzn.to/3HHGKUa
    👉 MAX7219 32x8 Dot matrix display⚡amzn.to/3RjJU3s
    👉 Variable Voltage Supply⚡amzn.to/3YtdPsD
    👉 USB to TTL⚡amzn.to/3wIcL8d
    👉 RTC Module⚡amzn.to/3wLahG4
    👉 4 Channel Relay⚡amzn.to/3RoX67f
    👉 Thermal Printer⚡amzn.to/3jjL96b
    👉 P10 Display⚡amzn.to/3HouW7Y
    👉 4x4 Keypad⚡amzn.to/3DvDHM5
    👉 Raspberry Pi Pico⚡amzn.to/3XIBMMq
    👉 Micro USB Cable⚡amzn.to/3Hzdmzo

Komentáře • 323

  • @MyEngineeringStuffs
    @MyEngineeringStuffs  Před 5 lety

    *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 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      Can you please share screenshot of the error.

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

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

    • @envyzhateu9715
      @envyzhateu9715 Před 5 lety

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

    • @envyzhateu9715
      @envyzhateu9715 Před 5 lety

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

  • @sameerk12982
    @sameerk12982 Před 4 lety +3

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

  • @collabcostarica9178
    @collabcostarica9178 Před 5 lety +2

    This has been very helpful! Thank You!

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      *Thank you Friend* for your kind words.

    • @farishabeha6174
      @farishabeha6174 Před 5 lety

      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

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

    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?

  • @cattyom3
    @cattyom3 Před rokem +1

    Thank you for sharing valuable information 🙏🏽

  • @amishverma1521
    @amishverma1521 Před 5 lety +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 Před 4 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

      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 Před 4 lety +1

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

  • @sumaiyatabasum1928
    @sumaiyatabasum1928 Před 4 lety +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

  • @NguyenDuy-jd6sm
    @NguyenDuy-jd6sm Před 4 lety +2

    great tutorial m8 !

  • @elijahturatsinze1576
    @elijahturatsinze1576 Před 4 lety +3

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

  • @Sebastian-wj5gy
    @Sebastian-wj5gy Před 3 lety

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

  • @soudeepsil5857
    @soudeepsil5857 Před 5 lety +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.

  • @itmanlife
    @itmanlife Před 5 lety +2

    thank you so much bro!

  • @ibrahimbhavnagarwala7160
    @ibrahimbhavnagarwala7160 Před 4 lety +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  Před 4 lety

      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.

  • @отпирайте
    @отпирайте Před 4 lety +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  Před 4 lety

      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

    • @отпирайте
      @отпирайте Před 4 lety

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

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

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

  • @sruthimolt3870
    @sruthimolt3870 Před 3 lety

    thanks a ton sir for uploading this video

  • @drohnele3741
    @drohnele3741 Před 6 lety +2

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 6 lety

      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  Před 6 lety

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

    • @drohnele3741
      @drohnele3741 Před 6 lety

      no problem

    • @GERALD70840
      @GERALD70840 Před 5 lety

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

  • @zeeshaniqbal5518
    @zeeshaniqbal5518 Před 4 lety

    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.

  • @vonchristianmartycabel559

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

  • @arumteguh2762
    @arumteguh2762 Před 5 lety +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  Před 5 lety

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

  • @ajayupadhyay5994
    @ajayupadhyay5994 Před 5 lety +1

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

  • @Vaigyanikbabashorts
    @Vaigyanikbabashorts Před 3 lety

    very helpful bro good work

  • @sabrineothmen5534
    @sabrineothmen5534 Před 4 lety +1

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

  • @RixtronixLAB
    @RixtronixLAB Před rokem

    Nice video, thanks :)

  • @hrisaris
    @hrisaris Před 5 lety

    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

  • @abbaszergani1518
    @abbaszergani1518 Před 4 lety +1

    Good Job,thanks for share

  • @cacadebaka
    @cacadebaka Před 5 lety +1

    Thank you bro!

  • @sheeva001
    @sheeva001 Před 5 lety

    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 Před 5 lety

    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

  • @shrijanmaram7939
    @shrijanmaram7939 Před 2 lety

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

  • @reb87able
    @reb87able Před 5 lety +1

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

  • @fawzighar392
    @fawzighar392 Před 3 lety

    Good job thanks

  • @saralsaha7938
    @saralsaha7938 Před 5 lety +2

    well explained. But unable to download the Code.

  • @spaceofconfort1751
    @spaceofconfort1751 Před 3 lety

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

  • @linyukcheung6822
    @linyukcheung6822 Před 5 lety

    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

  • @electricalsdihyderabad5117

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

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

  • @g-14magnayemaryeunices.24

    Thank you!!!!!

  • @ashishranjan8929
    @ashishranjan8929 Před 5 lety

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

  • @lingsun5010
    @lingsun5010 Před 5 lety +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  Před 5 lety

      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 Před 5 lety

      @@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

  • @pavankumarchitturi3036
    @pavankumarchitturi3036 Před 5 lety +1

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

  • @faisal8815
    @faisal8815 Před 3 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 3 lety

      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.

  • @jaysonDfernandez
    @jaysonDfernandez Před 3 lety

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

  • @carlospocomani8796
    @carlospocomani8796 Před 5 lety

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

  • @shubhamkhandelwal2393
    @shubhamkhandelwal2393 Před 3 lety

    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

  • @subhamagarwal3266
    @subhamagarwal3266 Před 5 lety

    What software do you use to make the circuit diagrams?

  • @turulob1055
    @turulob1055 Před 5 lety

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

  • @batman1267
    @batman1267 Před 4 lety

    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

  • @thamkeihon5801
    @thamkeihon5801 Před 4 lety

    why my esp8266.begin there got error ??

  • @mandarxsalvi
    @mandarxsalvi Před 5 lety

    what is the registor value on esp8266

  • @pavankumarchitturi3036

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

  • @shirishranjit9677
    @shirishranjit9677 Před 5 lety

    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  Před 5 lety

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

    • @shirishranjit9677
      @shirishranjit9677 Před 5 lety +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  Před 5 lety

      @@shirishranjit9677 Best of luck friend

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      @@shirishranjit9677 Best of luck friend

  • @navya6452
    @navya6452 Před 4 lety

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

  • @pavankumarchitturi3036

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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

  • @arkadeepdatta2104
    @arkadeepdatta2104 Před 3 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 3 lety

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

  • @отпирайте
    @отпирайте Před 4 lety

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

  • @ManojKumar-np4ej
    @ManojKumar-np4ej Před 4 lety +1

    Nice bro

  • @CC-er7ln
    @CC-er7ln Před 4 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

      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

  • @vennamonica1669
    @vennamonica1669 Před 5 lety

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

  • @ManojKumar-np4ej
    @ManojKumar-np4ej Před 4 lety +1

    I need thinkspeak program where do i get

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

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

  • @WADiviNavya
    @WADiviNavya Před 4 lety

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

  • @galihnovan8148
    @galihnovan8148 Před 5 lety

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

  • @omkarsamant93
    @omkarsamant93 Před 6 lety +1

    Good stuff

  • @VJ-gv1mz
    @VJ-gv1mz Před 3 lety

    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  Před 3 lety

      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.

  • @justforfun...7099
    @justforfun...7099 Před 2 lety

    why my dht11 showing nan%

  • @vignaeshgopu5490
    @vignaeshgopu5490 Před 4 lety

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

  • @aamirehsankhan
    @aamirehsankhan Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

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

  • @aisyahain1
    @aisyahain1 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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.

  • @hulkbrain6896
    @hulkbrain6896 Před 6 lety +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  Před 6 lety

      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 Před 5 lety +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  Před 5 lety

      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 Před 5 lety

      Did you guys manage to solve the problem?

    • @shikhaujjainia8591
      @shikhaujjainia8591 Před 5 lety +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.

  • @riddhisaireddy6096
    @riddhisaireddy6096 Před 5 lety

    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  Před 5 lety

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

    • @riddhisaireddy6096
      @riddhisaireddy6096 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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 Před 5 lety +1

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

    • @vennamonica1669
      @vennamonica1669 Před 4 lety

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

  • @meghacv2733
    @meghacv2733 Před 5 lety

    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  Před 5 lety

      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

  • @progyansarma8873
    @progyansarma8873 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

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

  • @francescoorefice5201
    @francescoorefice5201 Před 6 lety +2

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 6 lety

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

  • @riteshkumbhare6463
    @riteshkumbhare6463 Před 5 lety

    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 Před 3 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 3 lety

      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  Před 3 lety

      If possible please try updated process
      czcams.com/video/cpPMGioijqY/video.html

  • @vhao6514
    @vhao6514 Před 4 lety

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

  • @kolisettysasiram311
    @kolisettysasiram311 Před 4 lety

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

  • @raimondiinc.5970
    @raimondiinc.5970 Před 5 lety

    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  Před 5 lety

      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 Před 5 lety +1

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

    • @raimondiinc.5970
      @raimondiinc.5970 Před 5 lety +1

      Thank you

    • @raimondiinc.5970
      @raimondiinc.5970 Před 5 lety +1

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

    • @raimondiinc.5970
      @raimondiinc.5970 Před 5 lety +1

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

  • @sayanipaul7240
    @sayanipaul7240 Před 4 lety +1

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

      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.

  • @muhamadraihan4052
    @muhamadraihan4052 Před 5 lety

    Just wifi cobnecting not to beconneted .. Whyyyyy?

  • @waweyonor6052
    @waweyonor6052 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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 Před 5 lety

      @@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 Před 5 lety

      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  Před 5 lety

      Please mail me. So that I can help you.

    • @waweyonor6052
      @waweyonor6052 Před 5 lety

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

  • @anwaralshamkhany1569
    @anwaralshamkhany1569 Před 5 lety

    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  Před 5 lety

      Can you let me know the error type.

    • @shashank1250
      @shashank1250 Před 5 lety

      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

  • @polashchandramondal79
    @polashchandramondal79 Před 6 lety +1

    nice video

  • @kamesha5973
    @kamesha5973 Před 3 lety

    Can i receive data from thingspeak with esp8266-esp01

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 3 lety

      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 Před 3 lety

      @@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  Před 3 lety +1

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

  • @SupremeNoble
    @SupremeNoble Před 5 lety

    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 Před 5 lety

      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

  • @Jayesh428
    @Jayesh428 Před 2 lety

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

  • @arsalanahmed2160
    @arsalanahmed2160 Před 5 lety

    circuit diagram mil jae gi?

  • @anwaralshamkhany1569
    @anwaralshamkhany1569 Před 5 lety

    how do u fix the compiling error with the dht library

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      Can you let me know the error type.

    • @anwaralshamkhany1569
      @anwaralshamkhany1569 Před 5 lety

      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.

  • @aishwaryashinde3726
    @aishwaryashinde3726 Před 5 lety

    HOw to install DHT library .. it occurs compile error

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety +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.

  • @fatihaoutamante3362
    @fatihaoutamante3362 Před 5 lety

    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

  • @priyeshmalviya1886
    @priyeshmalviya1886 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

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

    • @priyeshmalviya1886
      @priyeshmalviya1886 Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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.

  • @Sajidali-pl8ki
    @Sajidali-pl8ki Před 5 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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.

  • @abhijeetkumar9286
    @abhijeetkumar9286 Před 5 lety

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

  • @pavankumarchitturi3036

    list out the credentials for thingspeak

  • @jayaprakashsaththasivam2387

    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  Před 3 lety

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

  • @geethsagarbayana4402
    @geethsagarbayana4402 Před 3 lety

    I am unavailable to connect to wifi why

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 3 lety

      Hey friend please follow this tutorial
      czcams.com/video/cpPMGioijqY/video.html
      Hope this will help you.

  • @MDBElectrosoft
    @MDBElectrosoft Před 5 lety +1

    Are you sure this code works

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      Hey *MDB* for me the code works fine every time tried. But I am seeing that most the board are not working. Just try the code.

  • @huzaifakhan2853
    @huzaifakhan2853 Před 5 lety

    does it worls on every sensor

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 5 lety

      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.

  • @christopheclerc7428
    @christopheclerc7428 Před 4 lety +1

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

      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 Před 3 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 3 lety

      @@rahulanand7830 hey friend sorry for the inconvenience, please try this video tutorial czcams.com/video/yHRkv8p5QmU/video.html

    • @rahulanand7830
      @rahulanand7830 Před 3 lety

      @@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  Před 3 lety

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

  • @wonderwang1585
    @wonderwang1585 Před 5 lety

    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  Před 5 lety

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

    • @wonderwang1585
      @wonderwang1585 Před 5 lety

      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  Před 5 lety

      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 Před 5 lety

      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 Před 5 lety

      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.

  • @motilalsuthar4048
    @motilalsuthar4048 Před 3 lety

    thanks

  • @Drakanx
    @Drakanx Před 4 lety

    what about using adlx345?

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

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

    • @Drakanx
      @Drakanx Před 4 lety

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

    • @MyEngineeringStuffs
      @MyEngineeringStuffs  Před 4 lety

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