Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Sandeep Mistry, Don Coleman, Alasdair Allan
Make: Bluetooth
Preface
What Makes Bluetooth LE Unique?
But I Like Serial Connections!
Building a Custom Service
Who Should Read This Book?
What You Should Already Know
What You Will Learn
What’s In This Book
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgements by Alasdair Allan
Acknowledgements by Don Coleman
Acknowledgements by Sandeep Mistry
1. Introduction
Talking About Bluetooth LE
Protocols and Profiles
The GAP
The GATT
Services and Characteristics
UUIDs
An Example Service
Making Sure Your Machine Has Bluetooth LE
OS X
Apple iOS
Linux
Android
Microsoft Windows
What Haven’t We Told You About Bluetooth LE?
2. Getting Started
The Arduino
The Board
Powering the Board
Input and Output
Communicating with the Board
Installing the Arduino IDE
Installing on OS X
Installing on Linux
Installing on MS Windows
Connecting to the Board
Installing the BLE Peripheral Library
Setting Up Raspberry Pi
Installing BlueZ
Verifying the Bluetooth LE
Node.js
Installing Node.js
On Linux and Raspberry Pi
Installing Libraries with npm
Setting Up Dependencies for noble and bleno
OS X
Raspberry Pi and Linux
Installing PhoneGap
PhoneGap Developer App
Bluetooth Low Energy Plugin
PhoneGap Versus Cordova
Platform Tools
Android
3. Smart Light Switch
What Is a Smart Switch?
Hardware
The Breadboard
Getting Started
Resistor Color-Coding
Blinking an LED
Adding a Switch
Software Debouncing
Making a Real Light Switch
By Changing the Hardware
Changing the Software
Adding Bluetooth
Wiring Up the Adafruit Bluefruit LE Module
Modifying Our Sketch
Testing the Service
Using Real Lightbulbs
Conclusion
4. BLE Lock
Lock Service
Hardware
Lock Software
Programming
Setup
Loop
Unlock Characteristic Written
Open Lock
Reset Lock
Testing the Lock
iOS
Android
Mobile Application
Callbacks
BLE Lock App
CSS
HTML
JavaScript
Run the App
Improving the Lock
5. Bleno Lock
Hardware
Lock Software
Libraries
Programming
Conclusion
6. Weather Station
Hardware
Libraries
Programming
Compile and Upload
Serial Monitor
Using the Service
Using LightBlue on iOS
Using nRF Master Control Panel on Android
PhoneGap
Create the Project
HTML
JavaScript
Run the App
What’s Next?
7. NeoPixel Lamp
Hardware
NeoPixels
Building the Hardware
Software
LED Service
Programming the Arduino
Generic Bluetooth Client
Building a Phone App
Create the Project
HTML
CSS
JavaScript
Run the App
Enhancements
Physical Switch and Dimmer
Lamp
8. SensorTag Remote
Hardware
Create the Project
SensorTag and Noble
SensorTag Remote
A Simpler Version
Next Steps
Arduino Simple Key Service
9. HID over GATT
HOGP and BLEPeripheral
Volume Knob
Hardware
Arduino Library Setup
Testing the Rotary Encoder
Implementing the Volume Knob
Conclusion
10. Beacons
What You’ll Need
iBeacon
What Data Does an iBeacon Advertise?
Building and Detecting a Beacon
Creating a Mobile App that Uses iBeacons
Eddystone Beacons and the Physical Web
What Data Does an Eddystone Beacon Advertise?
Building and Detecting Your Own Beacon
Conclusion
11. Drones
What You’ll Need
Testing Out the Drone
Controlling the Rolling Spider with Node.js
Setting Up the Project
Discovering the Drone
Getting Started: Basic Takeoff and Landing
Keyboard Control
Conclusion
12. Going Further
The Arduino
Hardware Suggestions
Further Reading
A. HID Over GATT Pairing
iOS
Pairing
Unpairing
Android
Pairing
Unpairing
OS X
Pairing
Unpairing
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Make: Bluetooth
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset