Author Topic: LCD/LED Displays for beginers  (Read 18744 times)

0 Members and 1 Guest are viewing this topic.

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
LCD/LED Displays for beginers
« on: March 15, 2012, 05:16:37 pm »
Hi guys.

I'm trying to put to gether a Power supply kind of like Dave's (A little simpler) And was working on a display I plan on using a Atmega328p-pu and program it with the Arduino uno rev3 (like Dave).  I would like a display for Volts and Amps I was thinking on using a 2x__ character display but don't know witch one to get. 
I'd like something easy to work with but is not restricting for me later.
If any body knows of one that would be grate.
And if any body can show me what to look out for when buying one that would also be nice.
Thank you every one if you have any questions please ask.
« Last Edit: March 15, 2012, 10:39:52 pm by cowboy303 »
 

Offline 8086

  • Super Contributor
  • ***
  • Posts: 1084
  • Country: gb
    • Circuitology - Electronics Assembly
Re: LCD/LED Displays for beginers
« Reply #1 on: March 15, 2012, 05:25:09 pm »
Look for HD44780 compatible displays, if you only want voltage and current then 2x8 would probably be enough. Or a 2x16 if you want more flexibility.
 

Online mariush

  • Super Contributor
  • ***
  • Posts: 4983
  • Country: ro
  • .
Re: LCD/LED Displays for beginers
« Reply #2 on: March 15, 2012, 05:50:04 pm »
The easiest ones to to work with are the ones that accept parallel input or i2c  (but i2c may not be available in some controllers or you may reach the device limit with other components)

I'm currently working with a Midas made LCD sold by Farnell, a 4 x 16 one:

http://uk.farnell.com/midas/mc41605b6w-sptly/lcd-4x16-stn-ylw-green-b-l-5mm/dp/2063248

but there's plenty of 2x16 or 1x16 there which are also parallel input.

Here's the full page with all the lcds: http://uk.farnell.com/displays-lcd_alphanumeric
And here's some examples of 2x16 screens that would work:

http://uk.farnell.com/midas/mc21605a6w-fptlw/lcd-2x16-fstn-white-led-b-l-5v/dp/2063170?in_merch=New%20Products
http://uk.farnell.com/midas/mc21605a6wd-bnmlw/lcd-2x16-neg-stn-white-led-b-l/dp/2063158?in_merch=New%20Products
http://uk.farnell.com/midas/mc21605b6w-fptlw/lcd-2x16-fstn-white-led-b-l-5v/dp/2063169
http://uk.farnell.com/midas/mc21605b6wd-sptly/lcd-2x16-stn-ylw-green-b-l-5mm/dp/2063240

