How to send data via Bluetooth with the Touch Board with HC-05
Find out how to send data via Bluetooth with the Touch Board
Bluetooth is one of the most common wireless communication and using Bluetooth technology with the Touch Board allows you to send data from the Touch Board to your computer. You can use this data for programs to further enhance your projects and create Bluetooth smart sensors. All you need is the Touch Board and the HC-05 device to turn your Touch Board into a Bluetooth device. We use the Touch Board Pro Kit as it comes with the Proto Shield but you can also use a breadboard and wires.
At the moment this tutorial focuses on macOS computers only, but we’ll update this tutorial for Windows as soon as we can!
Step 1 Setting up the Touch Board
First, we the HC-05 to the board. We use the Proto Shield from the Touch Board Pro Kit, but you can also a breadboard, headers and wires. If you don’t know how to solder headers to the Touch Board, please use our soldering tutorial. To this wiring diagram to the to the Touch Board. the board to the module, we use a breadboard and jumper wires. Follow
Step 3 Connect to the Bluetooth module from a computer
On your computer, go to System Preferences and then . The HC-05 module should appear and you should be able to click “Pair”. You then need to click under “Options” and enter “1234” as a code. You have now established a to the Touch Board.
Step 4 Receive data
Let’s give it a test. If you now open Terminal, enter
ls /dev/tty.* to see a list of all connected to the computer. Our appears as “/dev/tty.HC-05-DevB”.
screen /dev/tty.HC-05-DevB. If you now touch the electrodes, it should appear within the terminal window!
Step 5 Next steps
Now that you are able to send data from the Touch Board to your computer with this , you can incorporate this into your project. For example, you could use Processing, to then use the incoming data for projection mapping. Or you can create a smart sensor with IFTTT or communicate with a whole range of .
If you want to use or , check out our tutorial, where we use a .