Negative RGB 16X2 Character Display Problems

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Negative RGB 16X2 Character Display Problems

Postby elecfan » Sun Apr 08, 2012 4:22 am

I recently bought one of the negative RGB displays (http://www.adafruit.com/products/399) and I haven't been able to get it working with my Arduino project. After searching around for a while, I found a post (viewtopic.php?f=47&t=25162) and used the same setup.

I have simple code to turn on the backlight for the Arduino (using PWM), but the backlight doesn't light up. When I unplug the 5V (Pin 2), then the backlight will turn on. When I plug pin 2 back in, it turns off again.

Any suggestions?
elecfan
 
Posts: 5
Joined: Sun Apr 08, 2012 3:48 am

Re: Negative RGB 16X2 Character Display Problems

Postby elecfan » Sun Apr 08, 2012 5:30 am

I now have the LCD displaying characters, but it isn't even remotely close to what it should be. When I upload the Hello World example in the LiquidCrystal library, I get the following:
http://www.youtube.com/watch?v=oPRli3fVrjE

As you can see, I still have the issue of the 5V VCC dimming (effectively removing) the text that is printed. And instead of hello world and then a counter, it's just random giberish and question marks. I've checked the data lines because I thought having those out of order would make a difference, and they're in the correct order for the example.
elecfan
 
Posts: 5
Joined: Sun Apr 08, 2012 3:48 am


Re: Negative RGB 16X2 Character Display Problems

Postby elecfan » Sun Apr 08, 2012 6:48 am

Here's what I have. There's quite a few connections so it isn't perfectly clean.

DSCN1206.JPG
DSCN1206.JPG (961.8 KiB) Viewed 695 times


The mapping is:

LCD | Arduino
GND (1) | GND
VCC (2) | 5V
VO (3) | Output of Potentiometer
RS (4) | D13
RW (5) | GND
EN (6) | D12
DB4 (11) | D11
DB5 (12) | D10
DB6 (13) | D9
DB7 (14) | D8
BLK (15) | 5V
R (16) | PWM3
G (17) | PWM5
B (18) | PWN6

and running this code:

Code: Select all
#include <LiquidCrystal.h>

LiquidCrystal lcd(13, 12, 11, 10, 9, 8);

void setup() {
   lcd.begin(16, 2);
   lcd.print("hello, world!");
}

void loop() {
   analogWrite(3, 0);
   analogWrite(5, 255);
   analogWrite(6, 255);
   lcd.setCursor(0,1);
   lcd.print(millis()/1000);
}


The whole setup (wiring + code) results in a red backlit LCD with "11" separated by spaces taking up the whole row in both rows. If I tilt the breadboard a bit or otherwise touch the LCD, random characters appear.
elecfan
 
Posts: 5
Joined: Sun Apr 08, 2012 3:48 am

Re: Negative RGB 16X2 Character Display Problems

Postby adafruit_support_bill » Sun Apr 08, 2012 7:16 am

It looks like your data lines are connected in reverse order (pin 4 if the LCD should go to pin 9 of the Arduino).

From the perspective of the photo it is hard to see what pins you have the RBG lines connected to. It should be pins 3, 5 & 6.
User avatar
adafruit_support_bill
 
Posts: 16000
Joined: Sat Feb 07, 2009 9:11 am

Re: Negative RGB 16X2 Character Display Problems

Postby elecfan » Sun Apr 08, 2012 7:40 am

According to the example included with Arduino, when you initialize a LiquidCrystal object the format is:
LiquidCrystal lcd(RS, EN, D4, D5, D6, D7)

So the pins should be in the right order the way I have them. 3, 5, and 6 are connected in the right order as well (see the listed mapping in the previous post).

Also, from the picture, you can see the backlight (red) is on. If I take out the VCC line on the LCD (Pin 2), then the text gets a lot brighter. Disconnecting the power line shouldn't make it get brighter, but it does.
elecfan
 
Posts: 5
Joined: Sun Apr 08, 2012 3:48 am

Re: Negative RGB 16X2 Character Display Problems

Postby adafruit_support_bill » Sun Apr 08, 2012 8:23 am

the pins should be in the right order the way I have them

It is much easier for us to verify things if you hook them up as in the tutorial.

If I take out the VCC line on the LCD (Pin 2), then the text gets a lot brighter

Sounds like there is a short somewhere. It looks like there is some soldering on the other side of the display. What's the story there?
User avatar
adafruit_support_bill
 
Posts: 16000
Joined: Sat Feb 07, 2009 9:11 am

Re: Negative RGB 16X2 Character Display Problems

Postby elecfan » Sun Apr 08, 2012 8:37 am

I originally soldered the header onto the wrong side. The project that I'm working on needs to have the correct orientation when placed in the enclosure. I've since removed some of the solder from those connections and cleaned them up.
elecfan
 
Posts: 5
Joined: Sun Apr 08, 2012 3:48 am

Re: Negative RGB 16X2 Character Display Problems

Postby adafruit_support_bill » Sun Apr 08, 2012 11:40 am

OK, Contact support@adafruit.com for a replacement display & reference this thread in your message.
User avatar
adafruit_support_bill
 
Posts: 16000
Joined: Sat Feb 07, 2009 9:11 am


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: gvjonjones and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]