seeking for help related to data communication with a uart module.
Hi, I am seeking for help related to data communication with a uart module. The module was connected via RX0 and TX1 pins in arduino Nano , however when I am trying to send data with Serial.write(...), the program just cannot upload to the board at all. Was it because of code uploading also need to use Serial via USB? Or something else?
This is the code:
This is the code:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600, SERIAL_5E1);
delay(1000);
Serial.write(0xFE);
Serial.write(0xFD);
Serial.write(0x01);
Serial.write(0x01);
}
Solution
I would think not, as if the Arduino is still trying to write it would interfere with the communication either way. You could always try it, as I could be wrong but even if it did work perhaps it would be simpler to use software serial.
