- Wed May 19, 2010 1:30 pm
#101339
DarrenG,
The more I look at this, the more confused I get!
I tried looking at the software side, to see how NewSoftSerial works. I haven't yet found straightforward instructions, so please post a link to what you have.
What I did find indicates that the first argument of the function is the receive pin and the second is the transmit pin.
however, the line of code I found was
1) What pin is "14"? It appears to be an analog input pin, which is an odd choice for sending data to a display.
2) What's connected to pin 3, which appears to be a digital I/O pin? Is it possible that your code is hanging waiting for a particular response on that pin? Does grounding it help?
3) If you change both pins to DI/O pins, do you get the same result?
4) If you change to different serial driver software, do you get the same result?
TIA,
Eric[/color]
The more I look at this, the more confused I get!

I tried looking at the software side, to see how NewSoftSerial works. I haven't yet found straightforward instructions, so please post a link to what you have.
What I did find indicates that the first argument of the function is the receive pin and the second is the transmit pin.
however, the line of code I found was
Code: Select all
which differs substantially from the syntax in the code you posted.NewSoftSerial nss(rxPin, txPin);
Code: Select all
So, here're a few questions:NewSoftSerial sLCD = NewSoftSerial(3, 14); /* Serial LCD is connected on pin 14 (Analog input 0) */
1) What pin is "14"? It appears to be an analog input pin, which is an odd choice for sending data to a display.
2) What's connected to pin 3, which appears to be a digital I/O pin? Is it possible that your code is hanging waiting for a particular response on that pin? Does grounding it help?
3) If you change both pins to DI/O pins, do you get the same result?
4) If you change to different serial driver software, do you get the same result?
TIA,
Eric[/color]