ebay or Amazon) device for creating serial data connections. When looking for the HC-05, watch carefully to make sure that the device offered is the HC-05, which is programmable as master or a slave, and not the HC-06 which can only be one or the other.
The HC-05 is a surface mount module and runs at 3.3v. Many vendors offer the module mounted on a carrier board with pins and, for some, 5v to 3.3v level translation. Of course the carrier boards add to the price, but it remains reasonable. The unit purchased for this exercise was under $11. It arrived in less than a week from New York (many of the vendors ship from China which can take up to a month to arrive).
This exercise covers an Arduino library that I put together to make it easier to to work with the HC-05. The library handles the command/data mode switching and provides blocking for write() calls if there is no connection. The HC05 library can be easily configured to work with hardware or software serial ports and includes a debug mode.
Change Device Name
- Highlight the baud rate changes
Configuration / Development / Debug
Contact me about the exercise by commenting on my Google+ post or by opening an issue at the GitHub repository for the library..