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
#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;
}
Sir can please which board we have to choose if we are using Arduino Uno and esp8266-01 module
Is any pre setting has to be if are using wifi module for very first time
4:05
Super useful. Got my temp logger working. Thanks.
Thank you for your comment
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
Thank you for your comment
where can i get to learn about writing source code for different projects
Can u tell how to download the data
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.
Hello sir i want to ask. is it because my license type is free so the data that uploaded in thingspeak is not stable?
I do not think so, try to amend your code
@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 ?
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
Which Arduino IDE version are you using?
RX , TX wrong connected in show figure 4:23
without a sensor as an input?
which data did you upload in the server?
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
Sir i have node mcu can i use like WiFi module
Yes, You can use node mcu for your project nodemcu= arduino + wifi module
can i use for MQTT to publish and subscribing the data :?\
I am not sue if you can in think speak but you can use for in nodered
i want to know about how to i m use it in mqtt
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
I did the same. But all AT commands are failing. When I manually type them, it's working. Why?
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.
@@makersgroup yes.. What I did was, just copied and pasted the code 🥴💔😅 & changed those... 🤷🏻♂️
@@anushangapavith7162 I am sorry, I am not able to help you, but if you figure out the reason please share it with us.
@@makersgroup you replying made me subscribe
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
Hola, que hace si todo me sale Fail :(
Please make your issue specific
@@makersgroup digo que probe tu código pero cuando deberia salir ok después de cada línea me sale fail
where is the source code
You can find on the comment section
Your coding are wrong
Let us know where is the wrong?