Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Android Blueprints

You're reading from   Arduino Android Blueprints Get the best out of Arduino by interfacing it with Android to create engaging interactive projects

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher Packt
ISBN-13 9781784390389
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

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 that uses the aREST library so that we can receive commands via Bluetooth coming from a smartphone or tablet.

The Android app will also be able to control the board remotely and we will have the opportunity to enhance the user experience by...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image