I have searched a milion websites, instructables, and more... but no luck for my case.
I would just like to know if it's something like this possible.
My current setup is: (I have Nano and Uno in possession so I can use any of those)
Currently my sketch is fetching temperature from temperature sensor.
Sending output to serial:
DATA, TIME, TEMPERATURE
This output is going into excel sheet with PLX-DAQ - Works perfectly.
In same time, when this output goes to excel also my LCD screen refreshes;
It gives you:
TEMPERATURE: x C
so In same time I managed to get info into serial and LCD.
For me it doesn't matter, I do not need screen or excel.
I purchased ESP8266.
My problem is:
How to make that ESP8266 reads what my board is sending, and to send it on my mysql base.
I know I have searched there are a lot of examples, but non of them fits my needs.
Just if anyone could guide me in right direction or to show me something similar and I will find my way out:
Instead of data going to serial or LCD, to make it go to ESP8266 which will send it to my website?
I know how to make that ESP8266 sends data to website, but the thing is how to make him recieve data from UNO/NANO?
But nowhere is explained which part of the code is going to ESP8266 and which part I'm uploading to Arduino Uno
ALL of the code goes to the Arduino. The Arduino then sends AT commands to the ESP8266. The only challenge is knowing what the AT commands do, and how to tailor them to do what you want.
There are libraries that hide the AT commands from you, presenting more useful APIs.
There are plenty of examples around that show how to make GET requests using the ESP8266. Change the server to your server. Change the script to your PHP script name/location. Change the name=value pairs to the names that your script expects, and substitute the appropriate values. Job done.
Once you have the PHP script developed on your server to write to your database, that is.
I want my sensors to be connected to Arduino Uno board, and to send them online using ESP8266.
Before I could get AT replays from my ESP8266 but now I cannot get it anymore because I tried to put web server sketch on ESP8266 and after that I cannot get AT replays anymore.
I got my Arduino Uno, and DHT11 sensor connected to it.
There were several succesful attempts to post results on display, on serial, and all works great.
I started with new code from scratch:
#include <dht.h>
dht DHT;
#define DHT11_PIN 7
void setup()
{
Serial.begin(9600);
}
void loop()
{
int val;
int chk = DHT.read11(DHT11_PIN);
val = DHT.temperature;
What do I need to put on my ESP8266 to get data from arduino?
I know how to make PHP part for the website, but biggest issue for me is how to make arduino and ESP to communicate?
What I need to add to this current script? and what do I need to put on ESP?
I've seen a lot of tutorials but there is no explain what to put where.
Some say to connect RX-TX some say RX-RX, some say to put ESP on different ports...
I am facing the same issue here. Did you find any solution? Please do let me know.
I have connected Arduino nano to esp8266 using rx, tx. If i open my serial terminal, i can send AT commands to ESP. It works perfect.
I accessed esp8266 IP using browser and i can see the request coming into esp8266 using serial terminal, but the issue is, if i program the arduino to send AT commands to ESP, it does not work.
Also, to turn on LED 13 when esp receive web request, is also not working.