I am currently trying to trigger a MAPIR NDVI Camera with a PWM Signal. The camera is connected via this HDMI trigger cable. The white wire is connected to GPIO PIN 17, the black wire is connected to a grounding pin.
For the camera to trigger i need a 1.80 - 2.15ms long signal. For the signal i used 500Hz, which is about 2ms. The timings can be found on the first link provided.
Things i have tried:
This basic python script
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) p = GPIO.PWM(17, 500) p.start(100.0) p.stop() GPIO.cleanup()
This Matlab code
mypi = raspi('ip','name','pw'); configurePin(mypi, 17, 'PWM'); writePWMDutyCycle(mypi, 17, 1); writePWMFrequency(mypi, 17, 500);
And the same Matlab Code recreated in Simulink
I don't know if i'm doing something wrong, or if it's not possible for the pi to create such short signals, as it should be possible to trigger the camera via PWM.
Any help is appreciated!