Dennistreysa/HC-06-BT - GitHub
Maybe your like
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, TXIf you want to, you can specify the baudrate of the controller:
Bluetooth BT(2, 3, 9600); // RX, TXLimitations
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
- Martyn Currey's Blog
- Chinese original datasheet
Other Libraries
- Android with Arduino - Bluetooth by aron-bordin
- PNG-Arduino-Framework-master by aron-bordin
Tag » Arduino Bluetooth Hc-06 Library
-
Interfacing The HC-06 Bluetooth Module With Arduino
-
Arduino And Bluetooth Module HC-06 - AranaCorp
-
HC-06 | Cộng đồng Arduino Việt Nam
-
Interfacing HC-06 Bluetooth Wireless Module With Arduino
-
Add Bluetooth To Your Arduino Project - Arduino+HC-06 - Instructables
-
Tutorial - Using HC06 Bluetooth To Serial Wireless UART Adaptors ...
-
Arduino Tutorial HC 06 Bluetooth Module - YouTube
-
HC-06 Bluetooth Module Datasheet And Configuration With Arduino
-
Tutoriel Basique D'usage Du Module Bluetooth HC-06 Avec Arduino.
-
Le Module Bluetooth HC-06 | Arduino-passion
-
Thư Viện Module Bluetooth HC-05, HC-06 Cho Proteus.
-
Learn Coding With Arduino IDE – HC-06 Bluetooth Module
-
Arduino Bluetooth HC-06 - Engineers Gallery