Jump to content

Big LCD problem


dragon

Recommended Posts

Hi all,

I have a core which was a part of MB64 connected to a 2*16 LCD and eveything was working fine. This weekend I've tried to convert it to a MIOS compatible core, changed PIC and crystal, uploaded bootstrap 1.1b, MIOS 1.3 and AIN example 3 and it worked. Then I wanted to change LCD, connected 2*40 LCD and I can't get it to show anything :-/  Core was still working fine, MIDI-OX recived pot and button changes like before. I've put back old 2*16 LCD and it's working

2*40 LCD has an KS0066 controller which is compatible to HD44780 (as someone here on forum said), I've connected everything as it is drawn in datasheet so the only thing that comes to me is that the LCD is faulty

Any suggestions? Does anybody know how to test LCD 'by hand', without connecting it to the core module?

Thanks

dragon

Link to comment
Share on other sites

Hi dragon,

in theory you could test the LCD with a PC, the are several software drivers available in the web which get use of the parallel port. But using a core module should be easier.

Is this display working with a PIC16F?

Do you see a black line at the top all the screen (normaly the display will be initialized after the first level bootstrap loader phase has been finished - ca. 2 seconds after reset

Which return value is sent by MIOS with following SysEx request string:

F0 00 00 7E 40 00 0D 02 00 0B 0A 00 00 00 01 00 00 00 00 F7

If the communication with the LCD has been established, the return message should be:

F0 00 00 7E 40 00 0F 00 02 F7

If the LCD is not connected, the return message is:

F0 00 00 7E 40 00 0F 00 07 F7

Best Regards, Thorsten.

Link to comment
Share on other sites

Hi again,

Thank you Thorsten for fast response. After some extensive soldering/desoldering (wasn't able to get pfosten thing) I've found out couple of things

2*40 is working but the working dots are so pale that it's almost imposible to see them ie. I can see what is written on LCD but I have to stare at angle almost parallel to LCD surface. I get the same results regardles of contrast/luminance settings. Also it's same with PIC16F and PIC18F (I do get a black line at the top during initialization), I even tried LCD with old MIDIbox Plus - same results

I've sent the sysex and got the proper response F0 00 00 7E 40 00 0F 00 02 F7

Thanks

dragon

Link to comment
Share on other sites

Hi,

Things got little bit stranger. I've connected 6.5V directly to J2 on the core, bypassing voltage regulator and to my surprise the LCD is working perfectly, everthying on it can be seen clearly, also every pot and every button is working

I'm wondering, maybe this LCD needs negative voltage at V0 as I read some LCDs do need -7.5V. In that case difference between Vd and V0 would be 5V - (-7.5)=12.5V which is closer to 6.5V then 5-0=5V (which is now the best case, goes to 5V-5V = 0 when I turn contrast pot all the way up).

Does this sound logical enough to try to make -7.5V power supply? Or the LCD has another kind of problem?

Thanks

dragon

Link to comment
Share on other sites

is the 7805 on the core modules gets hot?

I've got a 40x2 LCD too which is not very "bright"...

I didn't try to plug another power supply, but it may be the solution...

If you plug a 6.5V on the connector, then you have vdd-V0 = 5-6.5 = -1.5V... unless I make a mistake and you plug -6.5V...

Link to comment
Share on other sites

Hi Pilo,

7805 doesn't get any hotter then with 2*16 display.

It seems that I wasn't precise enough. When I said pale I meant dots   -  I can see 'Received a DIN Event' but dots which are supposed to be black are too pale, almost impossible to see. Backlight, on the other hand, works fine

And I've plugged regulated 6.5V after the 7805 (which in this case does not regulate anything), meaning that the PIC18F, 6N138, LCD, 4051, 74HC165 and everthying else is working on 6.5V. And if I keep contrast pot to the minimum, V0 is 0V so the difference Vd - V0 is 6.5V

Hope someone could help me clear this mess

Thanks

dragon

Link to comment
Share on other sites

There are some LCDs which are working with a different way to control contrast and lumen. Best would be that you get the datasheet of that LCD and look the way, they suggest to control the contrast.

But if you got it to work, does that matter? Hey, it works, doesnt it? Cool. ;D

However, I would *not* power a 7805 the wrong way and I also would *not* power those PICs with a to high voltage. You could burn some of those chips. :-/

Why not power just the LCD externally...

Link to comment
Share on other sites

I've looked through the datasheet and found nothing about controling contrast. Only thing is that they suggest 0.3V on V0 which then gives absolutely unreadable characters. Frying PIC is also my concern so I'm giving a go to 7905 to try with -5V. Hope that works but if it doesn't then external supply it will be

Link to comment
Share on other sites

Hi dragon,

are you using an AC adapter? In this case you could try following circuit in order to get a negative voltage for V0:

http://www.ucapps.de/mbhp/mbhp_lcd_neg_voltage.gif

http://www.ucapps.de/mbhp/mbhp_lcd_neg_voltage_connection.gif

The originator of this circuit is Douglas Pederick.

Note: what he calls "HD44780" is the display which requires negative voltage, so in your case the KS0066 - the required V0 voltage of a LCD module is independent from the controller.

For the records: graphical LCDs require also a negative voltage, but -10V or lower. A solution for such displays can be found under Concepts->MBHP->LCD

Best Regards, Thorsten.

Link to comment
Share on other sites

Hi Thorsten,

Negative voltage on pin 3 is the solution.  I've tried with the 1.5V  battery, with '+' connected to GND and '-' to V0 on LCD and contrast is just perfect now, everything is readable.

I'm not using AC so I searched for DC-DC solution and I'm gonna try Maxim MAX1044 voltage inverter. It has option to invert +5V to -5V with using only 3 other components (electolytic caps). It's the most simple DC solution I stumbled across with enough mA, also the PCB will be miniature

 

Thanks for help and thanks for this great project

dragon

Link to comment
Share on other sites

  • 2 weeks later...

huumm I have trouble with the 2 schematic :

the 2 resistor (the one with the zener and the trim pot) makes a divider -> 0V at zener diode(I use 6V AC, so about 9V after the diode) and so no -5V...

And I think we can keep the bridge...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...