The last two are with the pins arranged in an 2x8 set on the left of the screen. This is better if you want to use cheap existing cables to connect it to your pcb (where you solder a 2x8 0.1" pin header)  but the lcds in the first links with all the pins in a row are better suited for breadboards as you can solder a row of header pins and then just plug the lcd in the breadboard like in the videos below.

The one I bought has a Sunplus controller, which is basically a clone of HD44780 chip, so it works just the same.

You need a minimum of 7 pins to talk to it, 3 for control commands and 4 pins to send half a byte, two times.  If you want, you can use the full 8 pins of data to send a byte at a time.

But basically, with the 7 wires it's very convenient to tie it directly to the controller or if you want to save some pins you can use a .5$  serial to parallel chip  which will receive 8 bits in a row from your controller through 2-3 pins and send 7 bits out of those 8 to each lcd pin.

Here's a very good tutorial about using such LCD with the controller :



 
« Last Edit: March 15, 2012, 06:01:14 pm by mariush »
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #3 on: March 15, 2012, 11:32:41 pm »
Thanks guys
Those are good videos really informative.
I think I'll get that one off Deal Extreme.  But does any body know how long it will take for me to receive it.
Thanks again.
 

Offline caroper

  • Regular Contributor
  • *
  • Posts: 193
  • Country: za
    • Take your PIC
Re: LCD/LED Displays for beginers
« Reply #4 on: March 15, 2012, 11:48:46 pm »
I got this one from AdaFruit to experiment with, it took about 3 weeks to get to Africa, should be much quicker for you in America. Not sure how it compares price wise, to getting it from China, but $10 was far cheaper than any source I found locally (I spread shipping over several other items) and the support is great.


p.s. I also wanted it it play with Dave inspired PSU projects and find that 2x16 is just enough to handle a 2 Chanel PSU.
for the difference in price I think I would go with 20x4 next time.




Offline vk6hdx

  • Regular Contributor
  • *
  • Posts: 57
  • Country: au
    • vk6hdx - Twitter
Re: LCD/LED Displays for beginers
« Reply #5 on: March 16, 2012, 05:57:25 am »
+1 for the HD44780 display.  Using the LiquidCrystal Library in the Arduino IDE makes this easy.  You'll need 6 pins to drive it though.

http://arduino.cc/en/Tutorial/LiquidCrystal

Cheers,
Troy
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #6 on: March 16, 2012, 06:50:08 am »
Quote
About 3 weeks , due to HK Post's system .
But adafruit's LCD is much cheaper anyway ...

Adafruit it is.  I was looking what else they had to combine shipping and they also got a Atmega328p with a Arduino bootladder http://www.adafruit.com/products/123 thought that was pretty cool. 
 

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Re: LCD/LED Displays for beginers
« Reply #7 on: March 16, 2012, 06:52:02 am »
Yeah definitely go for a HD44780 display. They are very easy to use and there are plenty of examples/libraries you can use.

You can also get them in quite a variety of colours :) Perhaps a different colour for Volts and Amps?

http://www.goodluckbuy.com/character-lcd-module-lcm-jhd-16x2-jhd659-16x2-10-color-aviliable.html




Adafruit sell ones with RGB backlights so you can make basically any colour, and you'll probably receive them faster, but at a higher cost.

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11535
  • Country: my
  • reassessing directives...
Re: LCD/LED Displays for beginers
« Reply #8 on: March 16, 2012, 08:24:59 am »
dave sales the 2x16 at aud2.5 each x10 unit here... http://www.eevblog.com/shop/




if you want save for combine shipping, you may get as well this, one or two ;)...

Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11535
  • Country: my
  • reassessing directives...
