Door bell with pi camera and motion detection

This makes me want to go out and buy a Zero now; I already have a Ring but this would be great for some extra camera coverage.

Hi, great work!
I don’t know if you’re aware about this project from some guys in Germany DoorPi.
It’s a standalone VoIP with video intercom station with RPI.
I have tested it for some time ago and it was very nice.
I hope it could give you some ideas or create something similar with all the missing parts like MQTT integration, VoIP integration etc.

2 Likes

Thanks! That’s great. I am forever scanning the internet for examples and snippets to help with this.
I never thought of using voip. I shall be looking into this.

I may have to alter the code slightly any way because I have set the gpio on interupts it is conflicting with the timed snapshots. It happens rarely but it kicks up an error and ends the script.

I wanted to avoid checking the gpio constantly to reduce power consumption and system resources, but I may have to just include the gpio checks in the main loop.

Unless anyone has a suggestion.

I just found mumble chat server which might prove a more lightweight soloution, for voice.

1 Like

Another treasure for this project, only 14 quid too… https://shop.pimoroni.com/products/raspberry-pi-zero-camera-module

1 Like

Found this old chestnut

1 Like

OK followed this https://pimylifeup.com/raspberry-pi-webcam-server/ to get my pi zero camera feed available via the pi IP.
Next will follow https://home-assistant.io/blog/2016/06/23/usb-webcams-and-home-assistant/ to setup with HA. Then will use MQTT for notification of motion using on_picture_save as described for email in https://utbrudd.bouvet.no/2017/01/05/building-a-motion-activated-security-camera-with-the-raspberry-pi-zero/

I got one it arrived today, only issue is , some of the electronics are on the flat cable and is not very flexible, doubtful if it will work with the zeroview, which is dissapointing.

I found this for inspiration, I think its great that he has actually got it all done and working. I will be looking at his project for more pointers. Along with a few other posts I have found which I shall share here when I get around to it.

I have seen this, I am tempted with motion but I am still trying to get opencv to install, which allows face detection and recognition. I thought about removing the PIR and just use opencv to detect motion, and trigger the notifications.I am struggling to install it, takes at least two hours , as it need to be compiled, Ive gone through the steps twice now and come up with different errors each time (Probably something I done wrong). Once I get a working version Ill get an image made to make things easier for the future.

I have played with motion, it works well detecting motion, I havent looked into adjusting the sensitivity yet , any movement triggers it even shadows moving.

Sounds like you have a nice plan packaged up, thanks for sharing , I hope it works out for you , let me know how you get on.It may help me with my options and decisions on which direction I am going to follow.

I may just use motion for the time being, then get another zero and keep trying to install opencv on that.

For the face detection why not try https://home-assistant.io/components/image_processing.microsoft_face_detect/ :slight_smile:

For openCV checkout https://pythonprogramming.net/robotics-raspberry-pi-tutorial-gopigo-introduction/

1 Like

Already tried it, I have a problem with my ISP (Virgin media) it messes with my ports and outgoing IP addresses, not only that I cant redirect one port to another with the supplied router.
I can just about get letsencrypt to work , (dont know how)
Its the same with my Amazon echo when I tried to get flash briefings to work, I spent too many hours trying to get it working, I have just left it for now hoping, maybe Ill have another shot at it when Im bored or when I get fed up enough to change my ISP.

My current rule now is - anything cloud based that requires SSL certificates, I leave well alone.
Its disappointing I know, but I can only play with what I got.

Ive been following this one, its pretty good, despite me failing the install twice, currently trying it again.

Think I have that same router, virgin super hub? I bricked my internet for 3 days after I tried to setup port forwarding :joy:

This will be perfect for the project, no need for wifi dongle and has bluetooth. Also I like the look of the new camera case, could chop a hole in it for the PIR.

2 Likes

Perfect!!! That was the only thing with the zero having to have an adapter, and a wifi dongle.
Now with the bluetooth I could possibly add a beacon.
Ive just ordered one with thee the case.and header. Shame, I already havet 2 of the standard zero’s. just got to find a purpose for them now.

I will use my old zero in my smart mirror project :smiley:
Re bluetooth button, please share if you find a good one that costs less than the zero… Considering just wiring the button to the zero, then only cable required is power to the zero

1 Like

A word of advice with the zero camera port, be very gentle.
I just gently released the clip to remove the camera and it fell off.
Now Im having a nightmare trying to get the clip back on, but I think on of the little barbs have snapped.
I hope the camera port is improved with the Zero W.

1 Like