This project will hold two examples:
-
Sending data to Arduino from Firebase
-
Sending data from Arduino to Firebase
Required library versions:
ESP8266 Module Version: 2.7.x
ArduinoJSON Version: 5.13.5
In order for these examples to work, we will require the following steps:
-
Ensure Arduino is in reset mode by either uploading a blank sketch or by connecting reset to GND
-
Connect RX, TX of ESP8266 to Arduino's RX, TX and GP00 of ESP8266 needs to be connected to GND
-
Select ESP8266 from board menu
-
Upload the WiFi related to code to ESP8266 first
-
Disconnect RX, TX, GP00 of ESP8266
-
Select Arduino from board menu
-
Upload Arduino related code to Arduino
-
Since we are utilizing software serial to communicate between Arduino and ESP8266, connect Rx of ESP8266 to software Tx of Arduino, connect Tx of ESP8266 to software Rx of Arduino