In this Project you will learn how to make your own Wifi Remote Control Switch. All the components are easily available in the market at very cheap price. With this simple smaart wifi remote control switch you can Control your electrical appliances remotely from anywhere in the world.
To implement this project, you will need to install an application software into you andriod device, and you also need to upload a program code into ESP32. you can get the software and the code from the following two links.
Get Application software for Android
https://drive.google.com/file/d/1JKf-kDD2uYyYKGicj5vR04hDkXHub3Ed/view?usp=drive_link
Get Code for the ESP32 from this link.
Required Components for smart home remote control switch
1. ESP32 chip
2. Voltage regulator 3.3V
3. NPN Transistor J3Y 25V 0.5Amp
4. Resistor 10K Ohm, 240 Ohm, 68 Ohm
5. Push button 2 Nos.
6. 1-Green LED, 1-Red LED
7. Programing connector
8. Power Supply Conncetor for 5V input supply
9. Output Connector.
10. Relay 6V
11. PCB
This Wifi Remote Control Switch project focuses on wirelessly transmitting data globally using the Internet and Google Firebase as a central server. The communication can occur between IoT devices like ESP8266 or ESP32 and any WiFi-supportive device, including Android. Specifically, we're interested in bidirectional data transmission between ESP32 and Android. This project involves sending data wirelessly worldwide through the Internet, with Google Firebase server serving as the central hub.
This WIFI remote control switch is versatile, allowing you to control various electrical devices such as light bulbs, motors, safety alarms, and more.
Initially, commands are sent from any location to the Firebase real-time database via the Android device.
These commands are accessible to any ESP32 device worldwide.
The ESP32 interprets the command data, allowing it to make decisions such as activating a relay or LED.
After completing a task, the ESP32 sends feedback to the Android device through the Firebase server, updating the task status on the app.
This WIFI remote control switch is versatile, allowing you to control various electrical devices such as light bulbs, motors, safety alarms, and more.
Dimension: 6.5cm X 4cm
If you like our project please subscribe our channel for latest updates.
ESP32 Firebase Integration: Secure IoT Data Communication Setup
Step 1: Sign in on Google Firebase Server and Set Up a Project
· Go to the Google Firebase Console (https://console.firebase.google.com/).
· Sign in with your Google account.
· Click on "Add Project" to create a new project.
· Follow the prompts to set up your project, providing a name and selecting your preferred settings.
Step 2: Create a Real-Time Database in Your Project
· Once your project is created, navigate to the "Database" section in the Firebase Console.
· Click on "Create Database" and choose "Start in test mode" for simplicity in this test case (Note: In a production environment, it's recommended to set up proper authentication).
· Complete the setup process for your real-time database.
Step 3: Obtain the URL Link and API Key
· In the Firebase Console, go to "Project Settings" by clicking on the gear icon next to your project name.
· In the "General" tab, scroll down to find your "Web API Key" and "Your project's public-facing name" (this is your real-time database URL).
Step 4: Paste Values in ESP32 Code
· Take note of the URL (real-time database link) and the API Key from the Firebase Console.
· Open your ESP32 code in your development environment.
· Locate the relevant section for Firebase configuration in your code.
· Replace placeholder values with the actual URL and API Key obtained from Firebase.
Step 5: Ensure No Email ID or Password Required for Test Case
· In your Firebase project settings, navigate to the "Authentication" section.
· For the test case, make sure that authentication is set to "None" or "Test mode."
· This allows the ESP32 device to access data without requiring an email ID or password during the test.
Step 6: Consider Setting Up Authentication (Optional but Recommended)
· In the Firebase Console, go to the "Authentication" section.
· Set up authentication methods like email/password or other secure methods to prevent unauthorized access.
· Update your ESP32 code to incorporate the authentication method.
By following these steps, you will have set up your Firebase project, configured the real-time database, obtained the necessary credentials, and integrated them into your ESP32 code for communication with the Firebase server.