O'Reilly logo

Arduino Android Blueprints by Stefan Buttigieg, Marco Schwartz

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

Chapter 2. Controlling an Arduino Board via Bluetooth

This second chapter of the book will be about putting things together and writing our first app to control an Arduino board via Bluetooth Low Energy (BLE). We chose to use BLE for all the Bluetooth projects of this book as it is the latest standard for Bluetooth communication at the time of publication. Compared to previous Bluetooth modules, BLE modules have low energy consumption as the standard works in bursts rather than maintaining a persistent connection. In addition, BLE offers low latency and has a comparable range to the older Bluetooth standards.

We will connect a BLE module to Arduino as well as an LED that we will control via an Android app. Then, we will write an Arduino sketch ...

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