In all my time building projects with Arduinos, nothing has been a more mind-breaking nightmare than trying to pair, bind, and link an HC-05 with an HC-06.
Trying to follow online bluetooth tutorials doesn't help because they are either outdated, ambiguous, or incorrect. No matter what, though, ALL of the current tutorials out there are extremely tedious - requiring all AT commands to be executed by hand.
THE GOOD NEWS:You can use the attached sketch to
automatically pair, bind, and link an HC-05 with an HC-06 in under 30 seconds. You don't need to learn any AT commands!!
Also, this sketch will work if you have multiple hardware serial ports (i.e. Mega) or if you need to use software serial ports (i.e. Uno) - one sketch to rule them all...
EDIT: The most recent code can be found
here in the tutorial's Github Repo.