Home Automation using Arduino and Raspberry Pi PDF

Title Home Automation using Arduino and Raspberry Pi
Author Areeb Intezar
Course Mechanical
Institution Rust College
Pages 3
File Size 132.5 KB
File Type PDF
Total Downloads 97
Total Views 151

Summary

It's self explanatory...


Description

Home Automation using Arduino and Raspberry Pi Areeb Intezar, Hamna Rahim, Huzaifa Akram SMME (School of Mechanical and Manufacturing Engineering), NUST (National University of Science and Technology) H-12, Islamabad, Pakistan

Abstract: This document serves to explain how the concept of home automation was implemented using Arduino Uno microcontroller and Raspberry Pi version 3, model b+. Connection of Arduino with raspberry pi, set up of wireless connections, control by speech and intelligent facial recognition system have been discussed in this paper. Trained final product can recognize individual and can be used to control any number of devices via speech given a reliable Wi-Fi connection is available.

Motivation The project was inspired by an often brought up subject in science fiction, digital assistant. Moreover the implementation of such a digital assistant on one’s home has the capability of making human life much easier and safer. Therefore an attempt to implement a cheap home automation and security system was made and the results and the process has briefly been explained in this paper.

Layout diagram

Work Done Setting up the raspberry pi for use with Arduino Setting up raspberry pi was a straightforward process and included following steps: 1. Formatting of SD card 2. Download Raspbian OS 3. Set up SD card for use with Raspberry Pi [5] was used as tutorial for setting up raspberry pi Studying python language for use with the raspberry pi [4] was useful resource in limited time. Connecting Arduino to Raspberry Pi Arduino Uno microcontroller was connected to raspberry pi via USB A to B type dongle and Arduino package was imported, studied and used for supplying instructions to Arduino from the raspberry pi. [2] is related documentation which was useful in this step Connecting Arduino to Wi-Fi shield Arduino Uno was connected to windows laptop device via dongle and respective Wi-Fi shield was set up. Documentation related to this field was available on [1] resource which was a major help. Programming Raspberry pi to interact with Arduino via Wi-Fi

Connecting Arduino with raspberry pi was a straightforward process as well, [3] was a valuable resource setting up the microcontroller Setting up relays with Arduino Relays were connected to the Arduino microcontroller and in turn the relay output were directed to various ports of an extension cable for demonstration purposes. Setting up OpenCV for facial recognition with raspberry pi [6] was a valuable resource when setting up OpenCV on raspberry pi. Installing the service on the raspberry pi took several hours since limited by computing power of the pi. A 16 megapixel camera was used with a usable resolution of 200 x 200 pixels. Two programs were set up. One for creating databases for recognized users and one for detecting faces. Setting up speech to text using Google’s Api

   



 

Expected results 

[7] was useful documentation when linking Google’s speech to text Api with microphone input to raspberry pi. Integrating OpenCV facial recognition, speech to text and Arduino In final version of the program, first the face of the user is detected by camera and linked OpenCV algorithm. If the user is successfully identified, the program goes on, otherwise it stays at the identification stage. After successful recognition, the user is prompted to speak and tell the device what action is to be performed, which in this case is which digital output pin of the Arduino is to be turned high or low. The command is converted to text via Google’s Api and processed by the raspberry pi. As a result, the command is then sent to Arduino microcontroller via internet and Wi-Fi. Thus turning on or off any required appliance.

Future work possibilities The project has vast future work possibilities, including and not limited to the following:

Remote control and status of home appliances via the internet Implementing smart security systems for homes Unidentified personnel detection at home entrance Control of entire home using voice, especially useful for handicapped and elderly people Adding profiles to raspberry pi program will result in scheduled appliance control which will tailor to each individual’s liking Adding multiple languages to expand usability Adding multiple sensors to create a smart environment sensing system for the home





Arduino microcontroller device can be used with any number of compatible transducer modules, switches and other appliances resulting in a system which is very much upgradable. Raspberry pi is a small and cheap computer which with certain limitations can be used for facial recognition. This will allow user to enter one’s home without any physical effort used in unlocking security systems. Voice interaction with the raspberry pi will make controlling any number of appliances at home fairly easy.

Conclusion Home automation can be achieved in a cheap way, however more advanced hardware than the raspberry pi will help greatly with security systems and faster feedback. The pairing of Arduino with raspberry pi proved crucial to the project. The raspberry pi has much better processing abilities as compared to the Arduino. The Arduino has much better microcontroller abilities than the raspberry pi which translates to

an ever expanding intelligent home automation system, without the need to upgrade the core of the system (raspberry pi). This results in a system which is always up to date at a low maintenance price.

References [1]

https://www.arduino.cc/en/Reference/WiFi

[2]

https://www.raspberrypi.org/magpi-issues/MagPi07.pdf

[3]

https://playground.arduino.cc/interfacing/python

[4]

https://www.melbpc.org.au/wp-content/uploads/2017/07/learn-python-in-7-days.pdf

[5]

https://projects.raspberrypi.org/en/projects/raspberry-pi-getting-started

[6]

https://docs.opencv.org/

[7]

https://pypi.org/project/SpeechRecognition/...


Similar Free PDFs