Chapter 4. BLE Lock

In this chapter you’ll build a lock that can be opened using your phone. The lock mechanism will be built with an Arduino Uno, Bluetooth LE radio, and a solenoid lock. You’ll also write an iOS and Android application using PhoneGap that opens the lock using Bluetooth LE.

Lock Service

Most Bluetooth LE hardware for Arduino comes with a service that emulates the Bluetooth classic Serial Port Profile (SPP). While an SPP-like service could work for this project, it doesn’t take full advantage of Bluetooth LE. For this project, use the custom lock service defined in Table 4-1.

Table 4-1. Lock Service D270
Characteristic UUID Properties







The lock service does two things. The unlock ...

Get Make: Bluetooth now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.