Coconote
AI notes
AI voice & video notes
Export note
Try for free
Android Application Controlled Home Appliances
Jul 15, 2024
Android Application Controlled Home Appliances
Introduction
Project:
Android Application Controlled Home Appliances
Purpose:
To show viewers how to control home appliances using an Android application.
Invocation and Greeting:
Began with a religious invocation and greeting.
Call to Action:
Encouragement to subscribe to the channel and press the bell icon for updates.
File Downloads and Preparation
Files Needed:
Circuit diagram, code, APK file, AIA file.
Download Instructions:
Links available in the video description.
Steps: Download -> Show in folder -> Extract without confirmation.
Files Obtained: AIA file, APK file, code file, circuit diagram.
Circuit Diagram
Components Used:
Arduino Nano
Bluetooth Module (HC-05)
Relay Module (4-channel)
220V Power Source
5V 2A Power Adapter
**Connections: **
Neutral of 220V source connected to load
Line of 220V source connected to relay common
5V adapter powers relay, Arduino, and Bluetooth
Software Development:
Android app developed using MIT App Inventor
Hardware Assembly
Assemble the hardware following the circuit diagram.
Code Overview
Development Environment:
Arduino IDE
Libraries Used:
EEPROM, SoftwareSerial
Purpose of Libraries:
EEPROM:
Save the status of the appliances
SoftwareSerial:
Custom serial connection for Bluetooth on pins 2 (Rx) and 3 (Tx)
Pin Initialization:
Pins 4, 5, 6, 7 for relays, variables for bt_data and loads.
Setup:
Initialize baud rates for serial connections (9600)
Set relay pins to OUTPUT and initially HIGH (loads off)
Load states read from EEPROM and applied.
Loop Function:
Read Bluetooth data and update variables.
Commands (e.g., 'A' for light on, 'a' for light off) update load states and EEPROM.
Print current states to Bluetooth for app status synchronization.
Uploading Code
Steps: Tools -> Select Board (Arduino Nano) -> Select Port -> Upload.
Android App Development
Platform:
MIT App Inventor
Steps:
Search and go to MIT App Inventor website.
Create a new app or import the existing AIA file from the downloaded files.
App Features:
Bluetooth pairing button
Buttons for controlling power, light, lamp, socket, fan (On/Off)
Voice command button
Load status labels
Auto Bluetooth connection on app start
Functionality:
Manual and voice control of loads
Status updates for loads
Persistence of last connected Bluetooth module
Building and Installing APK
Steps:
Build -> App (save .apk to my computer) -> Copy to Android device -> Install
Usage:
Pair Bluetooth, open app, click connect, and control appliances via voice commands (e.g., 'fan on', 'fan off').
Conclusion
Recapped steps to download, setup, and use the Android application to control home appliances.
📄
Full transcript