I having hardware which provides 8bit asynchronous serial communication for data transfer.
I am using Arduino nano for the interface with this hardware.
So my issue is that when I am using hardware with serial communication with official RX TX pin than it works fine but when I have to use with software serial using other pins than response is not getting from the hardware.
so anyone having a solution regarding this.
thank you.
Depending on which Arduino board you use, only certain pins may be used for SoftwareSerial. These are documented on the SoftwareSerial library reference's main page:
"this"? Your attachment answered none of my questions. I'm glad to hear you got it working, but next time you need help, please read the forum rules a remember that we on the forum are not psychics.
pert:
Depending on which Arduino board you use, only certain pins may be used for SoftwareSerial. These are documented on the SoftwareSerial library reference's main page: https://www.arduino.cc/en/Reference/SoftwareSerial
He is using a Nano for which I think there are no restrictions on pin use
UKHeliBob:
He is using a Nano for which I think there are no restrictions on pin use
You're right about that. I was intending to give a general answer to the question "So there is any restriction using pins for software serial?", but I should have made it clear that any pin on the Nano may be used. I thought I remembered the documentation said so about the ATmega328P, but I see now it's only documented by omission.
As expected, pins 5 and 6 work fine with SoftwareSerial on a Nano
My suspicions are still that the wiring was wrong in some way
yes, you are right, I checked once again my whole PCB and I found that pin 5 and 6 are attached with pull up buttons so maybe because of that reason Software serial is not responding as I want.
when I checked the same connection out of my board than its work fine, so there is no issue of this type.