Problem with Bluetooth, SoftwareSerial & MKR1000

Hello everyone.

Guys, I'm trying to install the Bluetooth module HC-05 to my MKR1000.

But researching and testing, apparently the library <SoftwareSerial.h> or <NewSoftSerial.h> are not compatible with the MKR1000 board.

This is true? I have done tests and it throws me error, error and more error. :confused:

How can I operate the Bluetooth module in the MKR1000?

Please, I'm waiting for your help.

Thank you very much for your help.

How can I operate the Bluetooth module in the MKR1000?

As you discovered, you can not use software serial with the MKR1000.

You will have to use Serial1 Serial1.begin(9600)and cross connect the TX and RX of the module with the MKR1000 RX(pin13) and TX(pin 14)

HC-05 ------> Arduino
TX -------> RX(13)
RX -------> TX(14)

Most HC05 modules have a voltage regulator to supply 3.3v to the module. If that is the case, then you should supply the Vcc of the module with 5v from the MKR1000. The serial communications on the TX/RX pins will be at 3.3v on both sides, so the situation is OK.

cattledog:
You will have to use Serial1 Serial1.begin(9600)and cross connect the TX and RX of the module with the MKR1000 RX(pin13) and TX(pin 14)

HC-05 ------> Arduino
TX -------> RX(13)
RX -------> TX(14)

Thanks bro.

So, to this I do not have to define the TX or RX pins? for example: #define TX 14; #define RX 13

#define TX 14
#define RX 13

So, to this I do not have to define the TX or RX pins? for example: #define TX 14; #define RX 13

No. The pin definitions should be controlled by the board selection and the use of the IDE and Serial1.begin()