I was looking forward to get a home-made doorbell that gives me a safer feeling. I found no example of this and therefore a challenge for myself. At the end of the project, you will have a doorbell that takes a picture when there is motion and that make a video when the bell is pressed.
The real challenge is to save everything and read it out on a browser so that I can see the pictures and video's on my desktop.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Materials
Here do you find all the parts that you'll need if you want to make it yourself.
- Raspberry Pi 3 (1x)
- Raspberry Spy camera module (5MP)(1x) OR Camera Module Board (8MP) (1x)
- motion sensor (1x)
- micro sd card (1x)
- 2A Micro-USB (1x)
- Bleutooth speaker (1x)
- ethernet cable (1x)
- soldering iron set (1x)
- wires => male-female (10x - 10cables in total!)
- button (mine is with a led integrated) (1x)
If you want to make this, the cost is approximately 150 euro. It could be less, it could be more, depending on where you buy it.
Step 2: Setup: Scheme and Diagram
The build of the circuit shouldn't be a problem, people who are new to it should be able to build it. The only difference you can have is when you have, just like me, a button with a led integrated, then you will have to lookup the datasheet. You'll have 2 pins to the ground, 1pin (the +side of the led) to a 220ohm resistor and then to the 3.3V and the fourth and last pin to a GPIO pin;
Before you move on you need a Raspberry Pi with Raspbian installed on it, then connect to your Pi via SSH (I used putty to make the SSH connection). The standard username is 'pi' and password is 'raspberry'.
The first thing you want to do when you open you session is execute the command 'sudo apt-get update && sudo apt-get upgrade' to make sure you have the latest version installed.
If you want to know more about the camera V2 or you don't know how to plug in the camera on the raspberry pi checkout the next video, they plug the camera in at 1min53s:
Execute the steps as they said in the video to setup your camera and make sure that it works. well
Step 3: Database
You should be able to setup a simple MySQL database with the picture above.
Step 4: Software
All the code i wrote using Flask & python can you find on my githubproject: https://github.com/NMCT-JensDeRijcke/Project1_flas...
Make sure that you change the pinnumbers to the pinnumbers that you used on your pi to connect your PIR sensor and button.
If the input of your PIR (motion) sensor is always the same, check if you didn't switch the + and - side.
You can connect to the site with the following apipa: 169.254.10.19:8080.
Step 5: Step: Case
Feel free to make a box to your wishes or let a 3D printer do the work.