Introduction: Pigeon: a 3D Printed Cloud Camera That Uses the New Raspberry Pi Zero W

Pigeon is a simple cloud home surveillance camera project that uses the new Raspberry Pi Zero W single board computer ($10). It also uses a custom designed 3D printed enclosure that fits the board and the camera along with a wall mount. The software should work with any Raspberry PI version, but the 3D design is made specifically for the PI Zero W platform.

The goal of this project is to provide an easy way to setup a basic (yet functional) hackable cloud camera at the lowest possible cost.

Features

  • Motion detection
  • Integrated with Dropbox for motion detected clips storage (MP4 format)
  • Simple step-by-step installation wizard
  • Live streaming in the desktop/mobile browser with remote access capabilities
  • Authentication for live stream visualization
  • 3D printed enclosure
  • Automatically deletes locally recorded clips after uploading to Dropbox

Step 1: Hardware and Components

You will need:

Step 2: Software Installation

Connect to your Raspberry PI using SSH or using a monitor. Make sure you have the Raspberry PI camera already working, You can test using the following command:

raspistill -o cam.jpg 

If camera is not working, make sure it's activated in the setup (option 5):

sudo raspi-config

If you have problems, check https://www.raspberrypi.org/documentation/configu...

Now, clone our repository using git (recommended) in the root of your Raspberry PI home directory:

cd /home/pi
git clone https://github.com/geraldoramos/pigeon.git
cd pigeon

When ready, give execution permission to the setup script and run it:

chmod +x pigeon_install.sh
./pigeon_install.sh 

The installation should take about 10-15 minutes and inputs from you will be necessary towards the process (ex: Dropbox configuration). You can visit this Github Repo to report any issues and check for updates.

Step 3: After Install

After the installation is completed, you will be able to watch the camera live feed by accessing:

http://[PI-ADDRESS]:[8099] 

If you want to setup remote access, make sure to setup port forwarding in your modem admin panel (port 8099 to your Raspberry IP.)

If everything went fine, you will start seeing MP4 clips being saved on your Dropbox folder when motion events are triggered.

If you want to start at boot, edit the rc.local file as following:

sudo nano /etc/rc.local 

Add the following command below the comment, but leave the line exit 0 at the end, then save the file and exit:

motion -c /home/pi/pigeon/pigeon.conf 

To finalize, make sure you are using the right timezone, so the camera clips date will make sense to you.

sudo raspi-config 
Select: Internationalisation Options

This project is at a very early stage. You can edit the pigeon.conf file to change default configurations and make it more suitable for your needs.

Please check our Github repo for issues and updates.

Comments

author
Antony76 (author)2017-07-29

Hi Geraldo, your project is really nice. I made one but I need to change the Rpi cam by a wide angle camera. I bought it at ModMyPi. The lens is bigger and the ribbon connector is in the opposite side. Is it possible to modify the 3D printed case to fit the WA cam?

author
Antony76 (author)2017-07-29

Hi, your project is nice. I made one but I need to use a wide angle camera. I bought one on ModMyPi then the lens is bigger. Also, the ribbon connector of my new camera is in soldered in the opposite side.

Is it possible to modify the 3D printed box to fit the camera?

author
kasefxintros (author)2017-07-28

Would it be possible to turn on an led when motion is detected? That would make this the best budget cctv camera! Amazing project man!

author
GeraldoR3 (author)kasefxintros2017-07-28

Will try to come out with this in the V2 of this project! Thanks for the feedback!

author
kasefxintros (author)2017-07-06

Amazing! Would love if the web server had some kind of gui, or a chrome addon for simple viewing?

author
GeraldoR3 (author)kasefxintros2017-07-13

Thanks for the feedback! Will try to implement a GUI in the future!

author
kasefxintros (author)GeraldoR32017-07-13

Awesome! May i ask when i should expect the GUI update?

author
GeraldoR3 (author)kasefxintros2017-07-18

sorry, I don't have an expected timeline. I'm in talks with the guys from https://bitdog.io/. We might integrate pigeon in their mobile apps

author
kasefxintros (author)GeraldoR32017-07-19

