Components:
MP3car’s modified Lilliput 696 LCD touchscreen (RS232 version)
Arduino Nano
RS232-TTL converter
The touchscreen is an eGalaxy, with an EETI control board.
While doing some searching, I managed to find a document which contained a bunch of info about RS232 communication with the controller.
EETI controller documentation
Pretty straight-forward, 9600 8N1. Thought I was home-free.
Hooked up the TTL to Serial converter to the Arduino on my breadboard, and connected it to a computer I use for testing. I verified that the TTL converter worked, and could send/receive data using NewSoftSerial and the default NSS demo sketch.
Then I connected the touchscreen to the same PC, ran serial-port monitoring software and verified that the touchscreen control board output was sane. I got a few different chars depending on where I touched the screen. Everything looked good.
I couldn’t connect the TTL adapter to the Serial plug on the LCD directly as they were both female. I bought a male-to-male passthrough, connected them, and turned everything on…
No output at all.
Tried commenting “if (nss.available())” and just dumping any output, the only thing i get is “ÿ”, with no change based on input. Tried using inverted signaling, same thing.
I’m starting to wonder if maybe my male-to-male passthrough might be the problem, but to be honest i have no idea. Here’s the connector I used:
Gigaware® DB9 Male to DB9 Male Serial Coupler
And the demo code:
#include <NewSoftSerial.h>
NewSoftSerial mySerial(3,2);
void setup() {
Serial.begin(57600);
Serial.println("online!");
mySerial.begin(9600);
}
void loop() {
if (mySerial.available()) {
Serial.print((char)mySerial.read());
}
if (Serial.available()) {
mySerial.print((char)Serial.read());
}
}
Anyone have any suggestions? This looks like it should work, but it doesn’t even try.
Connecting TX and GND from the serial connector on the LCD directly to the RX and GND pins on the Arduino won’t work, right?