2019年3月17日星期日

2_2

2_2
The sensor is used on the Arduino Uno, and the next step is to implement wireless data transmission. The core of this step is to achieve two Bluetooth pairing. Therefore, the purpose of this week is to complete two Bluetooth pairing.

When the passwords and addresses of the two Bluetooth are the same and the master-slave mode is set. In general, two Bluetooth can intercommunicate with data. In terms of form, it can be distinguished. When two Bluetooth pairs are successfully paired, the LED light on the Bluetooth flashes twice a second.


The circuit with Bluetooth can be seen in figure 1.

Figure 1: two Bluetooth pairing.
The website that https://youtu.be/WPUe0af87co  can see the video of two Bluetooth pairing.

Conclusion
First of all, in Bluetooth wireless communication, Bluetooth pairing and master-slave mode settings are crucial. The master mode Bluetooth is connected to the development board, and its function is sending data. Then slave mode Bluetooth connects to the PC, its function is accepting data. Then in the code, you need to add the wire.h header file and then add the output serial port to Bluetooth. After this, wireless transmission can be achieved. Of course, you can also receive data on the mobile phone. However, since there is no Android phone, I didn't try.

没有评论:

发表评论