Dangerous Prototypes

Other projects => Past projects => USB serial LCD backpack => Topic started by: dddesign on June 11, 2014, 01:49:42 pm

Title: newbe.1: power lcd
Post by: dddesign on June 11, 2014, 01:49:42 pm
This is all new for me, so please have some patience...

I have connect this lcd display EA DIP162-DN3LW (see specs attached) to the backpack. I think the wires are right, have a look on the attached images.
[attachment=3]
[attachment=2]
[attachment=1]

shouldn't be the lcd display powered up when I connect the backpack by usb cable to my notebook? the display stays dark while windows vista tries to install the driver (see my topic 2). is this as it should be? when should the backlight turn on? do I need additional power for the backpack because the power through usb cable is not enough?

If someone can help my step-by-step for this specific display I'm very THANKFUL.
jan
Title: Re: newbe.1: power lcd
Post by: MickM on June 12, 2014, 12:45:02 am
Hi and welcome;
    It looks to me that your wiring is incorrect.
If you look at the face of the LCD, one corner should be different - some kind of notch.
That is pin 1.
Orient it so that it is in the lower left.

Turn the display over, now the (hidden) notch should be lower right.
The right hand connector, lower pin is #1, upper #9.
left hand connector lower pin#18, upper #10.

Note that pins 15 and 16 on the LCD are not connected, the backlight (which needs a resistor, try 100 Ohms), is  A+ #17 K- #18.
Ground is pin 1, +5v is pin 2.

Just hook those wires up, the BL should come on, adjust the BL pot.
Adjust the contrast close to one end of it's travel, you should see some black boxes, maybe only on one line.
Then go from there.

See here:
http://dangerousprototypes.com/docs/PIC_LCD_backpack (http://dangerousprototypes.com/docs/PIC_LCD_backpack)
http://dangerousprototypes.com/docs/USB ... n_overview (http://dangerousprototypes.com/docs/USB_and_serial_enabled_LCD_backpack_design_overview)

Mick M
Title: Re: newbe.1: power lcd
Post by: dddesign on June 12, 2014, 09:06:00 am
hi mick
thanks a a lot for your response. why do you think the wiring is incorrect? of course I will check it again, but see these images
[attachment=1]
[attachment=0]

Could it be that it's not working only because the 100ohm resistor for BL is missing?

thank jan
Title: Re: newbe.1: power lcd
Post by: MickM on June 12, 2014, 11:03:34 am
Hi Jan;
  I just did a little test on a breadboard.
 LCD gnd to pin 1, +5v to pin 2 -No display at all.
Ground pin 3 - black boxes across line 1.

This is an old LCD without a backlight.
But the backlight is just an led, not part of the LCD panel, it sits under it.

I do not have this board, so I downloaded the package for your pcb.
http://code.google.com/p/dangerous-prot ... ge.v1a.zip (http://code.google.com/p/dangerous-prototypes-open-hardware/downloads/detail?name=LCD_Backpack_PIC_HD44780.package.v1a.zip)

In the PCBs_Production folder are the Eagle files, also png files that are hard to read.

This shows that the contrast pot is wired to the lcd, turn it CW for max contrast.
It also shows that the backlight pot is wired to LED-A, turn it CCW for max R.
However the LED-K goes to the collector of T1, and through it to ground.
So if T1 is off, no backlight, the PIC must output a H to turn it on.
This is an NPN, and it is switching ground, so you could jumper pin 18 to ground.

If you have a voltmeter you can measure pins 1,2,3,17, and 18.
If you have a breadboard and a 5V supply then you can test the LCD as I did.

Mick M
Title: Re: newbe.1: power lcd
Post by: MickM on June 16, 2014, 01:30:40 am
Hi Jan;
  just wondering if you made any progress.

Mick M
Title: Re: newbe.1: power lcd
Post by: dddesign on June 16, 2014, 09:49:12 am
hey mick
I didn't had the time, but I will go through it shortly and will post my results.
thanks anyway for your help.
j
Title: Re: newbe.1: power lcd
Post by: dddesign on June 17, 2014, 09:59:41 pm
[quote author="MickM"]
This shows that the contrast pot is wired to the lcd, turn it CW for max contrast.
[/quote]
this is working: max contrast > blocks on first line

[quote author="MickM"]
It also shows that the backlight pot is wired to LED-A, turn it CCW for max R.
However the LED-K goes to the collector of T1, and through it to ground.
So if T1 is off, no backlight, the PIC must output a H to turn it on.
This is an NPN, and it is switching ground, so you could jumper pin 18 to ground.
[/quote]
this is working too. I use a 38 ohm resistor because R=(5.0v-3.3V)/0.06A=28ohm

now I have to solve my problems 2 and 3 (see these posts). do you have any idea?

thanks a lot for your help
jan
Title: Re: newbe.1: power lcd
Post by: MickM on June 18, 2014, 02:54:29 am
Hi;
  I see from another thread that you have it working - great news.
What was the fix?

Mick M
Title: Re: newbe.1: power lcd
Post by: dddesign on June 18, 2014, 03:30:27 pm
summary:
1. wiring was ok, but I forget the resistor for backlight
2. when I connected the board to my notebook, I didn't saw the blocks (contrast)
3. so I tested the contrast by shorting pin3 with pin1 (gnd) > it's working
4. to test the backlight I shorted pin18 with pin1(gnd) to get rid of the collektor T1 > it's working to (don't forget to add resitor to pin17)
5. my windows vista notebokk didn't had the right driver. so I downloaded this .inf and .cat file
https://code.google.com/p/dangerous-pro ... inf/?r=713 (https://code.google.com/p/dangerous-prototypes-open-hardware/source/browse/trunk/LCD-backpacks/HD44780-USB-PIC/package/inf/?r=713)
6. in device manager I found the right communcation com port (e.g.COM26) and with the this tutorial
http://dangerousprototypes.com/docs/USB ... CD_Smartie (http://dangerousprototypes.com/docs/USB_and_serial_LCD_backpack_setup_for_LCD_Smartie)
the lcd display was working by smartieLCD.

now I have to solve or find the right settings for LCD4linux on my openwrt router. any ideas?
jan

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01622094976session_write_close ( )...(null):0
20.01682226568ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01682227344Database_MySQL->query( ).../DatabaseHandler.php:119
40.09342366080Database_MySQL->error( ).../Db-mysql.class.php:273