Arduino with ThinkSpeak | Monitoring IoT data over ThingSpeak | ThingSpeak with esp8266 | 2024

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ค. 2024
  • #internet_of_things #ThinkSpeak #esp8266
    In this video, we will see how we can send sensor data to thinkspeak with Arduino Uno using esp8266.
    The link to thinkspeak website:- thingspeak.com/
    In this video, we're going to build a website to monitor IoT data over ThingSpeak. We'll be using the ThinkSpeak platform to broadcast our data to the world, and the esp8266 microcontroller to act as our IoT controller.
    If you're interested in IoT or smart cities, then this video is for you! We'll cover everything from setting up your ThingSpeak account to building our website and sending our data over ThingSpeak. By the end of this video, you'll have everything you need to start monitoring your IoT data!
    In this video, we're going to show you how to monitor IoT data over ThingSpeak with an esp8266 board and our ThinkSpeak website. We'll also talk about how to use ThingSpeak with an espressif board to control your sensors.
    If you're interested in monitoring IoT data or controlling your sensors with your computer, then this video is for you! We'll show you how to connect your esp8266 board to our ThinkSpeak website and use it to monitor data streams from your sensors. Plus, we'll explain how to use our ThinkSpeak platform to control your devices
    In this tutorial, we're going to learn how to use Arduino with ThinkSpeak to monitor IoT data over ThingSpeak. We'll also be using ThingSpeak with an esp8266 to send the data to a website. This training will help you learn how to use Arduino and ThingSpeak to monitor IoT data.
    So are you ready to learn how to use Arduino and ThingSpeak to monitor IoT data? In this tutorial, we'll be building a simple project that will help you learn everything you need to know! We'll be using Arduino and ThingSpeak to monitor a sensor, and we'll be transferring the data to a website for analysis. So whether you're a beginner or an expert in Arduino and Thing

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

  • @makersgroup
    @makersgroup  ปีที่แล้ว +15

    #include
    #define RX 2 // TX of esp8266 in connected with Arduino pin 2
    #define TX 3 // RX of esp8266 in connected with Arduino pin 3
    String WIFI_SSID = "WIFI NAME";// WIFI NAME
    String WIFI_PASS = "WIFI PASSWORD"; // WIFI PASSWORD
    String API = "Write API KEY";// Write API KEY
    String HOST = "api.thingspeak.com";
    String PORT = "80";
    int countTrueCommand;
    int countTimeCommand;
    boolean found = false;
    SoftwareSerial esp8266(RX,TX);
    void setup() {
    Serial.begin(9600);
    esp8266.begin(115200);
    sendCommand("AT",5,"OK");
    sendCommand("AT+CWMODE=1",5,"OK");
    sendCommand("AT+CWJAP=\""+ WIFI_SSID +"\",\""+ WIFI_PASS +"\"",20,"OK");
    }
    void loop() {
    int tem=random(20,30); // int tem= analogRead(A0)
    int hum=random(70,80); //int tem= digitalRead(11)
    int light=random(0,100); //int tem= AnalogRead(A0)
    String getData="GET /update?api_key="+ API+"&field1="+tem+
    "&field2="+hum +"&field3="+light;
    sendCommand("AT+CIPMUX=1",5,"OK");
    sendCommand("AT+CIPSTART=0,\"TCP\",\""+ HOST +"\","+ PORT,15,"OK");
    sendCommand("AT+CIPSEND=0," +String(getData.length()+4),4,">");
    esp8266.println(getData);
    delay(1500);
    countTrueCommand++;
    sendCommand("AT+CIPCLOSE=0",5,"OK");
    }
    void sendCommand(String command, int maxTime, char readReplay[]) {
    Serial.print(countTrueCommand);
    Serial.print(". at command => ");
    Serial.print(command);
    Serial.print(" ");
    while(countTimeCommand < (maxTime*1))
    {
    esp8266.println(command);//at+cipsend
    if(esp8266.find(readReplay))//ok
    {
    found = true;
    break;
    }
    countTimeCommand++;
    }
    if(found == true)
    {
    Serial.println("OK");
    countTrueCommand++;
    countTimeCommand = 0;
    }
    if(found == false)
    {
    Serial.println("Fail");
    countTrueCommand = 0;
    countTimeCommand = 0;
    }
    found = false;
    }

    • @vishruthakolpe8292
      @vishruthakolpe8292 11 หลายเดือนก่อน

      Sir can please which board we have to choose if we are using Arduino Uno and esp8266-01 module

    • @vishruthakolpe8292
      @vishruthakolpe8292 11 หลายเดือนก่อน

      Is any pre setting has to be if are using wifi module for very first time

    • @Assel_800
      @Assel_800 7 หลายเดือนก่อน +1

      4:05

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

    Super useful. Got my temp logger working. Thanks.

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

      Thank you for your comment

  • @molepistol
    @molepistol 8 วันที่ผ่านมา +1

    thanks for the code... the video was ok, but the code was needed... it explains the at commands needed to directly connect to thingspeak... thanks again

    • @makersgroup
      @makersgroup  8 วันที่ผ่านมา +1

      Thank you for your comment

  • @snehashisbose985
    @snehashisbose985 6 หลายเดือนก่อน +2

    where can i get to learn about writing source code for different projects

  • @lifeisbeautiful0401
    @lifeisbeautiful0401 7 หลายเดือนก่อน +2

    Can u tell how to download the data

  • @bbbilgi
    @bbbilgi 3 หลายเดือนก่อน +1

    all things in my serial monitor is fail. is that because of my chipset esp8266EX ? not esp8266 . i replaced all 8266 to with 8266EX still doesnt work.

  • @jiwoongchingu
    @jiwoongchingu 8 หลายเดือนก่อน +2

    Hello sir i want to ask. is it because my license type is free so the data that uploaded in thingspeak is not stable?

    • @makersgroup
      @makersgroup  8 หลายเดือนก่อน +1

      I do not think so, try to amend your code

  • @anasslaafou8402
    @anasslaafou8402 4 หลายเดือนก่อน +1

    @makersgroup do you use any resistors in the project, and if so can you tell me what resistors I need to implement this with dht11 sensor for temperature and humidity data ?

    • @makersgroup
      @makersgroup  4 หลายเดือนก่อน +1

      You do not need any resistor for connecting dht11 with arduino , but you must make sure to use sutable arduino pin both in the hardware and software you can get a lot of resourses online to made the connection but agin you mast dohble check the pin both in the hardware and software or you must use the same pin

  • @UmairbinMansoor
    @UmairbinMansoor 14 วันที่ผ่านมา

    Which Arduino IDE version are you using?

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

    RX , TX wrong connected in show figure 4:23

  • @user-fo8tt4er2f
    @user-fo8tt4er2f 5 หลายเดือนก่อน +1

    without a sensor as an input?
    which data did you upload in the server?

    • @makersgroup
      @makersgroup  5 หลายเดือนก่อน +1

      What you upload is any sensor data you atached to your hardware this tutorial is made to help you how you can upload the data , if you see the video properly I am 100% sure that you can upload any sensor data , but if you wish to know how to interface sensor to arduino board navigate to my other tutorial

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

    Sir i have node mcu can i use like WiFi module

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

      Yes, You can use node mcu for your project nodemcu= arduino + wifi module

  • @user-hl1pc7wq8z
    @user-hl1pc7wq8z 4 หลายเดือนก่อน +2

    can i use for MQTT to publish and subscribing the data :?\

    • @makersgroup
      @makersgroup  4 หลายเดือนก่อน

      I am not sue if you can in think speak but you can use for in nodered

  • @user-hl1pc7wq8z
    @user-hl1pc7wq8z 4 หลายเดือนก่อน +2

    i want to know about how to i m use it in mqtt

    • @makersgroup
      @makersgroup  4 หลายเดือนก่อน

      I am note sure in case of thinkspeak but it is easy to implement it via nodered iot platform if you need me to assist you you can talk to me via teammaedot@gmail.com

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

    I did the same. But all AT commands are failing. When I manually type them, it's working. Why?

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

      To be honest, I have no idea about this issue before but I advise you to copy and paste the code rather than typing and also change wifi_ssid, wifi_pass, and API with your own data.

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

      @@makersgroup yes.. What I did was, just copied and pasted the code 🥴💔😅 & changed those... 🤷🏻‍♂️

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

      @@anushangapavith7162 I am sorry, I am not able to help you, but if you figure out the reason please share it with us.

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

      @@makersgroup you replying made me subscribe

    • @CromwellCreaTEGY
      @CromwellCreaTEGY 11 หลายเดือนก่อน

      I tried the same and failed, so what I did is that I programmed the esp8266-01 so that it functioned independently. So i programmed it to receive sensor values from the sensor and send it to thingspeak,... and It worked. Indipedent of the arduino uno,,.... What I used from arduino was only the power 3.3v

  • @gianderilizbethzilpazapata4650
    @gianderilizbethzilpazapata4650 10 หลายเดือนก่อน +1

    Hola, que hace si todo me sale Fail :(

    • @makersgroup
      @makersgroup  10 หลายเดือนก่อน +1

      Please make your issue specific

    • @gianderilizbethzilpazapata4650
      @gianderilizbethzilpazapata4650 10 หลายเดือนก่อน

      @@makersgroup digo que probe tu código pero cuando deberia salir ok después de cada línea me sale fail

  • @harish956
    @harish956 9 หลายเดือนก่อน +1

    where is the source code

    • @makersgroup
      @makersgroup  9 หลายเดือนก่อน +1

      You can find on the comment section

  • @Nadnazymmultiverse
    @Nadnazymmultiverse 11 วันที่ผ่านมา +1

    Your coding are wrong

    • @makersgroup
      @makersgroup  11 วันที่ผ่านมา +1

      Let us know where is the wrong?