Example timelapse printing video, a function in OctoPi (OctoPrint). Raspberry Pi camera set to HD and mounted on print bed:
The above video was shot using my LED bar lights, build your own for less than 6 bucks!
Raspberry Pi case with camera case and adjustable mount. Links can be added to the camera mount arm to extend it as desired. The case includes mount holes and boss for attached directly to Open Beam OB1515 extrusion material.
Designed for use with OctoPi (OctoPrint), recommend using the new quad core Raspberry Pi 2 board, B+ board will also fit in this case.
Complete directions, OctoPi image download link/info, best Raspberry Pi 2 prices, and updates at BigCooter.com link: http://bigcooter.com/?p=1442
A simple LED light pipe can be made from bending a translucent piece of 1.75mm filament, and stuffing into housing hole.
Upper Case & parts made with Tinkercad. Edit it online https://www.tinkercad.com/things/guyw6v1ZJTw
Lower Case & parts made with Tinkercad. Edit it online https://www.tinkercad.com/things/7ZGF2xiv0pu
Print with no support, 15% infill, PLA or ABS. Threaded holes: drill 2.5mm / tap M3. Screw clearance holes: drill 3.0 to 3.3mm diameter.
The Raspberry Pi camera does have a factory preset focus distance that is not optimized for this application. A more macro focus can be achieved by simply turning the camera lens 1/3 to 3/4 turn CCW. Note that these lens are glued in position at factory, a small exacto knife using magnification can help release the glue, or just brute force turning with quality needle nose pliers can get it done - just be careful.
Optional: mount camera directly on print bed, with RPi case or separate with long cable see photo.
Video of Lower Case parts plate printing, using this camera with OctoPi Timelapse, with camera lens refocused (1/3 turn CCW): https://youtu.be/OnvyQCy9Brc
Pi case Remixed from http://www.thingiverse.com/thing:465678
Camera case Remixed from http://www.thingiverse.com/thing:247590