I am able to set everything in the AT mode, and I am able to get it connected to my MacBook (state pin returns HIGH), HC05 blinks like 1 0 1 0 0 with one second interval. The connections are:
Arduino RX - HC05 TX
Arduino TX - HC05 RX
5v - HC05 VCC
I don't use a voltage divider, just keep it simple.
I removed everything else and have the simplest code to demo here:
I can connect to the device with /dev/tty.HC-05 with screen or coolTerm, but I cannot see any data coming from the Bluetooth module. What to look at now?
I tried 38400, 9600 with 8 bits, no parity, 1 bit stop.
I found something wrong with my existing projects, so I just picked up this module and inspect it again recently, it was working two years ago. I tried another HC05 module, same problem.
i am pretty sure wiring is correct,have been using hc05 for a while, It just stops working with my Monterey upgrade. I used a logic analyzer to analyze the pins, I can see a character '=' is sent to the TX pin to the HC05 module every second.