Oh that would be awesome!

author
duncangallimore (author)2017-07-18

That looks great! I'm going to try and make one. Only question: if I use a NOIR camera (like this one https://shop.pimoroni.com/products/raspberry-pi-ze... I'll need an IR LED or two. Should I power them separately or could I use the Pi?

Many thanks, Duncan

author

Hi Ducan, good point. Powering it separately might be a better option I think. You can try to power it using the PI, but you might need to do a hole or change the design a bit. In terms of power consumption, I think it will depend on your power supply max amperage. I think a 2A supply should be enough for everything...

author

Wow thanks for the fast response! I'll try that. Looking for the lowest power solution as I need to run it off a car battery.

author
kasefxintros (author)2017-07-14

How would i change the time and date if its wrong?

author
GeraldoR3 (author)kasefxintros2017-07-18

Login on your raspberry pi and:


  1. sudo raspi-config
  2. Select Internationalisation Options
  3. Select I2 Change Timezone
  4. Select your Geographical Area
  5. Select your nearest City
  6. Select Finish
  7. Select Yes to reboot now
author
hughgoh made it! (author)2017-07-02

Geraldo, I like the way your webcam works. I like the login to securely watch the webcam, and that it uploads files to dropbox, This is exactly what I was trying to do before. Your software instructions were easy to follow, and quickly got it up and running.

05-20170701235948-03.jpg
author
GeraldoR3 (author)hughgoh2017-07-02

Glad to hear that! Thanks for trying it

author
andygandara (author)2017-05-02

Hey, Geraldo! Do you happen to know if there is any way to rotate the camera orientation? Thanks!

author
GeraldoR3 (author)andygandara2017-05-03

Yes, just edit the file pigeon.conf and search for "rotate" (line 101). You can rotate the camera using any angle (180 is the default value to match the provided case orientation).

author
andygandara (author)2017-05-02

Will this work using a RPi 3?

author
GeraldoR3 (author)andygandara2017-05-02

Hey there! The software will work just fine. The 3D printed case will not fit an RPi3 but I might work on a bigger case in the future.

author
andygandara (author)GeraldoR32017-05-02

Thank you!

author
GerhardB6 (author)2017-04-22

Where can I get the enclosure, I do not have access to 3D printing

author
GeraldoR3 (author)GerhardB62017-04-23

You can use 3d hubs:
https://www.thingiverse.com/apps/3d-print-with-3d-hubs/run?thing_id=2230707

author
GerhardB6 (author)GeraldoR32017-04-24

Thank you GeraldoR6, it

author
rostfrei (author)2017-04-23

Really nice project. The only 'downside' is that it needs external power supply. It really isn't like "put it anywhere and use it" like you try to show it on the pictures. Sorry, a bit misleading to me.

author
GeraldoR3 (author)rostfrei2017-04-24

Hi, sorry, the intention was not to mislead anyone. I thought it was clear that a Raspberry pi would need to be connected to a power supply (or battery). I even mention it in the parts list.

It's possible to work on a battery solution. You can power it using a battery bank for example, but charging is a problem. I have a Canary flex camera and it has a built-in battery. I feel like it's not very useful since I don't like having to take it out for charging periodically. I could work on a built-in battery solution for future Pigeon iterations, but I'm not sure if this is a feature most people will demand.

Anyway, I'm really sorry if you felt misled.

author
hubdog (author)2017-04-19

What do you use for a power supply?

author
GeraldoR3 (author)hubdog2017-04-20

Micro usb charger, like this: https://www.amazon.com/Rockbirds-Listed-Charger-Portable-Adapter/dp/B01IHU0CEI/ref=sr_1_22?ie=UTF8&qid=1492715270&sr=8-22&keywords=micro+usb+charger

author
GreyE (author)2017-04-13

Great write-up, man! I can't wait to see where this goes from here!

author
GeraldoR3 (author)GreyE2017-04-13

Thanks man!

author
Swansong (author)2017-04-07

That's neat :) A lot of people in town here need something like this!

author
GeraldoR3 (author)Swansong2017-04-07

Nice, thanks!