<

12

networking

This week we needed to have a device talk to another device. I started by using the RN4871 bluetooth module and getting it to work with an existing Arduino.

First, I needed to establish a connection between the RX/TX pins of the Bluetooth module to the Arduino.

Next I used Coolterm to see the output. Looking at the documentation, the RN4871 has a baudrate to 115200, and also the key emulation to CR. $$$ enables it to enter command mode.

I connected the RN4871 to another board and did the same process to visualize it on coolterm.

To connect the two boards together, I looked up the bluetooth address of the board: BTA=D88039F8E075

The command C, 0, D88039f8E075 connects the two boards together, and the terminal showed that they are connected.

Once I got bluetooth boards talking to each other, I wanted to find a way to use the bluetooth of my computer to communicate with my bluetooth device. I realized that most of the software out there requires Android, and so I wasn't able to connect properly.

I came across an article that allows you to control a bluetooth through a webapp and I intend to try that out for my final project.