In this week, the group worked on the Bluetooth function. The objects of that were setting the Bluetooth into AT mode and connected it to a Android phone and the Bluetooth can receive the instructions, which were transmitted by controlling on the APP called .
Summary of week's activities :
1. The HC-05 Bluetooth entered into the AT mode. Firstly, connecting Rx pin of the Bluetooth module to pin 11 of Arduino Uno, and Tx pin of Bluetooth to pin 10 of Arduino. Also connect ground to ground, but don't connect the Vcc yet.
Secondly, we input the code into the Arduino IDE. After we compiled and uploaded the code, opened the serial monitor and changed the "no line ending " to "both NL & CR". Due to the default baud rate of this Bluetooth was 9600baud, we set the baud rate to 9600baud.
The circuit and the code had gotten ready, we found the light on the Bluetooth kept flashed for 2 seconds and kept dark for 2 seconds but not 2 flash in 1 second. When we input "AT" in the serial monitor, there was a OK displayed in it. That mean the Bluetooth had entered into the AT mode.
Summary of week's activities :
1. The HC-05 Bluetooth entered into the AT mode. Firstly, connecting Rx pin of the Bluetooth module to pin 11 of Arduino Uno, and Tx pin of Bluetooth to pin 10 of Arduino. Also connect ground to ground, but don't connect the Vcc yet.
Figure 1: Bluetooth connected with board
The circuit and the code had gotten ready, we found the light on the Bluetooth kept flashed for 2 seconds and kept dark for 2 seconds but not 2 flash in 1 second. When we input "AT" in the serial monitor, there was a OK displayed in it. That mean the Bluetooth had entered into the AT mode.
Figure 2: The code and the AT mode.
2. The Bluetooth connected to the Android phone. Opened the Bluetooth function on the phone and found the Bluetooth address, which could be find by input "AT+ADDR" in serial monitor then connected them.
3. The APP could send instructions. We wanted to make the Bluetooth received the data, which sent by controlling APP, so we had to change the code. Then we could observe the data in the serial monitor that could match with instructions from APP.
Figure 3: The instructions in the APP
Figure 4: The new code and receiving data from APP
Problem, issues and concerns :
1. Due to we were confused to the function of the pins on the Arduino Uno, we wasted a long time to test them.
2. We considered the "key pin" on the Bluetooth should connected to pin 9 on the board, but we could not connect the Bluetooth with the phone when we did it.
3. We lacked experience in coding, so it was difficult for us to debug the code.
Plan for next week :
Complete the code about motors.




Comments
Post a Comment