I have an ESP-01 which does not have many GPIO pins for me to connect the few sensors that I have. I need to send data from all these sensors to Firebase. I need to go through Arduino Uno -> ESP01 -> Firebase. I have AT Firmware in ESP and the Uno is communicating with it via Software Serial. The only thing remaining is to send the data collected to Firebase. Can someone please help me? I am new to Arduino, I can't find codes for that online and I have been struggling with this for over 1 week now.
I have an ESP-01 which does not have many GPIO pins for me to connect the few sensors that I have. I need to send data from all these sensors to Firebase. I need to go through Arduino Uno -> ESP01 -> Firebase. I have AT Firmware in ESP and the Uno is communicating with it via Software Serial. The only thing remaining is to send the data collected to Firebase. Can someone please help me? I am new to Arduino, I can't find codes for that online and I have been struggling with this for over 1 week now.
Seems liek the Arduino should have the 'sensors' connected to it..
then send the data (serially) to the ESP module.. then the module should send this data out to 'Firebase'..
is this correct? (would have been a simpler way to put it) Not sure why you are mentioning the lack of I/O pins on the ESP? are you trying to overcome that? and not have the sensors connected to the Arduino?
Also.. what is Firebase? I have never heard of it? and you didnt post a link on it. Does it use an API? Does the data require it be in a certain format? You havent shared.
The ESP-01 module has very few I/O pins broken out.
Use a WeMOS or NodeMCU module and you have all 11 GPIO plus the one analog input pin of the ESP8266 processor available (by changing the flash mode you can even make 2 more pins available - never tried this myself, though).
xl97:
Seems liek the Arduino should have the 'sensors' connected to it..
then send the data (serially) to the ESP module.. then the module should send this data out to 'Firebase'..
is this correct? (would have been a simpler way to put it) Not sure why you are mentioning the lack of I/O pins on the ESP? are you trying to overcome that? and not have the sensors connected to the Arduino?
Also.. what is Firebase? I have never heard of it? and you didnt post a link on it. Does it use an API? Does the data require it be in a certain format? You havent shared.
Yes, Arduino -> ESP01 -> Firebase
Libraries exist to send data to Firebase, but only if you're using the ESP as your main board. The thing is that I cannot use ESP as my main board as it lacks pins. I want to use Uno as my main board and connect my sensors to it. I will use the ESP only to send data to the online db.
wvmarle:
The ESP-01 module has very few I/O pins broken out.
Use a WeMOS or NodeMCU module and you have all 11 GPIO plus the one analog input pin of the ESP8266 processor available (by changing the flash mode you can even make 2 more pins available - never tried this myself, though).
I'm planning to get an ESP8266-12E Serial-to-Wifi Development Board CP2102 (NodeMCU). I hope it works, will keep you updated.
dipshika:
Libraries exist to send data to Firebase, but only if you're using the ESP as your main board. The thing is that I cannot use ESP as my main board as it lacks pins. I want to use Uno as my main board and connect my sensors to it. I will use the ESP only to send data to the online db.
There's nothing to stop you from using the ESP-01 as your "main board". You just need some kind of communication (UART, I²C, SPI, ...) between the Uno and the ESP. Then have the Uno measure the sensors and send the raw values to the ESP, or have the ESP poll the Uno for new values. Then use the ESP to read the raw values from the Uno, and make a request to Firebase, using the library mentioned above. No need to use AT commands.
During upload the code to ESP8266-01 to communicate with firebase I am facing some problems.
The console showing this error and I actually don't know what is wrong with my code and why this error are coming.