Original BrickPi Bookreader

In this project we make an ebook reading robot with the BrickPi.

5. Focusing the RPi camera

After connecting the camera, there is one more thing to do: change the focus of the Raspberry Pi camera. The Raspberry Pi camera comes with its focus fixed at infinity, and since it is a fixed focus camera you have to manually change it. Here are some helpful links to help focus the camera:

After setting up the camera, take a test image to see that it is properly focused. In the rig that we built, we have the camera about 10.5 inches above the tablet (choose a height which is comfortable for you and take a few test photos to check if the images are clear and the whole screen of the tablet is captured).

Now fix the camera into its adapter next to the Ethernet Jack. Here is a great guide to setting up the Raspi Camera. It should be helpful in setting up both the hardware and software.

After the camera is set up, test it to see if it works:

raspistill -o image.jpg

If the camera is initialized properly you’ll see a new file image.jpg in your present folder. Open it to see the image.