Answer the question
In order to leave comments, you need to log in
No data is being received from the serial port on the Arduino Mega2560 side. What to do?
The situation is this. I have an Arduino, it has been sitting on a shelf for about two months, and it seems that it did not receive any damage. I recently needed it again. But as it turned out, reading from the serial port does not work. The program is sent to the arduino, and it itself regularly sends data to the computer via the serial port, the computer regularly receives them. But the connection does not work in the opposite direction. When sending something from the computer to the board, RX lights up on the board properly. But in the program itself, for some reason, the data is not available.
For example this program:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write(Serial.read());
}
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("I am sending");
}
Answer the question
In order to leave comments, you need to log in
Revealed problems with configuring ports on Windows. Oh, it's always like this...
Write down the firmware that exposes the mega pins for reading and hangs the controller.
Close pins TX0 and RX0.
Connect the board to the serial port.
Everything that you write to the port will be returned back.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question