Hardware serial communication with hc-05 not working

I was using hc05 bluetooth module with my arduino nano using software serial but i need faster communication speed so i tried using the hardware communication using Tx and Rx pins but it doesn't work, i know it's not the code since i tried it using arduino uno hardware communication and it works fine.

When i used a simple sketch sending just a character through serial monitor on my laptop (through usb) i was able to receive it on my phone but it wasn't working the other way around, which is odd since when i tried the main sketch (which sends sensor data) while not connecting to the laptop i wasn't able to neither receive nor send data.

The nano is a cheap clone with an old bootloader loader i am not sure if the communication pins are fried or it's because of the boatloader, i am very lost. TIA

You will need an Arduino with more than one hardware serial port, or native USB with an extra hardware serial port. Most Arduino-compatible MCUs offered in the last few years have at least two hardware serial ports, and many have three or four.

I have a pcb designed for arduino nano i don't know if a different arduino would be compatible. Excuse me i am a beginner so i don't fully understand why would i need more than one serial port.

I don't know if it would help but the project is a self balancing robot so normally it wouldn't be connected to the laptop but i need to record the value of the angle for analysis, and occasionally send speed commands

With the Classic Nano, the hardware serial port is usually reserved for programming the ATmega328 processor or debugging with the serial monitor.

If you instead use an ICSP programmer, then the hardware serial port can be used for fast Bluetooth communications, but you won't have serial monitor output at the same time.

1 Like

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