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 first (and the most important) piece of hardware we need is the camera board. Firstly, start by connecting the camera board 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.