-1

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 ?

Dirk
  • 3,749
  • 3
  • 19
  • 27
Jashan
  • 1
  • 1

1 Answers1

0

Try (my) pigpio.

sudo pigpiod

pigs s 4 1000

To trigger a photo

pigs s 4 2000 mils 100 s 4 1000

man pigs for help

joan
  • 71,852
  • 5
  • 76
  • 108