I’ve been trying to create a 3D solution using stereoscopic camera on Jetson Orin Nano. Using python, opencv and gstreamer I captured the camera visuals from both the cameras and made the camera visuals to display alternately in specific interval of 9ms. Also I triggered the GPIO pin to toggle HIGH when left frame displayed on the monitor and LOW for the right frame.
It should generate a frequency of 48 Hz on the GPIO, but it generates frequencies like 47.685, 48.247, 49.186 etc. I checked the waveform on DSO and got to know that the time period of pulses are varying, thereby the frequencies are varied. Since the active 3D shutter glasses accepts only specific frequencies like 48, 50 Hz to respond and shutter.
Here are time stamps printed on serial terminal:
Total Elapsed Time: 9.488 ms
Total Elapsed Time: 10.088 ms
Total Elapsed Time: 9.654 ms
Total Elapsed Time: 9.995 ms
The timings were not all uniform.
So I should need to make the time period of pulses uniform and generates 48Hz without decimals for the 3D glasses to see the 3D content .
Please help me to overcome this frequency flickering issue!
I also tried to develop a simple 48Hz pwm on 15th physical pin (It’s a pin dedicated for pwm).
Even though it flickers between 47.76,47.95,47.55 etc.
Why it’s not stable frequency from the pin of orin nano?
Any solutions for it? Since my hardware needs exact 48Hz to drive the transmitter.