SoftwareSerial mySerial = SoftwareSerial(10, 11);// D6, D7 on board
Hi sreenivasCode: [Select]SoftwareSerial mySerial = SoftwareSerial(10, 11);// D6, D7 on boardI'm confused by the comment. On the Nano board, what are the labels by the pins you are using for SoftwareSerial? RegardsRay
What are you trying to talk to?
If you are using digital pins 6 and 7 of Nano, try 6 and 7 in SoftwareSerial statement.
SoftwareSerial mySerial(6, 7);
Try changing thisCode: [Select]SoftwareSerial mySerial(10,11);to this Code: [Select]SoftwareSerial mySerial(6, 7);
Hi sreenivasI should have realised this sooner, but you cannot send and receive simultaneously with SoftwareSerial. So your loop test will miss the data sent.There is information on this page:https://code.google.com/p/arduino/issues/detail?id=1111As PaulS asked, how do you want to use SoftwareSerial in practice? What is the Nano talking to? I assume the loop test was just to try out SoftwareSerial?RegardsRay
soft serial for printer