Sending data to thingspeak website using esp8266 Arduino Tutotial
ฝัง
- เผยแพร่เมื่อ 10 พ.ค. 2024
- In this video, we will learn how to send data from Arduino to a website named ThingSpeak through ESP8266 - Step by Step.
★★★Buy your electronics components at the best price. Visit now:★★★
www.dpvtechnology.com
Thingspeak website link:
thingspeak.com
Circuit Diagram:
drive.google.com/open?id=1COi...
Code Link:
drive.google.com/open?id=1mwZ...
Like our facebook page:
/ dpvtechnology
Subscribe us on youtube:
th-cam.com/users/dpvtechnology...
Few things should have been told to people who are asking for the error they are facing:
- which Board is selected should be told -UNO/General ESP8266 Module ?
- if the code is programmed into the ESP8266 module , then Uno RESET pin has to be connected to GND of UNO to bypass ATMEGA328P ?
-While uploading the code to ESP8266 whether GPIO0 should be connected to GND or not?
Also to add that while using ESP8266-ESP01 /ESP01S:
- Firmware has to be updated
- With the help of AT commands need to check if the wifi chip is working or not
- then to upload the data into ESP8266 , what pin configurations should be considered , what kind of data is programmed into
-then after programming the ESP8266 , kind of code that can be written for Arduino UNO
but the video has explained few things good. Thankyou for your effort.
please can you clarify , thanks
Did you got answer for these questions you mentioned.If so can you please share the answer through comment please
Thank you for existing...
I tried thousand other long tutorials on how to implement esp8266 but no results
You solved it in 8 minutes!
THANK YOU SO MUCH SIR !! thanks a ton ..your program and video is very helpful.
did u compile it
Good video. You have helped several people to send sensor data to ThingSpeak from an Arduino and an esp8266(esp01) module. Thank you!!!
i am getting problem due to AT+CIPCLOSE=0 Fail
and also it is not uploading on website
Please do not ignore the message
@@qasimrasheed9182 see th-cam.com/video/bq-_4o9-YKc/w-d-xo.html
THANK U SO MUCH THIS WAS A GREAT HELP
GOD BLESS U
Thank you for the video. I've tried three different tutorials to interface an Arduino Uno with an ESP8266 and this is the first one that actually worked.
I am not getting output. Rather than I am getting AT+CIPCLOSE=0 Fail
and also it is not uploading on website.
Please do not ignore
@@qasimrasheed9182 Same here
God bless you sir! Thanks a lot
Thank You Sir !
Best Wishes !
Nice .I tested it personally.It worked properly.
thankyou very much works great!!!
Thanks. It is very useful. Could you show me how to catch response data?
Great video, thank you !
Thanks for the video
If i use arduino mega 2560 instead of arduino uno, will the procedures all be the same? thank you.
Thank you so much
I also want to attach LCD 20x4 to show Temperature And Humidity
How?
will it send a text message once the sensor threshold like ultrasonic sensor is triggered?
Arduino: 1.8.13 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled, nodemcu, 26 MHz, 40MHz, DOUT (compatible), 512K (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Sketch uses 268296 bytes (53%) of program storage space. Maximum is 499696 bytes.
Global variables use 27632 bytes (33%) of dynamic memory, leaving 54288 bytes for local variables. Maximum is 81920 bytes.
An error occurred while uploading the sketch
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
think you soo much is work
I have a problem with the failed AT+CIPLOSE part. How to handle it?
if u connect rx pin without voltage divider it will be fried!!
sorry when i click serial monitor then screen display AT+CHIPSEND=0,5 Fail. What a problem here ?
Thank you
Hi tnx for your vedio could you please tell me ho i can write AT COMMAND to read in Arduino
esp4:14:23: error: 'SoftwareSerial esp8266' redeclared as different kind of symbol
SoftwareSerial esp8266(RX,TX);
bro did you got solution for this
@@kvishnu9899 nope
I change it to Arduino with built-in wifi Arduino
same problem
Did You guys get the solution to the problem?
sir what will the change in program if we need to connect more than one sensor
Hye i want to ask how to send data to thingspeak if using public network that have no password
it's possible to do it with arduino mega ? please i need help
Very nice men wtf you teach me how the life is working
I am getting error at Softwareserial(RX,TX)
Line 14
Thanks, but isnt it a bit slow?
I'm getting ERROR: 'SoftwareSerial esp8266 redeclared as different kind of symbol'
Please Help
Congratulations on the video, but I wanted to get rid of the doubts on the scheme without resistors and external power supplies. So can I use this scheme with Arduno Nano? With Arduino Uno it works but my concern is that it has to run for many hours. Thanks a lot.
following this comment
exit status 1
'void std::setup()' conflicts with a previous declaration...
how does this work with esp-01?? please help
Thanks for the video. I got problem to learn coding the replacement of the sensor. Can you help? Just give ideas what to replace the random(1000), with?
what use board ?
Can i receive data from thingspeak with esp8266-esp01
how i send the data to same API but with two different ESP8266 Module.
I am getting fail for every AT commands in serial monitor . what will be the solution?
How if i want to connect 2 sensors ?
sir how to we replace with our sensor code . I did not get that.
I can't purchase from your website and I can't enter to cart it shows incorrect password
Am getting error like send command not declared in this scope y
Sir I have completely got Your video .. But I am getting the Error Message. "SofwareSerial esp826 redeclared as different symbol" how to come out of that error ??
I had the same error show up for me when I selected board as 'ESP8266 Generic'
This was solved when I selected 'Arduino Uno' as my board.
Tools>Board:>Arduino AVR Boards > Arduino Uno
I replaced 'esp8266' with 'my_esp8266' but On Serial monitor showing-- Fail
I need logiciel simulation for this project please
can we send information to any website like you did, if they allow me to read/write into their data base....?
yes, Just change the HOST and Port with API key(No Need if socket allow all clients, else need this too)
is it possible for firebase rest API?
I am getting fails when I checked through the Serial Monitor
Create A Circuit To Display A Message Internet Is Connected And Then When The Device Is
Connected To Thingspeak And Sending Data Successfully To It, Display All This In LCD
Display!!!
why using software serial instead of hardware serial
Arduino: 1.8.15 (Windows Store 1.8.49.0) (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
my_temp:17:23: error: 'SoftwareSerial esp8266' redeclared as different kind of entity
17 | SoftwareSerial esp8266(RX,TX);
| ^
In file included from C:\Users\hp\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266/Arduino.h:42,
from sketch\my_temp.ino.cpp:1:
C:\Users\hp\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.0\cores\esp8266/core_esp8266_version.h:122:11: note: previous declaration 'namespace esp8266 { }'
122 | namespace esp8266 {
| ^~~~~~~
C:\Users\hp\Desktop\my_temp\my_temp.ino: In function 'void setup()':
my_temp:21:10: error: expected primary-expression before '.' token
21 | esp8266.begin(115200);
| ^
C:\Users\hp\Desktop\my_temp\my_temp.ino: In function 'void loop()':
my_temp:33:9: error: expected primary-expression before '.' token
33 | esp8266.println(getData);delay(1500);countTrueCommand++;
| ^
C:\Users\hp\Desktop\my_temp\my_temp.ino: In function 'void sendCommand(String, int, char*)':
my_temp:68:12: error: expected primary-expression before '.' token
68 | esp8266.println(command);//at+cipsend
| ^
my_temp:69:15: error: expected primary-expression before '.' token
69 | if(esp8266.find(readReplay))//ok
| ^
exit status 1
'SoftwareSerial esp8266' redeclared as different kind of entity
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Can this code work for any other web app? Cause I want to send sensor readings to a web app that I created
following this comment.
How can i replace my sensor code and return it as you say in the video ?? plss help me
Are you from Asia? Well you can see that return statement right there you have to return the value which you obtained from the sensor
I'm working on a major project but I'm stuck at this point I want some help basically to ask some qns so that I can get my ans . How can I contact you ? Please sir 🥺 , it really helps me
this works great but from what i can understand the arduino generates a random number every 1.5 sec but thingspeak gets a new entry every 2 min, any way to fix this?
Try to add a delay of two minutes
@@lasyaganapathi9194 I fixed it, thing speak free account takes delay of 20sec
i failed to upload data
please help me
what is string port =80
sir I follow all the above but why I get fail to connect to thingspeak?
Me too
How can i solve thid problem pleaaase
@@spaceofconfort1751 were you able to solve it???
did you find solution?
I am getting "Fail" on all lines. Also, the schematic shows RX to pin 3 and TX to pin 2, in the code this is reversed. I tried changing then but to no avail
For me too
Please help
Me too
@@mohammedismail-tj7ul Me too
did you find solution?
On Serial monitor showing-- Fail
replace 'esp8266' with 'my_esp8266'
- comment from siddhant rokade
0. at command => AT Fail
0. at command => AT+CWMODE=1 Fail
hi how to solve it?
@Ghada Ammar hi i already solve the problem first you need Flash or Program ESP8266 AT Firmware on ESP8266 (ESP-01) Module first
@@icametoplay4478 how to do that
I keep getting "Failed to connect to ESP8266: Timed out waiting for packet header
"
Have u updated your esp8266 to the latest firmware? I experienced the same problem and it works after updating the firmware.
You send data from arduino to esp without programmed the ESP ?!!!!
Hello , Sir. The only info displayed in serial monitor were
0. at command => AT OYI
1. at command => AT+CWMODE=1 OYI
2. at command => AT+CWJAP="TakeMeThere","happynewyr"
why is that so? and its not even updating in thingspeak. Hope you would notice this query. Thank you so much, Sir.
mine too and i have a fail response cipclose code.. but mine is updating in thingspeak.. but with delay not realtime.. a just refresh the site and theres the update..
@@resjandonero2221 i am getting problem due to AT+CIPCLOSE=0 Fail
and also it is not uploading on website
AT+CIPCLOSE=0 IS COMING FAIL
An error occurred while uploading the sketch
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
its can solve by two reason 1 close seriol monitor if open and second is remove rx tx connection while uploading after uploding connect rx tx pin and resat esp28266
@@kaliyobavo9697 how ?
Hi all, I've managed to make this work by 1/ Flashing the factory ESP8266 following this: th-cam.com/video/Ag_Yk_0AFxs/w-d-xo.html and adjusting the speed to 9600 , and 2/ changing the esp8266 speed to 9600 across the void setup in your code.
Also,remember to cross Tx-Rx and Rx-Tx ,if u don’t then it won’t work
Hello, I have tried it but it is not working. It gives me FAIL at every command. Where could be the problem?
Did you solve this problem?
Even i'm getting the same problem.Pls help!
Me too faced this problem plz someone help me out
#metoo
He must have forgot to tell us something because I get all FAILS too
when i am connecting esp module with arduino, port is not showing
have u been able to fix this?
@@ibrahimbhavnagarwala7160 no
None of your video's code work
I'm getting an error "Fail" in serial monitor while connecting esp01 what should I do ?
did you find solution?
@@decadewgame9802 not yet it's been an year.
sorry sir, i found the error like SoftwareSerial esp8266' redeclared as different kind of symbol
SoftwareSerial esp8266(RX,TX). What is the problem ? Please give me the solution. Thank
Getting Same Error Please Help....
Add software serial library
Esp8266 is taking long time to respond.
from channel there is no reply
Plz improve ur accent I respect ur knowledge
the number of strings Crash the program in one hour
it gives fails
have u been able to fix it?
@@ibrahimbhavnagarwala7160 i used other code and worked
@@Drakanx which other code?
@@ibrahimbhavnagarwala7160 basically the example from arduino, just change 2°page(secret. h) with ssid pass and id
@@Drakanx i cant get you
Also remember to cross Tx-Rx and Rx-Tx ,if u don’t then it won’t work
Can you please elaborate on this? I think I may have been facing this issue but quite do not understand it.
Thanks,
Raj
When I integrate the thingspeak in my website, there is no compiling error but my websites connection is always interrupted and always ended up the site can't be reached.
Any advise?
'SoftwareSerial esp8266' redeclared as different kind of symbol
i am getting above type of error...,can you please tell me how to resolve this error....????
did you fix it?
replace 'esp8266' with 'my_esp8266'
@@roksid3 hey did you compile the code?
On Serial monitor showing-- Fail
replace 'esp8266' with 'my_esp8266'
- comment from siddhant rokade
@@JohnLudgero still getting FAIL
@@JohnLudgero is it working
@@durgaprasad471 Great
@@JohnLudgero Thanks. But it is still working temperamentally.