Trouble with serial interface on NHD-0420D3Z-FL-GBW-V3
I connected this screen to my PC using a USB to Serial interface, custom DB9 connector wired as shown in the manual. I am using RealTerm to send hex numbers to the screen and I get characters that don't match up with what is on the chart. For example I send 0x21 and screen prints 'u', 0x22 = ':', 0x23 = 't'.
One post mentioned to make sure voltage is at TTL level. See attached for how I have it wired up. On J1 I have Pin1 connected to Pin 3 on the DB9 (rs-232 TX), Pin 2 connected to DB9 Pin 5 (GND) and Pin 3 connected to 5VDC which I get from a different USB cable I have cut and stripped. I measure 5.08 V across pins 2 & 3 on J1.
After playing around with it for awhile and getting characters (but not the right ones) I may have fried it because now it only shows the characters shown on the screen and no longer responds to any commands. I ordered another one which I should receive tomorrow. Let me know what I may be doing wrong. I am testing now but I would ultimately like to have an Opto22 PAC controller sending messages to the screen.
-
Hello chughes!
I’m sorry to hear about the trouble you are having with NHD-0420D3Z-FL-GBW-V3.
To start off can you please post a screen capture of your terminal log.
Finally have you received your second display? If so can you please confirm the operation status.
Thanks!0 -
I attached the serial port setup screen, and the send screen where I send an 'A' by clicking the Send Ascii button. The output on the screen is an underline symbol. The double vertical lines always appear when I first power it up.
0 -
Okay, in case any other amatuers find this thread I solved my own problem. It turns out PC's serial ports use RS-232, but the voltage for a HIGH signal is negative (on my computer it's about -6V). I need a chip to translate the PC's RS-232 signal to TTL logic levels. I found this useful post about it:
https://www.sparkfun.com/tutorials/215 using a MAX232 chip to convert PC rs-232 to TTL levels the display will be able to use.0 -
Glad to hear you got your display up and running!
Thank you for sharing your solution :)0
Please sign in to leave a comment.
Comments
4 comments