Book Image

Raspberry Pi cookbook for Python programmers

Book Image

Raspberry Pi cookbook for Python programmers

Overview of this book

Table of Contents (18 chapters)
Raspberry Pi Cookbook for Python Programmers
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Controlling the Raspberry Pi over Bluetooth


Serial data can also be sent through Bluetooth by connecting a HC-05 Bluetooth module that supports the Serial Port Profile (SPP) to the GPIO serial RX/TX pins. This allows the serial connection to become wireless, which allows Android tablets or smartphones to be used to control things and read data from the Raspberry Pi.

The HC-05 Bluetooth module for the TLL serial

Note

While it is possible to achieve a similar result using a USB Bluetooth dongle, additional configuration would be required depending on the particular dongle used. The TTL Bluetooth module provides a drop-in replacement for a physical cable, requiring very little additional configuration.

Getting ready

Ensure that the serial console has been disabled (see the previous There's more… section).

The module should be connected using the following pins:

Connection to a Bluetooth module for the TLL serial

How to do it...

With the Bluetooth module configured and connected, we can pair the module...