Pin connection to Arduino nano

Hi all,

I would like to know If there are any other pins to which I can connect the HC06 Bluetooth module other than pin 2,3 in Arduino nano.

Also, I have a rotary encoder connected to pin 2,3. Can I still use the same pins for HC06 or are there any alternatives?

you can't as the encoder uses them

I assume you are using Software Serial for the HC06, you can indeed use other pins

what else is connected to your Nano? (and is that a regular nano or Nano Every?)

PS: the reason 2 and 3 are being used is that those pins support hardware interrupts and thus this makes it easier to catch events for some libraries. other pins are capable of pin change interrupts but there is a little overhead

Welcome to the forum

The HC06 uses a serial interface and I assume that you will be using SoftwareSerial to create a serial port for it to use. If so, then you can use any other pins that you choose except 0, 1 and A7 to implement it

1 Like

...and A6 and A7

1 Like

Whoops !
I forget about A6 but remembered A7

1 Like

if it's a regular Nano and if there is no I2C or SPI stuff being used... (hence the questions in my answer)

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.