Page 1 of 1

Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 12:39 pm
by TIbuk
Good day fellas, have a problem with Raspberry Pi camera which I got from Aliexpress, seller cant give full datasheet, manufacturer too. I just want to control IR filter on it, to turn on/off night mode, by soft, not thru light sensor, without rebooting system. Camera based on OV5647 stone. Please help me! :cry:

Re: Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 1:25 pm
by 6by9
Provide a link to the Aliexpress page, otherwise we're having to guess.

The most common OV5647 with controllable IR cut filter is the Waveshare one - https://www.waveshare.com/rpi-ir-cut-camera.htm
Read the wiki for controlling the IR cut filter.

You can generally control the camera LED line via software, but it is not connected to the same GPIO on all variants of Pi, and on the Pi4 it is actually absent due to not being a requirement on the currently supported camera module (IMX219).

Re: Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 2:29 pm
by TIbuk
https://aliexpress.ru/item/33025061460. ... b201603_55
Here is the Link for camera. So its impossible to turn on/off night mode without rebooting system?

Re: Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 3:22 pm
by DirkS
So you set normal / NoIR mode by (un)setting disable_camera_led...

You can try if 'picamera' can do the same: https://picamera.readthedocs.io/en/rele ... ng-the-led
Or by using GPIO32 (GPIO5 on older Pi models): https://www.raspberrypi-spy.co.uk/2013/ ... ra-module/
Interestingly viewtopic.php?t=213170#p1314269 mentions GPIO8

No idea if these methods (still) work.

Re: Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 3:54 pm
by 6by9
If you want to know what GPIO the LED is connected to, the official source is https://github.com/raspberrypi/firmware ... t-blob.dts and look for the CAMERA_0_LED property for your particular board variant.
If it is listed as external, then it is on the GPIO expander. Internal is the same Broadcom pin numbering as used by most userland GPIO libraries.
It's never been on GPIO8.

Yes, PiCamera has a slightly icky mechanism to set the LED from your app. See https://picamera.readthedocs.io/en/rele ... Camera.led Please note the provisos.

Re: Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 4:38 pm
by TIbuk
Thanks a lot guys, I hope this will help, appreciate your help.

Re: Raspberry PI cam Chinese edition

Posted: Wed Feb 26, 2020 5:07 pm
by HermannSW
TIbuk wrote:
Wed Feb 26, 2020 2:29 pm
https://aliexpress.ru/item/33025061460. ... b201603_55
Here is the Link for camera. So its impossible to turn on/off night mode without rebooting system?
Product description from your link says no, but you should be able to change the camera led GPIO with eg. pigpio pigs command as well.
I have a similar camera at home, that uses a photo resistor to change between day and night mode.
night_mode.png
night_mode.png (87.28 KiB) Viewed 335 times