Notifications
Clear all

ArduCam and libcamera

132 Posts
6 Users
4 Likes
5,732 Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway I can't find a C library for the sensor. I highly recommend a different approach like the motion-detecting camera projects. Here is a bit from a spec sheet for your device

  • Repeatable trigger mode: after induction output high level, the time delay period, if there is the human body in the scope of its induction activities, its output will always keep a high level, until the people left after the delay, it becomes low level (that is, the sensing module automatically delays a delay period after detecting each activity of the human body, and takes the time of the last activity as the starting point of the delay time)

It sounds like maybe it doesn't work the way you think. When I was investigating intrusion systems, I discovered this kind of sensor does NOT work the way we think and is either unsuitable or needs a secondary detector to 'gate' the other.

 

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

Posted by: @emeyeraway

@zander 

I don't understand the question.

Please quote the question you don't understand, this forum doesn't have normal forum conversation indenting rules so I have no idea what you are talking about.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

Posted by: @emeyeraway

@zander 

No, I'm using a Raspberry Pi 3B+.  I described my setup in my first post.

What is this in reference to?

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway I know this might be hard to understand, but what if the situation were reversed and now it is 'normal'. The reason why the previous version worked was that the code was in blocking mode. I can't tell since I don't understand python but everything I read about the PIR sensor tells me this thing cycles and even has 2 adjusting pots as seen in the picture I posted. It is this cycling behaviour that ruled it out as an intrusion detection sensor for my use as well.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway Lot's of good info in the attached Adafruit document.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway Sorry, I should have checked to see what if anything Bill has published and it looks like he has exactly what you need. It is HERE

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@emeyeraway)
Member
Joined: 3 years ago
Posts: 21
Topic starter  

@zander 

Well, he uses the legacy camera software there, and I have been successful with that.  It's libcamera that's giving me fits.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway Forgot about that. He also uses a different sensor. Even if different camera software, it shouldn't be too hard to modify the code.

Why worry about the headless option, just use it without.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@emeyeraway)
Member
Joined: 3 years ago
Posts: 21
Topic starter  

@zander 

I had the same problem with the sensor he uses in that video.

Headless because I want to use the camera setup in my yard.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway What happens if it isn't headless but just has no keyboard or display attached?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@emeyeraway)
Member
Joined: 3 years ago
Posts: 21
Topic starter  

@zander 

I thought "headless" meant no keyboard or display attached!


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7021
 

@emeyeraway yes, but it also includes a remote connection. What I am suggesting is just physically remove the keyboard and display and let it sit for a few minutes to see what happens.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

@emeyeraway 

I have rather too many rpi's and I only use them headless.   Whilst I do connect with ssh I only do so as a plain old terminal and have not done any ssh -X stuff to get a graphical interface going.   The main reason is that both VNC and Microsoft Remote Desktop both work very well with the rpi.

So rather than muck about with ssh for your purpose of controlling a remote rpi and seeing the display that your camera software may be showing why not use VNC.   A free VNC client can be downloaded for your PC or mac.  A small config on the rpi to get the already installed vnc server on your rpi, and you've got a nice display to control your rpi just as if your rpi was connected directly to a console via its htmi port.   

If you need any help in getting vnc up and running give us a shout, but have a look at the vnc site to download a client of your choice for starters.   (ssh with graphics and qt stuff, oh no no no 😀)


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2535
 

@byron 

Welcome back to the toadless environment, been quite a while:)

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

@will  - Thank you kindly - rude toads crossing the forum road are alway likely to end up a squashed mess, run over by a passing moderator. 😎 


   
ReplyQuote
Page 2 / 9