I would like to ask you guys if you could help me out with the following issue.
I am a little stuck but at the same time confused. I am trying to work with the RX and TX pins of the ATmega644P, but I am getting some rare responses.
This is the issue. I have an electronic board with the ATmega644P microncontroller managing all the electronic components. The board has, among others things, a connector for a bluetooth module (I am using the HC-06) and which I pretend to establish communication between the microcontroller and the bluetooth module using the RX and TX pins.
The thing is that I have been able to transmit from the Arduino IDE to the software terminal (CoolTerm). However, for some incomprehensible reason, I can get the data on the Arduino IDE when trying to send something back from the Coolterm to the Arduino IDE.
I am using the Sanguino firmware for the ATmega644P. I have switched the RX and TX pins between the microcontroller and the connector but nothing happens. Only I am able to send data from Arduino IDE to the CoolTerm.
I tried both the Bluetooth module and the code in a Arduino UNO and it perfectly worked at the first try.
After spending many weeks I do not know what the problem could be. I am thinking about the compatibility of firmwares of the microcontroller and the bluetooth module as explanation because after trying many things I have not able to establish the communication.
Do you have any thoughts?.