benderpirat / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

UG1608: blank screen #326

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I use display: LCD-AG-C240064A-DIW 
http://www.artronic.com.pl/pdf/pl/AGG240064A04-DIW-R.pdf

I connect all pins buy spec in datasheet.
When the display flashes twice and then do not show anything...

I use init line in sketch U8GLIB_UC1608_240X64 u8g(13, 11, 10, 9, 8);

My scheme now:
13 pin arduino = 17 pin display (sck)
11 pin arduino = 14 pin display (mosi)
10 pin arduino = 22 pin display (cs)
5 pin display = +3.3v (reset)

I tried different display modes: 
1)4-Wires SPI (S8) serial mode reference circuit
2)3/4-Wires SPI (S8uc) serial mode reference circuit
3)3-Wires SPI (S9) serial mode reference circuit

My board - arduino pro mini (3.3v, 8MHZ)

Help me please...

Original issue reported on code.google.com by shu...@gmail.com on 1 Mar 2015 at 12:46

GoogleCodeExporter commented 8 years ago
What about pin 20 (A0) and pin 21 (reset)? 
Without connecting these pins, it will not work.
Note: U8glib only support 4-wire SPI

Original comment by olikr...@gmail.com on 1 Mar 2015 at 7:22

GoogleCodeExporter commented 8 years ago
Ok, connect it..
My scheme now:
13 pin arduino = 17 pin display (sck)
11 pin arduino = 14 pin display (mosi)
10 pin arduino = 22 pin display (cs)
 9 pin arduino = 20 pin display (a0)
 8 pin arduino = 21 pin display (reset)

Display on 4-wire spi mode:
23  BM0 0v
24  BM1 0v
10  DB7 +3.3v
11  DB6 0v

When the display flashes twice and then do not show anything...

Original comment by shu...@gmail.com on 1 Mar 2015 at 1:01

GoogleCodeExporter commented 8 years ago
I record video issue https://www.youtube.com/watch?v=pJKr6ZJgGBM

Original comment by shu...@gmail.com on 1 Mar 2015 at 1:20

GoogleCodeExporter commented 8 years ago
Did you connect everything for 4-wire SPI?
Reference: 
http://www.buydisplay.com/download/interfacing/ERC24064-1_Interfacing.pdf
See "The Serial 4line SPI(S8) Reference Example"
Especially, consider all the caps and resistors.

Original comment by olikr...@gmail.com on 1 Mar 2015 at 2:28

GoogleCodeExporter commented 8 years ago
Yes, a connect all for 4-wire spi.
And on wire BIAS cap 0.1uf

Original comment by shu...@gmail.com on 1 Mar 2015 at 2:48

GoogleCodeExporter commented 8 years ago
What about the two 4.7uF caps? and the 10M resistor?

Original comment by olikr...@gmail.com on 1 Mar 2015 at 2:53

GoogleCodeExporter commented 8 years ago
yes, two caps 4.7uf (polar 
https://www.baudaeletronica.com.br/media/catalog/product/cache/1/image/363x/040e
c09b1e35df139433887a97daa66f/4/_/4.7uf.jpg)

yes 10m resistor on VLCD pin ( 2 x 4.7M )

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:05

GoogleCodeExporter commented 8 years ago
Yes 4.7uF caps on VB pins ( polar caps)
And 10M resistor on VLCD pin (2 x 4.7M)

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:09

GoogleCodeExporter commented 8 years ago
Mostly this kind of caps are not working. You must use a ceramic type for the 
4.7uF (X7R usually works).
All in all it is difficult for me to support here. This is only a software 
project, not a hardware forum. I did my very best to support you, but finally, 
you have to figure out the setup together with your hardware provider. Maybe it 
is better to contact the person who sold the display to you.

Original comment by olikr...@gmail.com on 1 Mar 2015 at 3:10

GoogleCodeExporter commented 8 years ago
Thank you very much for your support and quick answers!
I soldering capacitors ...

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:14

GoogleCodeExporter commented 8 years ago
For my own setup: It took me a good amount of time to fix all issues with the 
hardware. Gallery page: 
http://wiki.u8glib.googlecode.com/hg/otherpic/u8glib_uc1608_240x64.jpg

