Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5949
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« on: November 26, 2011, 04:02:33 pm » |
I saw these character displays with RGB back lights very recently but they were all custom-made for these two stores and I couldn't find one on ebay. Here are my two questions: 1) What do you need an RGB back light for? 2) Where do you get one for a better price? Adafruit: http://www.adafruit.com/products/399 sparkfun: http://www.sparkfun.com/products/10862 BTW, it seems sparkfun screwed up by ordering some common-cathode displays, not pin-compatible with regular LCDs on the part that pin 15 is A pin 16 is K (sparkfun's has pin 15 K and pin 16 A)
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5083
Where's the beer?
|
 |
« Reply #1 on: November 26, 2011, 04:10:42 pm » |
1) What do you need an RGB back light for?
1) Aesthetics 2) Say you had the need to indicate a warning; under normal conditions, use a green backlight - but in the event of the warning, flash it red (or leave it solid red)... 2) Where do you get one for a better price?
Ebay? 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Western New York, USA
Offline
Faraday Member
Karma: 17
Posts: 3463
|
 |
« Reply #3 on: November 26, 2011, 09:14:17 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Western New York, USA
Offline
Faraday Member
Karma: 17
Posts: 3463
|
 |
« Reply #4 on: November 26, 2011, 09:16:31 pm » |
BTW, it seems sparkfun screwed up by ordering some common-cathode displays, not pin-compatible with regular LCDs on the part that pin 15 is A pin 16 is K (sparkfun's has pin 15 K and pin 16 A) There are others out there like this. There are also some with the power on pins 1 and 2 reversed.Don
|
|
|
|
|
Logged
|
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5083
Where's the beer?
|
 |
« Reply #5 on: November 27, 2011, 04:05:16 pm » |
Interesting - I tried several different searches and couldn't find anything; I was almost certain such a thing would be on Ebay if anywhere... This is what I would do (it would take a while): 1) Go thru all the listings, and find the "top N" rated sellers (where N is 1-10) 2) Contact these three people 3) Ask them if they could supply you with such an LCD (give a link to the one you know, plus any other information) Hopefully, you'll get some responses, and the quality (or lack?) of their English will tell you whether they have understood what you want, and whether they can supply it; you may have to "sweeten" the deal by ordering more than one (maybe 10 or more), but perhaps they could do it, and then put the rest up on their Ebay store or something (?). If you let them know that others may be interested (and if you get good service, you'll mention them here?) - they might just swing it.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 224
Arduino rocks
|
 |
« Reply #6 on: November 27, 2011, 05:11:37 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5949
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #7 on: November 27, 2011, 05:30:12 pm » |
Good tips thanks cr0sh! I got one good lead but the minimal order is 50 pcs. That's too many. I was just interested in getting a couple units. @matinzk, thanks. The display has the double-row connection on the side instead of on the top, which I prefer. I'm thinking of using this RGB display for my serial panel but that means I won't be able to reserve the I2C pins for future I2C interface since two more LEDs need two more pins. @floresta, you're right. I was mainly thinking about the pin-15 being A and pin-16 being K. SPE sells this regular LCD: http://www.sparkfun.com/products/255It's got the pin assignment I'm used to.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 209
Office meets Adruino
|
 |
« Reply #8 on: November 27, 2011, 06:04:01 pm » |
What about the chinese wholesale sites like alibaba ? I looked but did not spend much time at it. They may have some.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4694
|
 |
« Reply #9 on: November 29, 2011, 10:39:44 am » |
I'm thinking of using this RGB display for my serial panel but that means I won't be able to reserve the I2C pins for future I2C interface since two more LEDs need two more pins.
What are you using all the other pins for? Have you considered sharing some of the LCD pins with other I/O functions?
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5949
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #10 on: November 29, 2011, 03:07:05 pm » |
What about the chinese wholesale sites like alibaba ? I looked but did not spend much time at it. They may have some.
@copiertalk, Is that a wholesale only site? I just need a couple to play with. @dc42, I have not thought about that. So do you mean maybe using the 4 LCD data pins to drive the columns of the matrix keypad? Should be doable without much modification of my original code, right? I don't sense the keypad and update LCD at the same time.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4694
|
 |
« Reply #11 on: November 29, 2011, 03:23:04 pm » |
@dc42, I have not thought about that. So do you mean maybe using the 4 LCD data pins to drive the columns of the matrix keypad? Should be doable without much modification of my original code, right? I don't sense the keypad and update LCD at the same time.
That's the sort of thing I had in mind. For a keypad I would connect the columns to 4 of the LCD pins via diodes (cathode to pin, anode to keypad column), and the rows to 4 Arduino inputs with internal pullup enabled. If there are any pushbuttons or rotary encoders as well, you could use the 5th LCD output pin and some more diodes to multiplex them onto the same 4 input pins, if you need to save some more pins. Provided you are not using interrupts to drive the LCD or to poll the keypad, and neither the keypad polling code nor the LCD driver code assumes that output pin states are preserved between calls, they should not interfere. You may have to modify the keypad polling code to set all 4 outputs high each time you start polling the keypad, because the LCD driver may have left them in a different state. The one pin you can't share is the one driving the LCD EN input - but you probably knew that already.
|
|
|
|
« Last Edit: November 29, 2011, 03:27:53 pm by dc42 »
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5949
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #12 on: November 29, 2011, 06:03:38 pm » |
I haven't thought about using diodes. So are they there to isolate what happens on the LCD pins from the keypad or are they isolating what the keypad does from the LCD? I know that the LCD could write on the data pins but I don't think I need the LCD to do that. I have a display buffer on the arduino.
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4694
|
 |
« Reply #13 on: November 30, 2011, 03:12:06 am » |
I haven't thought about using diodes. So are they there to isolate what happens on the LCD pins from the keypad or are they isolating what the keypad does from the LCD? I know that the LCD could write on the data pins but I don't think I need the LCD to do that. I have a display buffer on the arduino.
If you think of the keypad as a matrix of switches, then if you press 2 keys in the same row at the same time, you will be shorting two columns together. Diodes in the column lines prevent this. The keypads I have dismantled use a graphite film on the bit you push to connect the contacts together, so it may be that the resistance when pressed is high enough that the diodes are unnecessary - you could check with a multimeter. The keypad library page in the playground has this (very recent) comment: 1.8 2011-11-29 - Tom Putzeys : Non active columns are inputs with internal pull-up enabled So the problem of columns getting shorted together is avoided in the latest version of the library by only setting one column pin to be an output at a time. OTOH the LCD library needs them all to be outputs at the same time. So, if you want to share the keypad column pins with the LCD, then I think you will need to use diodes on the column lines. You'll also need to either use an earlier version of the keypad library that keeps the column pins as outputs all the time, or else set all the column pins to outputs between polling the keypad and writing to the LCD, and set them all back to inputs with pullups enabled between writing to the LCD and polling the keypad. So it's possible to share the pins between LCD and keypad, but not quite as easy as it appeared at first sight.
|
|
|
|
« Last Edit: November 30, 2011, 03:17:21 am by dc42 »
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
United Kingdom
Offline
Faraday Member
Karma: 131
Posts: 4694
|
 |
« Reply #14 on: December 14, 2011, 06:47:37 am » |
I bought one of those and it works OK. It came with two 150 ohm and one 100 ohm resistor for the backlight, but didn't say which colour the 100 ohm resistor was for. The data sheet doesn't specify the maximum backlight currents. After some experimenting I found that the best colour balance was obtained when I used it on the red led, however I can't be sure that the resulting current (28mA) is not over-driving it. The brightness of the backlight is not brilliant (especially when red) but OK. Since the leds all take less than 40mA, the series resistors can be driven direct from 3 Arduino PWM pins, making it easy to select any backlight colour.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
|