I didn´t know this until yesterday, and I don´t know if it´s a well know thing on this forum, so I thought I could share. It can be used as another cheap or prototype solution.

From the FCam website: http://fcam.garage.maemo.org/index.html

FCam is an open-source C++ API for easy and precise control of digital cameras. It allows full low-level control of all camera parameters on a per-frame basis, making it easy to rewrite the camera’s autofocus routine, to capture a burst of images all with different parameters, and to synchronize the operation of the camera lens and flash with all of the above.