![]() You can easily switch this operation to using the on-board hardware UART. I used the software UART on the Arduino since the bitrate for the bluetooth module is low at 9600 baud plus it frees up the hardware UART for optional debugging from your PC. There is no need to modify these settings unless otherwise required. Upon default, the HC-06 powers on with the following default settings:īaud rate:9600N81, ID: linvor, Password:1234 The Bluetooth module adheres to the "Serial Port Profile" (SPP), which means it can communicate to a connected device just like any other normal serial port. The module can be easily connected to the Arduino via its 2 RX/TX pins on the software UART. The following commands are recognized: Command The HC-06 is an extremely limited device and can only acknowledge a few configuration commands. The HC-06 can operate in slave mode only, meaning it can only receive and send data to once connected device. It has an approximate range of 30 meters. It requires ~40mA during pairing and 8mA in all other cases. The HC-06 abides by the Bluetooth class 2 power level consumption. A host device such as the PIC16F1829 can easily communicate with the HC-06 using a TTL serial communication. It is manufactured by Guangzhou HC Information Technology Co., Ltd. The HC-06 is a hardware device that encapsulates a microcontroller running the Bluetooth software stack as well as a 2.4GHz antenna. They can be purchased on Amazon for only $9 or so. The total time to complete this tutorial should not take longer than 20 minutes assuming you already have and HC-06 or HC-05 bluetooth module. The Android phone will be using a simple terminal app to receive and transmit data to the arduino. This post will provide a sample Arduino sketch that uses the software UART to communicate to a connected Android phone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |