Geeve George
Published © GPL3+

One Button Click Artificial Intelligence Based Home Monitor

My project is an a voice assistant for space/home monitoring while you are away or not nearby.

AdvancedFull instructions provided10,490
One Button Click Artificial Intelligence Based Home Monitor

Things used in this project

Hardware components

1Sheeld
1Sheeld
×1
Arduino UNO
Arduino UNO
×1
Grove Base Shield V2
×1
Grove Light Sensor
×1
Grove Temperature Sensor
×1

Software apps and online services

AWS Cognito
Amazon Web Services AWS Cognito
AWS IoT
Amazon Web Services AWS IoT
Arduino IDE
Arduino IDE

Story

Read more

Schematics

Required Parts :

*The buzzer is optional.

Hardware Setup

Using the 4 pin jumpers , connect the temperature sensor to Analog Pin 0 and Light Sensor to the Analog Pin 1 in the Grove Base Shield.

Amazon Web Services Account Creation

You can use the AWS for connecting the Button to the Cloud and then using the artificial intelligence algorithms to control and monitor your home environment.

Code

AWS Lambda Function

JavaScript
var https = require('https');

var CONFIG = {
 
  partner_token:          'API_TOKEN',
  token:                  'USER_TOKEN', 
  user_id:    "user_id",
  serial_id:   "serial_id",
 
},
DATA = {};

function logData(event, context) {
  var clickType = event.clickType;
  switch(clickType.toLowerCase()) {
   
    }
    }
    }

  var data = {
    
    user_name:            CONFIG.user_name;
    sl_no:           CONFIG.dl_no;
    ,
    datalog: {},
    order_comment:                  'The data was sucesfully stored'
  };

 
  data = JSON.stringify(data);
  
  var headers = {
    'Content-Type':   'application/json',
    'Content-Length': Buffer.byteLength(data)
  };


  var req = https.request(options, function(res) {
    console.log(res.statusCode);
    if (res.statusCode == 200 || res.statusCode == 201) {
      context.succeed(event);
    } else if (context) {
      context.fail(event);
    }

    res.on('data', function (chunk) {
      console.log("" + chunk);
    });
  });

  req.write(data);
  req.end();
}

exports.handler = logData;

AIHomeAutomation

Credits

Geeve George

Geeve George

6 projects • 51 followers
I work on arduino, intel edison and android development for making assistive technologies for specially abled people.

Comments