Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4971

Camera board • Re: prevent IMX290 from auto-toggle IR/Daylight

$
0
0
Thank you, Trejan.

Here is what I received after getting back to Waveshare. Sounds like baby talk since the space for the question is limited.

Q: To achieve manual switching IR/Daylight wire from "GPIO/switch" named hole to a raspi GPIO PIN. Which values to be sent to raspi GPIO pin?

A: If you use a program, the idle pin of Raspberry PI defines the high and low level to control.

So now I understand one should grab an unused (e.g. GPIO23 (pin 16)) pin and wire it to the "hole" marked "GPIO/switch" in the camera board as pointed out by Trejan. Define GPIO 23 as output and start de-/activating auto-switching within the python world.

import RPi.GPIO as GPIO
GPIO.setup(23, GPIO.OUT)
GPIO.output(23, GPIO.HIGH)
GPIO.output(23, GPIO.LOW)


Do you agree or any tackling complaints before I (hopefully do not) destroy the camera?

Thank you
Uli

Statistics: Posted by pickup7 — Wed Mar 27, 2024 11:31 am



Viewing all articles
Browse latest Browse all 4971

Trending Articles