Reader small image

You're reading from  Raspberry Pi LED Blueprints

Product typeBook
Published inSep 2015
Publisher
ISBN-139781782175759
Edition1st Edition
Right arrow
Author (1)
Agus Kurniawan
Agus Kurniawan
author image
Agus Kurniawan

Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
Read more about Agus Kurniawan

Right arrow

Building a remote light controller-based Bluetooth


In Chapter 5, Building Your Own Traffic Light Controller, we already developed a traffic light controller. However, we controlled the lamps/LEDs directly from an internal app in Raspberry Pi. In this section, we will build an app that controls actuator or sensor devices on Raspberry Pi remotely via Bluetooth.

For testing, we will use three LEDs as actuator devices, which are controlled from the Android app via the Bluetooth module. We will use the HC-06 Bluetooth serial device, and the price is cheap. This module uses a Universal Asynchronous Receiver/Transmitter (UART) to send and receive a Bluetooth packet. You can get this module from eBay, Amazon, or your local electronics store:

Wiring

To build our demo, we need the following hardware:

  • A Raspberry Pi board

  • An HC-06 Bluetooth serial

  • Three LEDs

  • Cables

The following is the hardware wiring:

  • The HC-06 TX is connected to Raspberry Pi RX

  • The HC-06 RX is connected to Raspberry Pi TX

  • The HC-06 GND is...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Raspberry Pi LED Blueprints
Published in: Sep 2015Publisher: ISBN-13: 9781782175759

Author (1)

author image
Agus Kurniawan

Agus Kurniawan is an independent technology consultant, author, and lecturer. He has over 18 years' experience working on various software development projects, including delivering training courses and workshops, and delivering technical writing. He has done a few research activities related to wireless networking, software, and security in multiple universities. Currently, he is pursuing a Ph.D. program in Computer Science in Germany. He has previously written five books for Packt.
Read more about Agus Kurniawan