Take a look at this post.
Also look at the posts from Alexey Vasilyev as he is the TinyCam programmer.