Re: LCD/LED Displays for beginers
« Reply #9 on: March 16, 2012, 01:38:03 pm »
But australians only :(
duh! he already in my "suppliers list" >:(
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #10 on: March 16, 2012, 05:28:07 pm »
Thank you guys I think I'll get the 4x20 LCD but I just want to make sure of some stuff.

I still only need 6 I/O on the arduino.
and it said that the whole screen is 2x7cm that's means that the digits are 5mm is that right or did I read it wrong.

Thanks Again. :D

P.S. It looks like Dave's sold out on all his stuff in his store(just saying). 
« Last Edit: March 16, 2012, 05:30:57 pm by cowboy303 »
 

Offline sacherjj

  • Frequent Contributor
  • **
  • Posts: 993
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #11 on: March 16, 2012, 05:29:52 pm »
Thank you guys I think I'll get the 4x20 LCD but I just want to make sure of some stuff.

I still only need 6 I/O on the arduino.
and it said that the whole screen is 2x7cm that's means that the digits are 5mm is that right or did I read it wrong.

That is the way I read it and WAY too small for a power supply display, in my opinion.
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: LCD/LED Displays for beginers
« Reply #12 on: March 16, 2012, 05:30:47 pm »
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #13 on: March 16, 2012, 05:40:06 pm »
I have a solution to our LCD problems :
http://www.dealextreme.com/p/16-x-2-character-lcd-display-module-with-blue-backlight-121356

First Wow that was fast.

I like the looks of it.  But It does not say it is a HD44780 display.  But it does have 16 connectors which I think is a tell tale sign that it is.

Thank You 
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: LCD/LED Displays for beginers
« Reply #14 on: March 16, 2012, 06:02:05 pm »
It's a HD44780-driven display :D
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #15 on: March 16, 2012, 08:42:43 pm »
It's a HD44780-driven display :D

Thank you very much!
I will plan on buying it tomorrow that way I can see if any body can see any problems with it.

Thank you All especially Dave.S for always being there to help.
« Last Edit: March 16, 2012, 09:55:39 pm by cowboy303 »
 

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Re: LCD/LED Displays for beginers
« Reply #16 on: March 17, 2012, 08:07:18 am »
The 4x20 displays have the same (physical) size characters as the 2x16, 2x20 etc. So 2x7cm is definitely wrong.

The 4x20 displays are a bit funny as well, because of the way the controller works, the lines aren't in order. It still acts like a "2 line 40 character" display but is arranged like this:

Line1:Chars1-20
Line2:Chars1-20
Line1:Chars21-40
Line2:Chars21-40

So if you just bang in data with the auto-character increment turned on, everything goes from Line 1 onto Line 3, to Line 2 and finally Line 4  :o

Offline poodyp

  • Regular Contributor
  • *
  • Posts: 151
  • Country: us
Re: LCD/LED Displays for beginers
« Reply #17 on: March 17, 2012, 06:16:40 pm »
Just think of it the same way you would having two 595s connected. The HD44780 only supports 2*20 max, so to get 4*20 there are two of them tied together.
 

Offline sonicj

  • Frequent Contributor
  • **
  • Posts: 756
  • Country: us
  • updata successed!
Re: LCD/LED Displays for beginers
« Reply #18 on: March 18, 2012, 12:09:10 am »
That is the way I read it and WAY too small for a power supply display, in my opinion.
takes a bit more code...
 

Online mariush

  • Super Contributor
  • ***
  • Posts: 4983
  • Country: ro
  • .
Re: LCD/LED Displays for beginers
« Reply #19 on: March 18, 2012, 02:09:18 am »
The LCD controllers have a number of characters hard coded and a bunch of positions where you can "upload" characters.
For example, the LCD I linked in one of my previous post has 48 places where you can define custom characters ... each one is basically 5 bytes (5x8 pixels)

With a bit of programming to manage the 48 slots for characters, you can basically use every one to treat the 16x2
display as a  80x16 dot matrix screen as in the picture above...
 

Offline sonicj

  • Frequent Contributor
  • **
  • Posts: 756
  • Country: us
  • updata successed!
Re: LCD/LED Displays for beginers
« Reply #20 on: March 18, 2012, 05:33:45 am »
surplus Nokia 3110, 5110, etc lcds are cheap and easy. Nokia 5110 with breakout

Maxim MAX7219 & MAX7221 are easy to drive if you're trying to light 7 or 14 segment led displays. its a expensive chip retail, but can be had on the cheap via china.

anyone know of a source for affordable HD44780 OLEDs?
-sj
 

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Re: LCD/LED Displays for beginers
« Reply #21 on: March 19, 2012, 09:46:40 am »
Just think of it the same way you would having two 595s connected. The HD44780 only supports 2*20 max, so to get 4*20 there are two of them tied together.

A single HD44780 can actually address 80 characters, as 2 lines of 40 chars. It is the 4x40 char lcds that need two controllers and an expansion chip.

It's just odd that they split the first 40 bytes of the character address ram across lines 1 and 3, instead of just 1 and 2. There must be a technical reason for it, but it makes no sense from a programming point of view.


This probably explains what I mean better:

Quote
"The lines on the screen can be a little misleading; both lines 1 and 3, and both lines 2 and 4 are treated as though they are one line each and that the display were really 2 lines of 40 characters each. As a result, after 20 characters have been written on each line the display wraps unexpectedly. The first character after line 1 will end up on line 3 instead of line 2, and the first character after line 2 will end up on line 4 instead of line 3. If a character is written after the end of line 3 it will end up at the beginning of line 2. The next write after line 4, though, writes to line 1 as anticipated. Luckily, this is accounted for in software as the microcontroller keeps track of the current position of the cursor."

Quote
A 4x20 character display is logically arranged as two lines, although physically it appears as four lines. The mapping is like this

Physical line 1: logical line 1, part 1
Physical line 2: logical line 2, part 1
Physical line 3: logical line 1, part 2
Physical line 4: logical line 2, part 2
« Last Edit: March 19, 2012, 09:50:45 am by metalphreak »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf