Minnu Maria Joseph
Published

Home Automation Using OpenHab Server and Google Assistant

Control your home appliances using google assistant on your phone. The appliances include AC's, geysers, coffee makers.

BeginnerFull instructions provided24 hours1,685
Home Automation Using OpenHab Server and Google Assistant

Things used in this project

Hardware components

WIZwiki-W7500
WIZnet WIZwiki-W7500
×1
WIZ750SR
WIZnet WIZ750SR
×1
Microwave sensor
×1

Software apps and online services

Assistant SDK
Google Assistant SDK
openhab

Hand tools and fabrication machines

mbed
Arm mbed

Story

Read more

Schematics

WIZW750sr

One the main component used in this project is the wiznet Wizw750SR ( S2E) and it's evaluation board.

The screenshot of the openHAB interface

OpenHAB server is used for publishing the status of light . As user commands ON/OFF the slider on OpenHAB also changes and it publishes this status. The w7500 subscribes this and accordingly we can change the lightbulb to ON/OFF.

Openhab with Google assistant

Describes the components used in this project.

Block Diagran

this is the basic working of this project.

The screenshot of mobile notification when security switch becomes ON

Receiving notification

Code

W7500 code

C/C++
Code for the w7500, with which the bulb is interfaced.
#include "mbed.h"

//DigitalOut myled(D0);
//DigitalOut buzz(D2);
//AnalogIn ldr(A0);
//AnalogIn gas(A1);
DigitalOut myled(D2);
void turnoff();
void turnon();
Serial pc(USBTX,USBRX);

Serial a(D1,D0);

int main() 
{
while(1)
{
    if(a.readable()>0)
    { 
        char c = a.getc();
        pc.printf("%c",c);
        
        
        if(c=='0')
        {
            turnoff();
            
            }
            
            if(c=='1')
        {
            turnon();
            
          }
        }
    
    }

}
  
void turnoff()
    {
        myled=0;
        pc.printf("off");
        
    }
    
void turnon()

    {
        myled=1;
         pc.printf("on");
    }

Credits

Minnu Maria Joseph

Minnu Maria Joseph

2 projects • 2 followers
Intern at Centre for Digital Innovation

Comments