Setting up smart wearable

The first thing to note about the hardware setup is that it is big and bulky. This is only a POC and is not even a remotely close production setup. The hardware setup would consist of an accelerometer connected to Raspberry Pi 3 and a 16X2 LCD.

The accelerometer ADXL345 gives the acceleration of X, Y, and Z axis over I2C protocol.

Connect the hardware as follows:

As you can see in the preceding schematic, we have made the following connections:

  • Raspberry Pi and LCD:

Raspberry Pi number - Pin name

16x2 LCD Pi name

6 - GND - Breadboard rail 1

1 - GND

2 - 5V - Breadboard rail 2

2 - VCC

1 k Ohm ...

Get Practical Internet of Things with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.