Comments (15)
Possible this could be developed natively using just the camera:
https://github.com/bemasher/pmvr
from hkcam.
I'm also interested in this. HKCam is running, but my PIR sensor is still being shipped. However, implementation should be pretty straightforward, since all the sensor does is toggle the GPIO port.
@nielsth Maybe you can try the above pull request and see if it works? You'll need to build a new version of hkcam, put it on your raspberry, and change the run command / service to include the --motion_pin
argument (e.g. by editing /etc/sv/hkcam/run
and adding --motion_pin=10
).
@brutella How do you feel about including this functionality in hkcam? It's not necessarily camera related, but I think it goes together nicely. Was also thinking of creating another enclosure model which contains a cut-out for the sensor.
from hkcam.
This feature looks very interesting.
If this is integrated into HKCam, we should make a 3D-printed enclosure which fits the motion sensor.
from hkcam.
I haven't worked with the HC-SR501 sensor yet.
Does somebody have experience with it?
from hkcam.
Could this be of any help?
https://www.mbtechworks.com/projects/pir-motion-sensor-with-raspberry-pi.html
The sensor can be connected to a Pi's GPIO port and is supported by the default GPIO library. Not sure if that library is on the HKCam as well?
I'm currently using a Pi 0 with camera module running homebridge. With this sensor connected to the GPIO port, all I needed was a simple Homebridge plugin to get the motion sensor in a separate tile in HomeKit / the home app.
from hkcam.
@pieter I'm afraid I don't have HKCam yet. I'm holding off investing in one because of this feature request :)
Edit: I could try that on my Pi 0 sometime in the next weeks. I guess I'll need to back-up and erase it so the current Homebridge installation won't get in the way? That'll take me some time though.
from hkcam.
I'm still waiting on my HC-SR501, which should arrive on friday, to get some good measurements but looking at the dimensions from the internet, just modifying the lid and maybe adding a separator between the module and the Raspberry pi could work. I'll try to verify if this works and try to get something working once my sensor arrives. (unless someone else already has work done on this?)
from hkcam.
Tried this today and the motion sensor worked as expected in Homekit.
Having an updated case would be awesome, not sure how the module is going to fit though. The HC-SR501 is kinda big. I was thinking maybe we could stack the modules, with the Raspberry being at the bottom, and the camera + motion sensor on top? So something like this:
|-\ /-------/ \------|
| CAM MOTION |
| RASPBERRY |
------------------------------
Excuses for the crappy ASCII art. This would create a somewhat thick, shorter version of the cam.
from hkcam.
@pieter I like your idea! My idea unfortunately doesn't really work, since the sensor is a lot thicker than I thought it would be.
For the shorter/thicker case, there would probably also need to be a middle piece that separates the PI from the camera and sensor, so that no components can touch each other.
from hkcam.
You might consider using a different (smaller) motion sensor like the MH-SR602 or AM312
from hkcam.
Hello I'm new here but find the hkcam project very interesting.
Does the motion detection also work with Doppler radar sensor RCWL-0516 ?
The main advantage over PIR sensors are the can be placed inside a case, have a higher range like 7 m and only detects human or animal motions (as they react on water inside bodies). This way the cam only detects motions it should and not vaccuum cleaners moving around or plants moving through wind.
The connections between the Pi and RCWL-0516 are as follows.
Raspberry Pi RCWL-0516
5V VIN
GND GND
GPIO17 OUT
More infos on how to connect this motion detector can be found here
https://www.electromaker.io/tutorial/blog/using-a-doppler-radar-sensor-with-the-raspberry-pi-12
from hkcam.
Some possible disadvantages of the rcwl-0516 could be that it has 360 degrees detection and goes through walls and doors, it might detect your neighbors.
from hkcam.
Some possible disadvantages of the rcwl-0516 could be that it has 360 degrees detection and goes through walls and doors, it might detect your neighbors.
I have nor neighbors just my cat and dogs around the house.
from hkcam.
Does the motion detection also work with Doppler radar sensor RCWL-0516 ?
More infos on how to connect this motion detector can be found here
https://www.electromaker.io/tutorial/blog/using-a-doppler-radar-sensor-with-the-raspberry-pi-12
You can connect it to HomeKit (for example brutella/hc) and create an automation A sensor detect something > camera > record video
or HomeKit's auto-recording, but it has to be implemented by @brutella.
from hkcam.
If anyone wants this as a standalone Go app while the PR is being reviewed: https://github.com/sighmon/homekit-hcsr501
from hkcam.
Related Issues (20)
- Setup command doesn't work HOT 7
- /dev/video99 not showing up HOT 1
- Running go task for hkcam fails with "esc": executable file not found in $PATH HOT 5
- /dev/video99: No such file or directory HOT 3
- Logitech C920 - Green video HOT 3
- Still image on Raspberry Pi HOT 1
- "404 Page not found" error on visiting Web Interface HOT 5
- No picture
- Support for two-way audio HOT 2
- Error: Invalid argument HOT 2
- Multiple Cameras
- Not an issue, but Question - PTZ Controls? HOT 1
- Error - Invalid Argument HOT 3
- SetupEndpoints issue in a special situation HOT 1
- connecting when not on the local wifi
- "apt-get install ffmpeg" failed
- record camera in homekit
- USB Webcam -> /dev/video99
- these instructions are simply too complicated, then it stops abruptly
- /dev/video0: Invalid Argument HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hkcam.