Join David Ross for an in-depth discussion in this video What you should know before watching this course, part of Home Monitoring and Control with Raspberry Pi.
- [Voiceover] This course is intended for do-it-yourselfers. It is assumed that you have some basic electronics knowledge and have built other circuits. If you've never built anything of this type before however, you should be able to follow step-by-step instructions and be successful. You should also have programming experience of some type. In this course, we'll be using Python C and Linux shell scripts. If you have limited or no programming experience, you should still be able to run and/or modify the scripts to suit your needs based on what I will show you. We'll be using Raspbian OS with VNC server already installed so that it will launch at boot up.
I assume that you have this already running on your Raspberry Pi, but if you don't, you may wish to watch Up and Running with Raspberry Pi by Mark Niemann-Ross. That course will take you through all aspects of installing Raspbian. Chapter 5 in particular, covers installing the VNC server. Depending on your background before we start, you may also wish to view Foundations Programming, Up and Running with Python and Understanding IP Addressing. In this course, I'll be using some electronic devices to complete the construction of my alarm.
A power relay, a power bar, motion detector, and a Pi cam. You can purchase these devices for yourself online. I've included a listing of the specific model information in the exercise files or you can watch how I build my system and adapt a system of your own. In order to make the components that I'm using work the way I need them to, I modified them by soldering in some wires of my own. Soldering can be dangerous and soldering technique is beyond the scope of this course. If you do undertake some soldering, be careful.
Before we start, we should make sure that we've got SSH and our localization set up properly. With Jessie it's very simple. You just go down to Preferences, you go to Raspberry Pi configuration. What you're going to do is go to Interfaces. For SSH, you're going to enable it just by clicking here and localization you can just click here and go to Time Zone, and under Time Zone pick whatever time zone you happen to be in. Right now, I happen to be in America. I'm in Los Angeles, but you can switch it to anything you like in here.
As soon as you do and say okay, you're ready to go. It's a lot easier than using sudo Raspi-config and it's done. It's very important that you have your time zone set properly or the hour, minute, seconds that you're going to get will not make sense. For instance, since I'm in California right now, PST should show up because it's Pacific Standard Time. If I happen to be somewhere else, it should say Eastern Daylight Time. If you don't set your localization, it'll set you up at Greenwich Mean Time which is what you don't want to have as your default.
That's pretty much it.
This DIY electronics project provides simple directions for getting your home monitoring system up and running. Author David Ross helps you select a power supply, camera, motion detector, enclosure, and other components and accessories, and make your system "smart" by connecting to web services frameworks such as Weaved and WebIOPi. Then he helps you program the logic to make your Pi camera take pictures and stream video, connect to home peripherals, and mount your alarm system. With this training, and a little elbow grease, you can create a fully autonomous system that helps you and your family feel more secure at home and away.
Note: These instructions work with Raspberry Pi B, Raspberry Pi B+, and Raspberry Pi 2 models.
- Selecting hardware, including a Raspberry Pi camera and a Pi Cobbler
- Configuring VNC, SSH, and WebIOPi services
- Sending SMS messages with the Raspberry Pi
- Taking and accessing pictures remotely
- Setting up video streaming with a Raspberry Pi camera
- Connecting the Pi to the development board
- Connecting the relay and motion detector
- Programming the alarm in Python
- Mounting and securing the alarm system