9. Testing Out Bluetooth Connection
After receiving the HC-06 module, I decided to try my hand in connecting things together and testing out to see how I could establish a Bluetooth connection. Following this tutorial, this is what I managed to piece together.
I downloaded the app provided in the tutorial, and it works! I didn't manage to take a video of the LED responding to my phone turning it on and off, because my phone was busy being the remote. But it's a relief to see that the very basic sending of binary data is achievable using these tools.
One important point to note is that I realised I was unable to upload the Arduino code into the Arduino board while the Bluetooth module was connected. This was later explained by Ron to be due to the fact that the Bluetooth utilises the 0 and 1 digital pins, called the RX and TX pins, to send the signals, and this also happens to be the same pins through which the code is sent through. It's a bit of a pain having to unlink and relink the Bluetooth module every time I need to load a new code, and Ron suggested that I could use an Arduino Mega board to solve this issue as the Mega has two sets of RX TX pins. I ended up deciding not to do this in the end, as the added bulk would make my finished module pretty big.
Overall, pretty interesting new discoveries, the next step is trying to work on Android Studio again and trying to figure that out. It's honestly a little intimidating just looking at the layout of the whole software. I don't know where to start. But I have to :(
![]() |
| The diagram provided by the tutorial |
One important point to note is that I realised I was unable to upload the Arduino code into the Arduino board while the Bluetooth module was connected. This was later explained by Ron to be due to the fact that the Bluetooth utilises the 0 and 1 digital pins, called the RX and TX pins, to send the signals, and this also happens to be the same pins through which the code is sent through. It's a bit of a pain having to unlink and relink the Bluetooth module every time I need to load a new code, and Ron suggested that I could use an Arduino Mega board to solve this issue as the Mega has two sets of RX TX pins. I ended up deciding not to do this in the end, as the added bulk would make my finished module pretty big.
Overall, pretty interesting new discoveries, the next step is trying to work on Android Studio again and trying to figure that out. It's honestly a little intimidating just looking at the layout of the whole software. I don't know where to start. But I have to :(
References:
Girish, M. (2016). How to Control an LED Using a SmartPhone and Arduino! | DIY HAcking. [online] DIY Hacking. Available at: https://diyhacking.com/arduino-bluetooth-basics/


Comments
Post a Comment