Original comment by olikr...@gmail.com on 1 Mar 2015 at 3:18

GoogleCodeExporter commented 8 years ago
I saw your installation from the gallery...
I resolder ceramic capacitors, but it did not help :-(

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:36

GoogleCodeExporter commented 8 years ago
Maybe you can do the testing without backlight or at least with very reduced 
backlight. Somehow it looks to me, that the power supply is not good enough. 
Voltage may drop, which will lead to a reset of the controller. Note: Arduinos 
usually do not provide enough current for the backlight.  

Original comment by olikr...@gmail.com on 1 Mar 2015 at 3:43

GoogleCodeExporter commented 8 years ago
I use an external power supply 3.3V 2.5A ...
And backlight is connected directly to the power supply ..

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:48

GoogleCodeExporter commented 8 years ago
... i hope there is at least a resistor for the backlight. Nevertheless, then 
if you use an external power supply, then this should not be the problem.
In fact i am running out of ideas.

Original comment by olikr...@gmail.com on 1 Mar 2015 at 3:53

GoogleCodeExporter commented 8 years ago
http://plasmon.rghost.ru/92jRQzfYZ/image.png my wire =)

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:54

GoogleCodeExporter commented 8 years ago
backlight is connected directly to the power supply and resistor 3.3 ohm

Original comment by shu...@gmail.com on 1 Mar 2015 at 3:56

GoogleCodeExporter commented 8 years ago
Looks good. Only comment i have: The caps should be more close to the display 
flex cable.

Original comment by olikr...@gmail.com on 1 Mar 2015 at 4:00

GoogleCodeExporter commented 8 years ago
what about bias setup?
Library use this feature?
Exemple code :     wr_cmd8(0xEA);   //set bias:1/12bias

Original comment by shu...@gmail.com on 1 Mar 2015 at 9:16

GoogleCodeExporter commented 8 years ago
I have tested this with the east rising (buydisplay.com) LCD. Setup might be 
different for your display. Feel free to change u8glib.

Original comment by olikr...@gmail.com on 1 Mar 2015 at 9:41

GoogleCodeExporter commented 8 years ago
My display work!
bug in vertical line .... can help?

Original comment by shu...@gmail.com on 5 Mar 2015 at 7:18

Attachments:

GoogleCodeExporter commented 8 years ago
I have never seen similar artefact. I have no idea about the cause for this.

Original comment by olikr...@gmail.com on 6 Mar 2015 at 5:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have tried to sketch a timer.
But the information is not updated on the display.
How Come?

Original comment by shu...@gmail.com on 6 Mar 2015 at 9:27

GoogleCodeExporter commented 8 years ago
difficult to say without the code

Original comment by olikr...@gmail.com on 6 Mar 2015 at 9:55

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
#include "U8glib.h"
U8GLIB_UC1608_240X64 u8g(13, 11, 10, 9, 8);   // SW SPI Com: SCK = 13, MOSI = 
11, CS = 10, A0 = 9, RST = 8

void draw(void) {
  u8g.setFont(u8g_font_unifont);
  u8g.drawStr( 0, 22, "Hello World!");
}

void setup(void) {
  if ( u8g.getMode() == U8G_MODE_R3G3B2 ) {
    u8g.setColorIndex(255);     // white
  }
  else if ( u8g.getMode() == U8G_MODE_GRAY2BIT ) {
    u8g.setColorIndex(3);         // max intensity
  }
  else if ( u8g.getMode() == U8G_MODE_BW ) {
    u8g.setColorIndex(1);         // pixel on
  }
  else if ( u8g.getMode() == U8G_MODE_HICOLOR ) {
    u8g.setHiColorByRGB(255,255,255);
  }
}

void loop(void) {
  // picture loop
  u8g.firstPage();  
  do {
    draw();
  } while( u8g.nextPage() );
  u8g.drawStr(millis()/1000);
  // rebuild the picture after some delay
  delay(50);
}

Original comment by shu...@gmail.com on 6 Mar 2015 at 10:40

GoogleCodeExporter commented 8 years ago
Place
 u8g.drawStr(millis()/1000);
inside draw()

Original comment by olikr...@gmail.com on 6 Mar 2015 at 11:02