O'Reilly logo

Arduino iOS Blueprints by Fabrizio Boco

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

Arduino code

The full code of this project can be downloaded from https://www.packtpub.com/books/content/support.

To have a better understanding of the explanations in the next few paragraphs, open the downloaded code while reading.

Before going any further, we need to install the following additional libraries from Adafruit:

  • Adafruit ADXL345: This is used to get measurements from the ADXL345 accelerometer
  • Adafruit Unified Sensor: This is a general library that is required from the previous one

To install the libraries into the Arduino IDE, open the menu Sketch | Include Library | Manage Libraries …. For more information, see Chapter 2, Bluetooth Pet Door Locker.

Setup code

Please refer to the downloaded code, since the setup code is quite simple and ...

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