Raspberry Pi time lapse camera

Using the Raspberry Pi’s High Quality Camera module I made a time lapse camera in my living room.

Assembled camera sitting in my living room window
Show figure 1 detailsClose figure 1 details

Assembled camera sitting in my living room window

1 Case

I designed a case with a large lens hood and a recessed lens so that it can block the light from the room. This would allow the camera to take photos at night.

CAD screenshots of the case design
Show figure 2 detailsClose figure 2 details

CAD screenshots of the case design

Assembled camera
Show figure 3 detailsClose figure 3 details

Assembled camera

Camera chassis with HQ module on one side and the Raspberry Pi on the other
Show figure 4 detailsClose figure 4 details

Camera chassis with HQ module on one side and the Raspberry Pi on the other

Camera chassis reverse side showing the Raspberry Pi
Show figure 5 detailsClose figure 5 details

Camera chassis reverse side showing the Raspberry Pi

1.1 STL files

The files are also available on Thingiverse.

pichassis.stl

pihood.stl

piback.stl

2 Capture code

I decided to strive for maximum image quality even at night, by capturing a stack of images and summing them up.

GitHub Gist

3 Lens

I found a Basler C125-0618-5M-P on eBay which seems to have good image quality and fits the Raspberry Pi HQ Camera.

Picture of lens
Show figure 6 detailsClose figure 6 details

Picture of lens

The lens has significant barrel distortion but that is compensated for by my code above.
Show figure 7 detailsClose figure 7 details

The lens has significant barrel distortion but that is compensated for by my code above.

The lens is quite sharp and can resolve even 200 lp/mm. This chart is at f/1.8, polychromatic, 0.5 m working distance.
Show figure 8 detailsClose figure 8 details

The lens is quite sharp and can resolve even 200 lp/mm. This chart is at f/1.8, polychromatic, 0.5 m working distance.

4 Gallery

Picture taken by Raspberry Pi camera
Show figure 9 detailsClose figure 9 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 10 detailsClose figure 10 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 11 detailsClose figure 11 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 12 detailsClose figure 12 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 13 detailsClose figure 13 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 14 detailsClose figure 14 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 15 detailsClose figure 15 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 16 detailsClose figure 16 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 17 detailsClose figure 17 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 18 detailsClose figure 18 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 19 detailsClose figure 19 details

Picture taken by Raspberry Pi camera

Picture taken by Raspberry Pi camera
Show figure 20 detailsClose figure 20 details

Picture taken by Raspberry Pi camera