I am look at using accelerometer(s) as a wearable sensor to track the acceleration of someone's leg while they perform various motions. I would like to video/ take photos of the subject whilst the accelerometer(s) are collecting data. Is there someway to sync the camera with the data from the accelerometer? In order to draw the acceleration vectors on a frames/image from the camera. Therefore, the camera an accelerometer would have to be synchronised to be in real time. Could I use MATLAB?
I have actually done something similar in the past and it might give you a starting point.
I synchronized the video from a webcam and accelerometer data from an IMU connected to an arduino. I ended up programming most if it in Java but that's not really necessary you could probably do it in Matlab.
Assuming that you have already programmed the arduino to sample the accelerometer, you can send that data to a PC via a serial connection. Then you would connect the camera to the same PC, and use Matlab to start recording from both of them simultaneously.
It's far to complicated for me to explain all of the details in this post but I hope this gives you an idea of how to begin.
Goodluck!