Share your configuration with results #28
Replies: 2 comments 4 replies
-
This project is almost done ! This is a simple case housing a Raspberry Pi, a relay and a LED push button. The case is attached to the printer with double sided tape. I'll add more info later but to summarize :
I printed it in pink. How fashionable =D GLOUPY |
Beta Was this translation helpful? Give feedback.
-
This is my setup that is using the raspiCam to control it. This is a Raspberry Pi 12MP Infrared capable camera. It has a switchable IR filter can auto switch between daylight and IR (or be manually locked to one or the other mode). The system is made up of the following. A Raspberry Pi Zero 2 W. An Arducam 12.3MP IR-CUT HQ Camera with 6mm CS Lens. An Arducam CSI to HDMI adapter (this allows me to use the camera a decent distance from the Pi using a HDMI cable to carry the signals). An LED IR light array (or 2 if need be) that run off 12v. A self built power box with outputs for the IR lights and a buck converter to convert 12v from a portable battery to 5.1v for the Pi. This box also has a USB connector that was to be used to control a relay inside to turn IR lights on and off but it is no longer used as I changed my mind on the design and this was ditched. I mean it will still work as it's physically still there for now but I decided to not bother switching the lights on/off as they have their own light sensors anyway. A PIR (passive infrared) detector is fitted to the front of the camera and a USB port on the rear (this is only 'USB' in the sense that it uses a USB port and cable to transmit power and signals to/from a relay inside the camera that enables or disables the IR-cut filter auto-switching and the PIR). This is why the relay in the power box is no longer used as the USB cable only has 4 wires, 2 for power and then 2 I could use as signal wires. The extra 'USB' port on the Pi is wired directly to the GPIO (5v, GND, GPIO 23 and 24). These 2 boxes for the PIR and USB port were additional to the camera's normal casing as the camera was to be used for a different project originally. As I didn't see the pointing in ditching the casing and printing another the 2 extra modules were instead retro-fitted to it. All cases are 3D printed from my own designs (well admittedly the Pi one is a replica of a case I bought before) with the camera case being what I would call semi-waterproof. It should survive normal rainfall without too much water getting in but there are also internal drain holes and baffles that should stop it ever getting to the electronics. The window in the top of the case is to allow light to reach the light sensor that decides if to switch to IR mode or not. This switching can be disabled, whilst in either mode, by controlling the relay. This means if I still want to shoot at night, but not in IR, I can do so. The camera is controlled with raspiCam and thanks to the new added controls (GPIO lockout and the ability to enable/disable stopping of a recording that is in progress from the GPIO) the PIR now can be set to trigger both photos whenever motion is detected and also 1 minute videos upon motion. The PIRs signal triggers pin 23 and raspCam is configured accordingly so it then just works like a physical switch you would press. Originally using the PIR was an issue for video triggering as the PIR would start a video recording and then promptly stop it when the PIR triggered again. This could be configured out on the PIR itself but that then gave a big delay between photos being taken so after posting about possible solutions to this the two features above were added, very quickly (thanks!), and now it is 100% perfect. There's still a lot of experimenting with settings to do to get the best exposure etc but the whole setup works really well now and raspiCam is perfectly controlling it. Additionally the Pi is setup to use my WiFi when I am within range but will also create it's own AP if not, meaning I can take it wherever and still remote to it by connecting to that self created AP. I have another 8MP IR only camera that I may well convert over to using raspiCam and the same PIR setup soon too. Any questions let me know. :) |
Beta Was this translation helpful? Give feedback.
-
I"m wondering how you use raspiCam. Let's use this discussion to share your setup (raspberry pi model, camera, lens, etc.) with some results and a short explanation. Maybe you want to share your configurations, tips, and tricks.
Beta Was this translation helpful? Give feedback.
All reactions