[Bshikin] built a pinhole camera out of Lego pieces (translated). It is a fully automated unit thanks to the integration of the NXT pieces. It took a bit of careful calculation to get the film spacing adjusted to match the focal length, and quite a bit of tape was necessary to keep light out of the film chamber. But in the end, it’s an amazing build that takes decent pictures. The software has settings for film size and speed, and takes care of exposing and advancing the frame at the click of a button. See for yourself after the break.
If you hunger for some more camera building goodness check out this SLR hand crafted from scratch.