Let's begin this project by getting all the hardware set up and connected. Once connect each piece of hardware, we will do a quick test to check whether it is working as expected before moving on.
Let's start with the accelerometer.
Let's begin this project by getting all the hardware set up and connected. Once connect each piece of hardware, we will do a quick test to check whether it is working as expected before moving on.
Let's start with the accelerometer.
To communicate with our accelerometer, we need to connect four of the points on the board to four of the GPIO points on Pi Zero. The ADXL345 board uses I2C, so we will be using the same connections as we did with the Scroll pHAT HD, except we will be using a 3.3V power instead of a 5V power this time. This diagram shows us how we need to connect the ADXL345 to our Pi Zero:
As the ADXL345 is such a tiny board, we will be locating it...