Nano Built-In RX and TX with Serial Monitor

How can I setup my sketch to use serial monitor with the built-in rx and tx serial communication on a nano? Wouldn't Serial.print send via the tx port and not the serial monitor?

Yes.

Serial.print() sends via the tx port. But because the tx-port is connected to the serial-USB converter this is also sent via USB (and that means to the serial monitor if it is open )

Serial output (via TX) does not have to go to the serial monitor. You could install a terminal program like Realterm or Terraterm and send the serial out to there. Or write your own app on the PC using a programming language like Python or Processing to receive (and send) serial data.

My issue is that I have a nano that's communicating with a battery pack bms. The nano is soldered to the board. The bms sends information about the pack back to the board. I believe there might be a bad cell which is causing the pack to power off under load.

I don't know anything about that; does it use serial communication?

What is the purpose of the Nano in your setup?

The nano sends a unlock code every five seconds to keep the battery pack on. I need to be able to monitor the battery pack and why it’s shutting off under load.

Post the technical data (data sheet or manual) of the battery pack, please.

If you want to monitor using a terminal program (e.g. Serial Monitor), you will have to use SoftwareSerial (or one of its alternatives) on two additional pins for the communication with the BMS; your mileage will vary depending on the required baudrate.

That's what I figured, I would have to use SoftwareSerial. I will have to desolder the nano from the dongle or wire an lcd screen to the nano to display output.

Here are the links to the battery pack, dongle, and the library that I am using.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.