Trial and error: Arduino and Wi-Fi connectivity part 4
Day 10 of trying to control my Arduino over a website. In this blog, I'll try to connect an Arduino Uno Wi-Fi Rev2 with a Firebase realtime database.
In the previous parts, I managed to retrieve data from a custom web page and use it within the Arduino/C++ environment. During my research I also found out that it is possible to connect Googles Firebase with C++ , there is even a library for Firebase Realtime Database and ARM/AVR WIFI Dev Boards. I decided to give it a go.
In the following test, I show a text message from the Firebase realtime database in the serial monitor of the Arduino.
Database structure in Firebase:
Serial monitor Arduino:
Unlike the previous solutions, I can now also send data to the database from the Arduino. Like the axis tilt values from the Arduinos built in gyro sensor. Every 10 seconds, the tilt values from the gyroscope are updated in the database. It is now possible to: Read data at the defined database path using get or specific functions, store data at the defined database path using set functions, append data to the defined database path using push functions, update data and delete data.
Database structure in Firebase:
Serial monitor Arduino:
I finally found a good way to control my Arduino from a website. Of course, this was just the Arduino <-> Firebase db communication. The Firebase db <-> front-end communication is up next.