Dubman
Posts: 127
Joined: Thu Mar 15, 2018 3:53 pm

Adding second camera to Rpi 3?

Thu Jul 04, 2019 10:11 am

Hi, I have a python script working with the pi camera module (with Rpi 3 board) and a PIR sensor that triggers email alerts when an intruder is detected.
But how would I go about adding a second camera to the same Rpi, in such a way that every time the (one) sensor triggers an alert, both cameras would supply separate images of the captured images, from different angles? Thanks

spock
Posts: 208
Joined: Sun Oct 02, 2011 10:33 am

Re: Adding second camera to Rpi 3?

Thu Jul 04, 2019 10:46 am

the rpi3 (and even rpi4) only supports one pi camera module.

the compute module (+ compute module io board) supports two pi camera modules...

so you would have to use an usb camera as a second camera or use the compute module.



edit:
i would prefer if the normal raspberry pi 4 had 2 CSI connectors and got rid of the DSI connector. who needs the DSI connector if there are two hdmi ports? :)
Last edited by spock on Sat Jul 06, 2019 10:07 am, edited 1 time in total.

wildfire
Posts: 544
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Adding second camera to Rpi 3?

Thu Jul 04, 2019 11:41 am

spock wrote:
Thu Jul 04, 2019 10:46 am
i would prefer if the normal raspberry pi 4 had 2 CSI connectors and got rid of the DSI connector. who needs the DSI connector if there are two hdmi ports? :)
Perhaps you would but I'm sure others who (like myself) bought the Official 7" touch screen would probably disagree.
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

aBUGSworstnightmare
Posts: 1498
Joined: Tue Jun 30, 2015 1:35 pm

Re: Adding second camera to Rpi 3?

Thu Jul 04, 2019 2:04 pm

spock wrote:
Thu Jul 04, 2019 10:46 am
edit:
i would prefer if the normal raspberry pi 4 had 2 CSI connectors and got rid of the DSI connector. who needs the DSI connector if there are two hdmi ports? :)
I would disagree! Who needs to cameras would be my question to you!
Yes, there are two HDMI connectors, but the DSI 7in has touch input which is not available via HDMI.

alphanumeric
Posts: 2109
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Adding second camera to Rpi 3?

Thu Jul 04, 2019 2:18 pm

Ditto to wanting the DSI. Now with the Pi 4 I can plug in a second monitor and not have to jump through hoops to have it work with the official 7 inch touch screen. Just a few mouse clicks, or screen touches lol.
I also use the CSI, I have a several headless 3A+'s running motion eye with official Pi cameras attached. With short ribbon cables its a nice compact setup.
Anyway, as already posted you will need to go with a USB or GPIO connected camera to run two if one is the Pi Foundation camera. Get that working and then worry about triggering both at the same time.

User avatar
jbeale
Posts: 3499
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Adding second camera to Rpi 3?

Thu Jul 04, 2019 2:28 pm

Add a second pi? Even the Pi Zero supports a camera, and the price is minimal. This gives you the freedom to position anywhere you want, instead of needing a long camera cable. You can have a command sent over the LAN trigger the photo on the second unit. Programs like PiKrellCam http://billw2.github.io/pikrellcam/pikrellcam.html make it convenient to do this sort of thing, although you still need to do a bit of scripting.

If you really don't want a second Pi, then just add a USB camera.

alphanumeric
Posts: 2109
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Adding second camera to Rpi 3?

Thu Jul 04, 2019 2:38 pm

If your only taking pictures / snapshots a Pi zero will likely be fine. I tried using a Pi Zero with Motion Eye and IMHO it just wasn't up to the task of streaming video over WIFI. Lots of lag and gitter. Also keep in mind that the CSI connector on the Pi Zero is smaller than the one on the other Pi's. You need a special camera cable for the Pi Zero and official camera. The cable supplied with the camera won't plug into a Pi Zero's CSI connector.

Dubman
Posts: 127
Joined: Thu Mar 15, 2018 3:53 pm

Re: Adding second camera to Rpi 3?

Fri Jul 05, 2019 5:59 am

I do have a second Rpi 3, but would it be complicated to get it working with the current system, which is a Rpi 3 plus PIR sensor that triggers email alerts on detection of intruders? I mean, would the one PIR sensor be sufficient? I assume I would need to connect the second Rpi and its camera module by LAN to the router, and the Python script would need modificaton? Thanks

alphanumeric
Posts: 2109
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Adding second camera to Rpi 3?

Fri Jul 05, 2019 9:47 am

Thats something I haven't tried. My cameras are basically all independent of each other. They all connect over my WIFI and are viewable from a web browser. Motion eye will take pictures if motion is detected in the camera image. I played with it a bit but never really got it working the way I wanted. I either got no pictures or +100 pictures of a blurred Blue Jay.
I have a PIR sensor and an Ultrasonic sensor. At one time I was going to have a go at using them with one of my cameras but couldn't find my round 2it. ;)

alphanumeric
Posts: 2109
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Adding second camera to Rpi 3?

Fri Jul 05, 2019 11:22 am

Just happened on this a few minutes ago, have a look see it might help.
https://www.instructables.com/id/Bird ... tor-V20/

spock
Posts: 208
Joined: Sun Oct 02, 2011 10:33 am

Re: Adding second camera to Rpi 3?

Sat Jul 06, 2019 10:10 am

aBUGSworstnightmare wrote:
Thu Jul 04, 2019 2:04 pm
I would disagree! Who needs to cameras would be my question to you!
Yes, there are two HDMI connectors, but the DSI 7in has touch input which is not available via HDMI.
i would have many ideas for two cameras. 3D or 360° movie captures, surveillance like the original poster,...

there are many displays that work with HDMI and do touch over USB. they also are cheaper than the official DSI display. so i am quite surprised that so many people seem to use the DSI connector. :)

alphanumeric
Posts: 2109
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Adding second camera to Rpi 3?

Sat Jul 06, 2019 11:19 am

I have my Pi foundation 7 inch screen mounted to an aluminum frame. Being able to bolt the Pi to the back of the display with a nice short cable works out nicely for me. Different strokes for different folks. My setup is portable enough to move it from one room to another with my Pi and monitor in one hand, power supply in the other.

W. H. Heydt
Posts: 11005
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Adding second camera to Rpi 3?

Sat Jul 06, 2019 4:33 pm

spock wrote:
Thu Jul 04, 2019 10:46 am
edit:
i would prefer if the normal raspberry pi 4 had 2 CSI connectors and got rid of the DSI connector. who needs the DSI connector if there are two hdmi ports? :)
What? And have to get new screens if I decide to upgrade three of my systems? Sorry...no. Let me add to that....NO!

Dubman
Posts: 127
Joined: Thu Mar 15, 2018 3:53 pm

Re: Adding second camera to Rpi 3?

Tue Jul 09, 2019 12:55 pm

Thanks for the suggestions. I'm hoping to find the simplest possible solution.

gordon77
Posts: 4224
Joined: Sun Aug 05, 2012 3:12 pm

Re: Adding second camera to Rpi 3?

Tue Jul 09, 2019 12:59 pm

Use a USB camera

Return to “General discussion”