Home Automation using Raspberry Pi

Step into the whole new world of Home Automation with the cheapest and the most powerful computer, Raspberry Pi Zero
4.0 (7 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
181 students enrolled
84% off
Take This Course
  • Lectures 19
  • Length 1 hour
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 5/2016 English

Course Description

This course, "Home Automation using Raspberry Pi" is for anyone who is interested in building some really cool Home Automation projects using Raspberry Pi. Since it is not a beginner course, the learner needs to have a basic knowledge of Raspberry Pi, Linux commands and basic Python Programming.

In this course, the learner will learn how to build an Intruder Detection System. Whenever there is any intrusion at home or office, it is detected using PIR motion detector sensor, an alarm is produced using a buzzer, an image of the intruder is captured, and an email containing the attachment of the image is sent to the user. A database containing the date, time, and image of the intruder is created and served over a web page using Raspberry Pi as a web server so that the user can access the web page to view the log of all the intrusions that have taken place over time.

The complete system is subdivided into individual sections and explained with the utmost detail so that it is easy to understand. It also explains the possible applications for such a system and how the learner can customize for his/her home or office. Complete Python source code and PHP code are also included so that the learner can easily replicate the system.

After completing this course, the learner will know how Raspberry Pi helps us in building home automation stuffs, developed on the core idea of "Internet of Things".

What are the requirements?

  • You should be competent in working with Raspberry Pi
  • You should know basic Python hardware programming
  • You should know basic Linux shell commands
  • You should know basic wiring of electrical and electronic components

What am I going to get from this course?

  • Develop home automation projects using Raspberry Pi
  • Build a simple Intruder Detection System using the world's smallest and cheapest computer, Raspberry Pi Zero.
  • Know how to setup the PIR motion detector sensor, Buzzer and the Webcam and how to integrate them with the Raspberry Pi
  • Send an email with an attachment of the image of the Intruder using Python Program
  • Create a database using MySQL to store the intrusion log
  • Setup a LAMP Web server on the Raspberry Pi and configure it to serve a dynamic web page written in PHP

Who is the target audience?

  • This course is for anyone who wants to explore the applications of Raspberry Pi in the field of Home Automation.
  • Since it is not a beginner course, a basic knowledge on Raspberry Pi is necessary for taking this course.
  • If you are a beginner, please undertake our previous course on "Introduction to Raspberry Pi" before subscribing to this course.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.



This lecture describes the overview of the complete course.

Section 1: Introduction

This lecture describes what is home automation and what are the objectives of home automation.

Section 2: Intrusion Detection System

This lecture describes the concept of Intrusion Detection System and the hardware components required to develop.


This lecture explains how to test the PIR Motion Detector Sensor and the buzzer before connecting to the Raspberry Pi.


This diagram depicts the connections for testing the sensor and the buzzer using a battery.


This diagram depicts the complete circuit to connect the sensor, buzzer and the webcam to Raspberry Pi.

Section 3: Motion Detection Section

This lecture explains how to connect the sensor and the buzzer onto the Raspberry Pi and also the Python code to detect motion using the sensor and alarm using the buzzer.


The Python source code for the Motion Detection Section.

3 questions

Check your progress by taking this simple quiz.

Section 4: Camera Section

This lecture explains how to setup the camera in Raspberry Pi and also demostrates how to capture an image when there is any intrusion detected by the sensor and save the image with date and time as the file name.


The Python source code for Camera Section

Section 5: Database Creation Section

This lecture explains the steps to create a MySQL database to store the date, time and image of the intruder in a table. Also you will know how to access the database from a Python program.


The Python code for Database Creation Section.

3 questions

Check your progress by answering this simple quiz.

Section 6: Email Section

This lecture explains the Python coding to send an email to the user along with a Subject, Body, and an attachment of the image of the intruder with a timestamp.


The Python code for Email Section.

Section 7: Webserver Section

This lecture describes the various steps involved in setting up a LAMP (Linux, Apache, MySQL, PHP) Webserver in Raspberry Pi.


This lecture explains the PHP code to develop a dynamic web page to display the intrusion log.


The PHP source code to create a dynamic webpage.

3 questions

Check your progress by answer this simple quiz.

Section 8: Real-time Demonstration and Complete Source Code - Intrusion Detection System

This lecture demostrates the real-time working of the Intruder Detection System.


The complete source code for Intruder.py and Intruder.php

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Venkatesh Varadachari, Founder of ScratchNinja, PiWizards and Money-Wizards

Venkatesh Varadachari is the founder of Money-Wizards Global Pte Ltd, that owns the education brands Money-Wizards, PiWizards and Scratch Ninja.

Venkatesh believes that knowledge should be made available to people in all walks of life. Venkatesh also believes in the power of education to transform lives.

Venkatesh has an MBA from the prestigious Indian Institute of Management, Bangalore.

He also has a degree in Electrical Engineering from Madras University and a Masters in Financial Engineering from National University of Singapore.

Instructor Biography

Satyajeet Sah, Product Engineer - Technology

Satyajeet is a passionate technology enthusiast and is excited about the possibility of impacting education through technology. Satya holds a Masters in Computer Applications from VIT, one of the premier engineering institutes in India. He is a product engineer at Makerdemy and spends his time creating exciting courses around the credit card sized Raspberry Pi.

Instructor Biography

Venkatesh Gopalakrishnan, Graduate Student at University of Texas at Dallas

Venkatesh is an avid and passionate engineer who has the crave to explore the cutting edge technologies. He completed his Bachelors of Engineering in Electronics and Instrumentation under Anna University. He is now pursuing his Masters in Electrical Engineering at The University of Texas at Dallas. He has worked extensively with Raspberry Pi in the field of IOT and Home Automation. His areas of interest include Embedded Systems, Micro-processors and Micro-controllers, Internet of Things, VLSI Design and VLSI Testing. He is also an enthusiastic educator who aims to take the latest technologies to the common man.

Ready to start learning?
Take This Course