GithubHelp home page GithubHelp logo

Motion sensor version about hkcam HOT 15 OPEN

nielsth avatar nielsth commented on July 18, 2024 1
Motion sensor version

from hkcam.

Comments (15)

kaidesu avatar kaidesu commented on July 18, 2024 3

Possible this could be developed natively using just the camera:

https://github.com/bemasher/pmvr

from hkcam.

pieter avatar pieter commented on July 18, 2024 1

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.

brutella avatar brutella commented on July 18, 2024 1

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.

brutella avatar brutella commented on July 18, 2024

I haven't worked with the HC-SR501 sensor yet.
Does somebody have experience with it?

from hkcam.

nielsth avatar nielsth commented on July 18, 2024

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.

nielsth avatar nielsth commented on July 18, 2024

@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.

phillipthelen avatar phillipthelen commented on July 18, 2024

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?)

Screenshot 2019-07-15 at 21 01 05

from hkcam.

pieter avatar pieter commented on July 18, 2024

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.

phillipthelen avatar phillipthelen commented on July 18, 2024

@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.

RaymondMouthaan avatar RaymondMouthaan commented on July 18, 2024

You might consider using a different (smaller) motion sensor like the MH-SR602 or AM312

from hkcam.

cyberhusky69 avatar cyberhusky69 commented on July 18, 2024

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.

RaymondMouthaan avatar RaymondMouthaan commented on July 18, 2024

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.

cyberhusky69 avatar cyberhusky69 commented on July 18, 2024

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.

libewa avatar libewa commented on July 18, 2024

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.

sighmon avatar sighmon commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.