I have updated, corrected, and finally finished this example on using the HC05 Bluetooth Library for the Arduino.
10 plus ones
Shared publicly•View activity
View 11 previous comments
- No, I have not tried that. You might want to make sure you can upload using a hardwired connection to the pins you plan to use with the HC05 before adding the compilation of my library and the HC05.Dec 26, 2014
- No problem loading sketches via sub or ftdii external device.
I will do more diggingDec 26, 2014
- Hello. The HC05 is natively 3v3 volts and about 10mm wide by 20mm long and can be hard to work with if you're not used to smt type soldering. There are varients that are mounted on breakout boards which make them easier to work with and come to in either 3v3 or 5v depending on the mount. The one in your link is the version without the mount and will be 3v3.
I use this version in my project with a arduino pro mini which is 3v3 . Be aware that you cannot directly connect that version to a 5v arduino like an uno etc. You'll need to do some voltage level conversion on both the supply to the hc05 and the tx line from the arduino to the hc05. The tx from the hc05 will be 3v3 and can be directly connected to the rx of the arduino. Jan 20, 2015
- The problem stems form the fact that everyone calls the JC-MCU unit an 'HC-05'. Few people actually buy just an HC=-05, they nearly always buy them on a breakout board.Jan 20, 2015
What should I change in the HC05.h so I can operate the HC05 on the Hardware Serial Port 1 of the Arduino Micro?
According to your description:
Try using the hardware serial port. Comment out line 38 of HC05.h
37 * This macro must be defined even if you are using a software serial
38 * port. You can change this to any serial port supported by your
39 * Arduino (i.e, Serial1, Serial2, etc.)
40 * /
41 #define HC05_HW_SERIAL_PORT Serial
Since it can not be right what?
KWALTERMay 29, 2015
- The original post is now quite old and the library has been updated a few times. I haven't used it recently myself. It looks like the line to be commented has changed from 38 to 47. If HC05_HW_SERIAL_PORT is not defined, then port defined at line 41 (HC05_HW_SERIAL_PORT) will be used. Examine lines 8-13 of HC05.cpp for more information.34w
Add a comment...