Hi everyone,
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 strange responses.
This is the issue. I have an electronic board with the ATmega644PA 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 I try to send something back from Coolterm to the Arduino IDE.
I am using the Sanguino firmware/board for the ATmega644PA. 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 out both the Bluetooth module and the code in a Arduino UNO and it perfectly worked at the first try (I used the SoftwareSerial library)
After spending a lot time (more than one month) I do not know exactly what the problem could be. I am using the SoftwareSerial.h in the sketch as a serial library because I am using the pins 40 and 41 of the mircrocontroller. The board has those pins already set up (traces) to do the function of transmitting (TX) and receiving (RX). The Atmega644PA has two UART. I am using the "Serial".
I think the problem is with the libraries. The SoftwareSerial library works on Arduino UNO well but no on Atmega644PA. This week I tried out the different software serial libraries which use the RX and TX pins for serial communications on Arduino UNO and the outcomes were:
- NeoSWSerial library: it only allowed to transmit from Arduino UNO to the Software Terminal (Coolterm). No getting back data on Arduino UNO
- AltSoftSerial library: it did not work at all on Arduino UNO. No transmitting, no receiving.
- SofwareSerial library: it worked perfectly, transmitting and receiving.
In the three cases the code was the same.
My thoughts go to the direction of the libraries. For some reason, these libraries create a intern conflict or whatever when using them on the Atmega644PA. Out of the three. only SoftwareSerial allows to transmit data from Arduino UNO to CoolTerm (no sending back from Coolterm to Arduino UNO)
Does someone have any thoughts?.
Thank you so much in advance.
Kindly Regards
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 strange responses.
This is the issue. I have an electronic board with the ATmega644PA 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 I try to send something back from Coolterm to the Arduino IDE.
I am using the Sanguino firmware/board for the ATmega644PA. 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 out both the Bluetooth module and the code in a Arduino UNO and it perfectly worked at the first try (I used the SoftwareSerial library)
After spending a lot time (more than one month) I do not know exactly what the problem could be. I am using the SoftwareSerial.h in the sketch as a serial library because I am using the pins 40 and 41 of the mircrocontroller. The board has those pins already set up (traces) to do the function of transmitting (TX) and receiving (RX). The Atmega644PA has two UART. I am using the "Serial".
I think the problem is with the libraries. The SoftwareSerial library works on Arduino UNO well but no on Atmega644PA. This week I tried out the different software serial libraries which use the RX and TX pins for serial communications on Arduino UNO and the outcomes were:
- NeoSWSerial library: it only allowed to transmit from Arduino UNO to the Software Terminal (Coolterm). No getting back data on Arduino UNO
- AltSoftSerial library: it did not work at all on Arduino UNO. No transmitting, no receiving.
- SofwareSerial library: it worked perfectly, transmitting and receiving.
In the three cases the code was the same.
My thoughts go to the direction of the libraries. For some reason, these libraries create a intern conflict or whatever when using them on the Atmega644PA. Out of the three. only SoftwareSerial allows to transmit data from Arduino UNO to CoolTerm (no sending back from Coolterm to Arduino UNO)
Does someone have any thoughts?.
Thank you so much in advance.
Kindly Regards