Whether using WiFi or GPRS remote control car, are not able to leave the PC this transfer station, and the PC has to use the ZigBee channel and the car communication, which greatly increased the cost of the remote control platform construction. Previously in the study of irobot robot, the use of its supporting Bluetooth module, through the PC Bluetooth connection, remote control irobot (related article "with MF Control Robot"). At present, most mobile phones also support the Bluetooth interface, so based on this, we borrow irobot Bluetooth module, you can use the mobile phone directly remote control intelligent car.
But the problem is, the original Bluetooth module and irobot matching, its module power supply, serial connection and other issues do not consider, the direct insertion of the 25-pin interface can be, and we want to use alone, we must understand the Bluetooth module of the 25-pin meaning to become. Unfortunately, the Bluetooth module itself has no further information, fortunately we have irobot 25-pin interface data, you can reverse the Bluetooth module PIN information, instructions on Pin1 for RXD, then the Bluetooth module Pin1 should be txd, the same reason pin2 for RXD.
The final pin definition and wiring with the Development Board are as follows:
Serial number |
Bluetooth module |
. NET MF Development Board |
1 |
2 (RX0) |
PA2 (USART2_TX) |
2 |
1 (TX0) |
PA3 (USART2_RX) |
3 |
(GND) |
GND |
4 |
8 (VCC) |
3.3v |
Note: Bluetooth module requires 5V power supply, the development Board is easier to lead to the 3.3v, the actual test found that 3.3v can also make the Bluetooth module normal work, and the Bluetooth module serial port for TTL level.