Skip to content

An Arduino library for the HC-06 Bluetooth module using the BC417 chip. Made for version "hc01.comV2.0", but might work with others.

License

Notifications You must be signed in to change notification settings

dennistreysa/HC-06-BT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HC-06-BT

An Arduino library for the HC-06 Bluetooth module using the BC417 chip. Made for version "hc01.comV2.0", but might work with others.

Background

I was unable to get my Bluetooth module going, so I combined some other libraries to code my own. Maybe this might be helpful for others.

Config

There is not much you can configure. A minimal setup looks like the following:

Bluetooth BT(2, 3); // RX, TX

If you want to, you can specify the baudrate of the controller:

Bluetooth BT(2, 3, 9600); // RX, TX

Limitations

As you can read here there are some limitations to the SoftwareSerial:

  • If using multiple software serial ports, only one can receive data at a time.
  • Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69).
  • Not all pins on the Leonardo and Micro support change interrupts, so only the following can be used for RX: 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
  • On Arduino or Genuino 101 the current maximum RX speed is 57600bps
  • On Arduino or Genuino 101 RX doesn't work on Pin 13

Resources

Other Libraries

About

An Arduino library for the HC-06 Bluetooth module using the BC417 chip. Made for version "hc01.comV2.0", but might work with others.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages