I am currently trying to trigger a MAPIR Survey3 NDVI Camera with a PWM Signal. The camera is connected via this HDMI trigger cable. For the camera to trigger I need a 2 ms PWM signal. I have given this PWM signal to the camera via a push button.
I have tried this python script:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.OUT)
p = GPIO.PWM(4, 350)
p.start(66)
Camera should click picture whenever PWM signal is recieved. The problem is that when I press the button, sometimes the picture gets clicked (means it get triggered) and sometimes not (not trigger occurs?y this problem occurs ?