Controlling a robot from your phone via Bluetooth
Another incredibly useful wireless interface that we can use to interact with Arduino robots is Bluetooth. Just like Zigbee, Bluetooth is a powerful and very versatile wireless standard that can be used for many applications. We will use it in the most straightforward way, to connect to an Arduino over its Serial interface from a phone or tablet.
Hardware
This time, one side of the wireless communication will be your smartphone or tablet, so there is no extra hardware required on this end. We only need a Bluetooth adapter for your Arduino. For the next examples, we will use the Adafruit Bluefruit LE UART Friend as a Bluetooth Low Energy (BLE) adapter. This is a versatile and breadboard-friendly adapter with excellent software support. We only need to solder on the pin headers, place it on a solderless breadboard, and connect it to our Arduino, as shown in Figure 11.5:
Figure 11.5 – Connecting...