05-15-2015, 09:00 PM
(05-15-2015, 08:40 PM)Varanon link Wrote:Ok, doveman, one more question: You said the HC05 should be wired like this:
Pro Micro to HC05: Pin 9 to Key, Pin 10 (RX) to TX and Pin 14 (TX) to RX
Are you sure about pins 10 and 14 ? The sketch uses Serial1, which is supposedly pins 0 and 1
That is what I used when configuring the HC05 with this sketch:
http://www.techbitar.com/modify-the-hc-0...mands.html
In that sketch, pins 10 and 11 are defined for BTSerial but as the Pro Micro doesn't have a pin 11, I just changed it to 14 instead. I also used Serial.begin(57600) and BTSerial.begin(38400); but BTSerial.begin(57600) should work as well and it might be easier to keep them both the same.
Also, the VCC needs to be connected only after the Arduino is powered up, to get the HC05 into command mode, so use a jumper for that so that you can connect/disconnect it easily.
In the final build, with the GY-85 and HC05 connected, the HC05 does go TX to Pin1 and RX to Pin0.