O'Reilly logo

Practical Internet of Things with JavaScript by Arvind Ravulavaru

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required