Hi,
I am a newbie with embedded systems so I greatly appreciate any help!
My project is to develop a hardware synchronized sensor suite, which contains one IMU and 2 cameras. The IMU runs at 200 Hz and both cameras run at 20 Hz.
I also have a PPS output from a master clock. What I have in mind is to use the PPS as an input to one pin to start sending triggered pulses (pwm?) from other 3 pins (imuPin, cameLeftPin,camRightPin), each to one sensor.
I need to record the both the timestamp at which the trigger occured and the number of times it has been activated (sequence number). The reason behind this is to correct the timestamp associated with each measurement by matching with the correct timestamp of the same sequence. This is illustrated in the picture below.
The timestamp correction is done at driver side on the host computer so you don't here to think about it.
What I want is to have all pulses, including the PPS input, are edge aligned with corresponding rate for each one. I am not totally sure if this is achievable.
I found this thread https://forum.pjrc.com/threads/42545-Synchronized-multi-frequency-PWM-outputs?highlight=synchronization is somewhat close to my system but it did not need to sync to an external PPS. My understanding is that the PWM outputs are synced against the sys_tick ?
I am not really sure how to start so any help is very much appreciated!
I am a newbie with embedded systems so I greatly appreciate any help!
My project is to develop a hardware synchronized sensor suite, which contains one IMU and 2 cameras. The IMU runs at 200 Hz and both cameras run at 20 Hz.
I also have a PPS output from a master clock. What I have in mind is to use the PPS as an input to one pin to start sending triggered pulses (pwm?) from other 3 pins (imuPin, cameLeftPin,camRightPin), each to one sensor.
I need to record the both the timestamp at which the trigger occured and the number of times it has been activated (sequence number). The reason behind this is to correct the timestamp associated with each measurement by matching with the correct timestamp of the same sequence. This is illustrated in the picture below.
The timestamp correction is done at driver side on the host computer so you don't here to think about it.
What I want is to have all pulses, including the PPS input, are edge aligned with corresponding rate for each one. I am not totally sure if this is achievable.
I found this thread https://forum.pjrc.com/threads/42545-Synchronized-multi-frequency-PWM-outputs?highlight=synchronization is somewhat close to my system but it did not need to sync to an external PPS. My understanding is that the PWM outputs are synced against the sys_tick ?
I am not really sure how to start so any help is very much appreciated!