This week we completed one of our main objectives, which was to get motion detection working on our Raspberry Pi. Using a python script that is constantly taking low-res images and comparing them, specifically analyzing the picture variance of the two images in the buffer. If there is enough of a difference in these images, it then takes a higher-res image and saves it to the disk. This is probably not the most efficient way to handle motion detection, however this is all that our Raspberry Pi is going to be expected to do.
We’ve also began on a few other components of the project this week:
This is an instance of our webserver which details our public DNS for our webserver.
Using Amazon EC2 we were able to launch a virtual server known as a amazon EC2 instance. The OS that we installed was ubuntu/images/ebs/ubuntu-lucid-10.04-i386-server-20131114 32 bit.
We set up a security group that allows us to use port 22 to SSH into our Ubuntu server.
We were then able to install the Apache server.
We’re also running phpMyAdmin so that we can use a mySQL relational database.
This is what we use to SSH into our server. We use a key pair called birdpikeypair.pem generated by Amazon, this allows for public key cryptography to encrypt and decrypt login information.
This week we tried some more software solutions for motion detection for the RaspberryPi camera. We may end up settling on using the PIR sensor and a hardware-based motion detection instead, still wrestling with our options. We have our free trial and account registered with Amazon Web Services, and will be working more on the website which currently is
We have some web stuff stored locally, the website is likely to be broken more often than not at this stage. But it’s there, and gives us a place to put our work when we finally get around to it.
We will need:
- MySQL Server
- Web Server
- FTP server (Either our free Wentworth ones/or one hosted on AWS)
The .jpeg image file that the Raspberry Pi captures will need to make it to our website somehow, and each and every image it captures needs to do the same. We need a reliable way for this to happen. We’re planning the use of an FTP server between the PI and the website for this.
Links For Group:
Instructions for hosting on AWS:
Tuesdays: 12 pm – 3 pm
Thursdays: 1 pm – 4 pm
From Left to Right:
A PIR sensor (For Motion Detection)
The Raspberry Pi and Case
The Rpi Camera Module
- Salahuddin Miahjee
- Pedro Torres
- John Pereira
Using a Raspberry Pi 2 and camera module with motion detection to capture images of birds. These images will then be automatically uploaded to a database and accessible on a website for viewing/indexing. A system to tag the photos and categorize them by species will also be implemented, alongside a repository of local bird species to help the user identify which species the camera has captured.