Skip to content

raghavexe/Home4U

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home4U - Group 16

Description

HOME4U is a smart home system that provides users with the experience of monitoring home security from a distance and enjoying smart control of their home through devices. This involves:

  • Set security mode from Wio terminal and app
  • Turn off alarm through app and Wio terminal
  • Interact (play, pause, skip) songs via app and Wio terminal
  • Create scenes (though unable to execute, open to development)

Video link for product demo

Setup and Get Started

Material

Hardware requirement:

  • Wio terminal
  • Grove - Speaker
  • Grove - Mini PIR Motion Sensor
  • Android phone
  • Laptop or computer

Setup

Wio Terminal SetupSpeaker (left), mini PIR motion sensor (right) connected to Wio terminal

The following image above shows the setup for the Wio terminal to your computer using an USB-C port. Make sure the speaker is connected to the left side and motion sensor to the right side unless code has been altered.

Detailed Setup
  1. creates myEnv.h in wio_terminal lib folder
cd wio_terminal/lib && echo "#define SSID \"\"\n#define SERVER_URL \"\"\n#define WIFI_PASSWORD \"\"\n#define BROKER_IP \"\"" > myEnv.h
  1. Fill in the missing information in myEnv such as SSID, WIFI_PASSWORD, SERVER_URL, and BROKER_ID (this shouldn't contain port or protocol)

  2. Start server using:

cd node_server
npm install
node app
  1. Head to ServerConnectionHelper URL variable (android/app/src/main/java/com/example/home4u/connectivity/ServerConnectionHelper.java) and set it to the backend server URL

  2. Head to BrokerConnection BROKERHOST variable (android/app/src/main/java/com/example/home4u/connectivity/BrokerConnection.java) and set it to the broker IP address without protocol or port

Automated Build

For the android application:

cd android && ./gradlew build

For Wio Terminal:

docker build -t wio_terminal_image ./wio_terminal

This will build the app inside a Docker image. To extract the built file, also run:

docker run --name wio_terminal_container wio_terminal_image
docker cp wio_terminal_container:wio_terminal/build/wio_terminal.ino.bin .
docker stop wio_terminal_container
docker rm wio_terminal_container

Hardware and Software Architecture

Component DiagramComponent Diagram for Wio Terminal & Android Application

Visuals

App visuals
Home screenHome screen New sceen screenCreate scenes
Manage scenesManage scenes Song playerSong player
Wio terminal visuals

Wio terminal home screenWio terminal home screen

The wio terminal has more screens that provide information such as alarm is actived or diactived, and it being triggered.

About

Home security system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published