The Raspberry Pi camera was mounted without a case on my robot car. But the robot is designed to operate in the field and this is the reason why the camera needs a case to protect the module from weather influences. I had the idea to by a surface box which costs only a few cents. The hardware store has a wide selection of surface boxes and I bought the smallest one which is made from very soft plastic.
I was cutting into the cover of the surface box a small hole for the camera lens. I always recommend to use a camera with a fish eye lens for robot cars because of the wide viewing angle. The following pictures shows the surface box and small white pins and in the back of the picture a black long pin. These pins are used as base for the camera module. For the white CSI camera cable I cut a small slot into the case beneath the cover. With the slot in the case I am now able to lead out the CSI ribbon without bending the ribbon.
If you wish to build a camera case out of such a small surface box do not cut the hole for the lens in the middle of the cover. Cut the hole a little bit on top of the cover. This will give you more space for the CSI ribbon to lead it out of the box with absolutely no bending of the cable if you close after wards the surface box. In my case the ribbon is bended a little too much to my mind.
Ad-link – fish eye camera
Below the ad-link to the Amazon online store which will you guide directly to the fish eye camera I typically use form y robot cars. I use this type of camera in my robot projects and the camera works perfect.
To mount the camera into the surface box was very easy. I cut of pins with a total length of 13mm of the black and white plastic stick. I decided to use pins with a length of 13mm because the lens should stand out of the cover 2mm. I used a hot glue gun to glue the pins into the surface box. The pins sit very firmly in the case and it is easy to mount the camera module on top of the pins with small screws. If I need the camera module for another project it will be very easy to screw out the screws. The next picture shows the mounted camera module on top of the pins.
After screwing the camera module into the surface box I closed the box and mounted the surface box with a plastic pipe from the construction market on top of my robot. With this kind of plastic pipes it is very easy to build constructions like the one I mounted the box on. My camera case looks like shown on the picture below.
After mounting the camera on the Raspberry Pi robot I adjusted the camera. To adjust the camera is very easy with the pipe construction I build. Maybe I will mount a micro servo-motor into the surface box to turn the camera up and down. This should be very easy.
E-Book – build a remote controlled robot with a Raspberry Pi
With this e-book you can create step by step, your unique remote controlled car. The interaction of hardware, electronics and software are explained with the help of concrete examples. This makes it easy to understand the more complex parts of the project.
The e-book is available as PDF.
The e-book costs 14.90 USD inkl. 19% VAT. (Germany).
When ordering from other countries the gross price may vary since then other VAT rates apply.
The next pictures shows the camera mounted above the robots teeth.
The following pictures shows the front of my robot.
I am very happy with the cheap and water proof camera case I build for a few cent. Maybe I will install a few IR LEDs into the cover of the surface box. Then with an IR version of the Raspberry Pi camera module I will be able to see at night.
Article list - Big Rob:Big Rob – Raspberry Pi robot
Big Rob – Raspberry Pi robot power train
Big Rob – Raspberry Pi robot motor driver BTS7960B and Python program
Big Rob – Raspberry Pi robot outdoor camera
Big Rob – Raspberry Pi robot with differential GPS
Big Rob – Raspberry Pi robot with nice teeth
Big Rob – Raspberry Pi robot Peak Power Pack power supply
Big Rob – Raspberry Pi robot videos