Internet of Things (IoT) Monitoring of Multiple Sensors Via Google Firebase and Android

by nanobot.workshop in Circuits > Arduino

1249 Views, 1 Favorites, 0 Comments

Internet of Things (IoT) Monitoring of Multiple Sensors Via Google Firebase and Android

Monitoring berbagai sensor secara IoT via Google Firebase dan Android (Bonus Program dan Aplikasi)

Monitoring is one of the things that must be done with the Internet of Things. In this tutorial we will monitor multiple sensors in the Internet of Things using Google Firebase and Android applications

Prepare Tools and Materials

1.png
2.png
1.png
2.png
225px-Potentiometer.jpg
KABEL JUMPER FF.png
KABEL JUMPER FM.png

In this tutorial we will try to monitor multiple sensors. The following are the tools needed :

  1. Nodemcu
  2. Base Plate Nodemcu (Optional)
  3. Ultrasonic Sensor HC-SR04
  4. DHT11
  5. Potentiometer
  6. Jumper cable Female - Female
  7. Jumper cable Male - Female

Electrical Assembling

FB2.PNG
Capture1.PNG

Connect the sensor with Nodemcu with the following conditions :

NODEMCU ---> DHT 11

3.3 V ----> V+

D1 ---> OUTPUT

GND ----> V-

NODEMCU ---> ULTRASONIC SENSOR

V-USB (5V) ---> VCC

D5 ---> TRIGGER

D6 ----> ECHO

GND ---> GND

NODEMCU ---> POTENTIOMETER

3.3 V ---> RIGHT PIN

A0 ---> CENTER PIN

GND ----> LEFT PIN

Programming Nodemcu

1.PNG
FB1.PNG
FB2.PNG
Capture2.PNG

Now that all the tools are connected we now move on to programming Nodemcu

  1. Download program
  2. Open program
  3. In the Firebase setting, change the Firebase URL, Firebase Auth, WiFi SSID and WiFi Password according to yours
  4. Pay attention to the part when sending data (see picture). The bottom line is the Device ID of each sensor. Device ID serves as an identifier for each sensor
  5. Make sure the board and port match the connected Nodemcu
  6. Upload program

Android Application Settings

3.jpg
5.jpg
2.jpg
4.jpg
1.jpg
8.jpg
Capture3.PNG
9.jpg
6.jpg
7.jpg
10.jpg
11.jpg
12.jpg

To see sensor data on Google Firebase, we will use the IoT Monitoring application. Applications can be downloaded on the Play Store. Click the link below to download the application

IoT Monitoring (Free)

https://play.google.com/store/apps/details?id=com....

IoT Monitoring (Pro)

https://play.google.com/store/apps/details?id=com....

There are Free and Pro versions, so what's the difference? In function, everything is the same, but for Free it is only limited to 5 devices, while for the Pro there is no limit for the device. So if you have a lot of sensors to monitor, it's better to choose the Pro Version.

After installing the application, then we connect Firebase with the application

  1. Open the application. If at the beginning there is a warning like the one below it means that the application is not connected to Firebase because we have not set the Firebase URL and Firebase Auth
  2. Open Settings. Enter the Firebase URL and Firebase Auth. To make it easier to enter the Firebase URL and Firebase Auth you can make it a QR Code first on the site https://www.qr-code-generator.com/. Create a separate QR Code, don't combine the QR Code Firebase URL and the QR Code Firebase Auth. After the QR Code has been created, press scan to scan the QR Code
  3. Click Save to save the Firebase URL and Firebase Auth. Return to Home
  4. To add a device, click Add Device
  5. Enter Device ID, Device Name, Unit of Measurement, Description, select operator for Limit Value if you want to add Limit Value, and Limit Value. For the device ID, match the program on the Arduino IDE or it can be seen in the Firebase Database
  6. Add the device according to our wishes. Here we enter 4 Devices
  7. Click Device to find out info about the device
  8. To change the name, measurement unit, description, comparison operator and limit value, click Edit
  9. Click Save to save
  10. Click Delete to delete the device