Introduction: IoT Controller Via Google Firebase and Android
Welcome to my Instructables In this tutorial we will create a tool to turn on and off an output from Nodemcu using Google Firebase and Android. In this experiment we use the LED as the output which we will adjust.
Step 1: Prepare Tools and Materials
The tools and materials we have to prepare are
1. Nodemcu
2. Nodemcu base plate (optional)
3. Male to female jumper cable
4. LED
5. Resistor 330 ohms
After all the tools and materials have been prepared, now we connect the LED with Nodemcu according to the picture
Step 2: Set Up IoT Controller on Android
You can download the Android program on the Play Store. Click the link below to download the application
If you want to try the system first, you can download the FREE VERSION but you can only add 5 devices. Meanwhile, in PRO VERSION you can add as many devices as you have.
After downloading the application. We continue to setup Firebase and insert devices
1. Open the application. If at the beginning there is a Firebase Error warning it means the application cannot connect with Firebase because we have not set the Firebase URL and Firebase Token
2. Open Settings. Enter the Firebase URL and Firebase Token.
To make it easier to enter Firebase URL and Firebase Token, you can make it a QR Code first on the site www.qr-code-generator.com. If you have received a QR Code, you can press Scan to scan the QR Code
3. Click Save to save Firebase URL and Firebase Token data. Return to Home.
4. To add a device, click Add Device
5. Enter the Device ID, Device Name, Description. Device ID is the ID for our device as an identifier for each device. DEVICE ID SAVED IN GOOGLE FIREBASE SO THAT CANNOT BE CHANGED AFTER SAVING
6. Click Save
7. Add the device as desired (In this tutorial we only enter 3)
8. To find out device info, click Info
9. To change the name and description click Edit
Step 3: Programming Nodemcu
After setting the Android application is complete, then we will continue programming Nodemcu
1. Download the Arduino program
2. Open the program using the Arduino IDE
3. Pay attention to the Firebase Settings section, we have to change the Firebase URL, Firebase Auth, WiFi SSID and WiFi Password according to our settings
4. Pay attention to the "/ TERMINAL / XXXX" section, change XXX according to the device ID that we entered earlier in the application
5. Connect Nodemcu then Upload the program. Make sure the board and port are properly connected
Attachments
Step 4: DONE
Now you can manage the output from Nodemcu anytime anywhere as long as you are connected to the internet. So when you go out of town you can turn on electronic devices at home or turn on lights from anywhere
Follow us on Instagram at @nanobot.workshop
Subscribe to our YouTube channel YOUTUBE





