Setting up the hardware
The first thing we will do is set up the two pieces of hardware and verify that they are working correctly before moving on to the software.
The camera board
The first (and the most important) piece of hardware we need is the camera board. Firstly, start by connecting the camera board to the Pi.
Connecting the camera module to the Pi
The camera is connected to the Pi via a 15-pin flat, flex ribbon cable, which can be physically connected to two connectors on the Pi. However, the connector it should be connected to is the one nearest to the Ethernet jack; the other connector is for display.
- To connect the cable first, lift the top retention clip on the connector, as shown in the following image:
- Insert the flat, flex cable with the silver contacts facing the HDMI port and the rigid, blue plastic part of the ribbon connector facing the Ethernet port on the Pi:
- Finally, press down the cable retention clip to secure the cable into the connector. If this is done correctly, the...