12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hi, thanks for your prompt response. It was what I imagined ... This afternoon proceed to remove the R9 and test its proper functioning. When checked it will perform.
Thank you.
Thank you.
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
All is OK.
Gracias.
Gracias.
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Glad you got it working. We will update the first post in this thread accordingly.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
-
- Posts: 2
- Joined: Thu Jan 30, 2014 10:01 am
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hello, I have just tried to get the example above working to test the screen and although the backlight lights up there is nothing on the display. I have checked the PSD line and it does not appear to have the 0 ohm resistor, and when connected to GND it shows 0v. I am using a Leonardo board rather than an Uno! I have also downloaded the 1.12 version of the library from the link above. I initially tried it with the 1.14 version from the u8glib website but when it did not work I removed the library and installed the version from your site. Any help would be greatly appreciated.
Adam Walker
Adam Walker
-
- Posts: 2
- Joined: Thu Jan 30, 2014 10:01 am
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hello, I found this...
To get a ST7920 display working all you need is 2 pins.
#define lcdCs U8G_PIN_NONE
#define lcdSck 4
#define lcdMosi 3
#define lcdRst U8G_PIN_NONE
#include <U8glib.h>
U8GLIB_ST7920_128X64_4X u8g(lcdSck, lcdMosi, lcdCs, lcdRst);
After that, PSB to ground, RS to Vcc, Vcc to +5V, Vss to ground, and you're all set.
For backlighting, BLK to ground and BLA gets a 390 ohm to Vcc (or PWM).
And I now have the screen working. Not quite sure what was wrong before, so It would be good if you could shed any light on it.
Thanks, Adam Walker
To get a ST7920 display working all you need is 2 pins.
#define lcdCs U8G_PIN_NONE
#define lcdSck 4
#define lcdMosi 3
#define lcdRst U8G_PIN_NONE
#include <U8glib.h>
U8GLIB_ST7920_128X64_4X u8g(lcdSck, lcdMosi, lcdCs, lcdRst);
After that, PSB to ground, RS to Vcc, Vcc to +5V, Vss to ground, and you're all set.
For backlighting, BLK to ground and BLA gets a 390 ohm to Vcc (or PWM).
And I now have the screen working. Not quite sure what was wrong before, so It would be good if you could shed any light on it.
Thanks, Adam Walker
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
This is because the example sketch was written for an Uno (the most common of the Arduino boards). On a Leonardo the SPI interface is assigned to different pins. In the ug8lib library, when creating an instance of it, if no SPI pins are specified it assumes that you are using an Uno and assigns the SPI interface to the default D11 and D13.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hi I'm new to this site and just would like to point out that on the 12864ZW model R9 is actually a 27Kohm resistor and not a 0ohm jumper. To put it into serial mode you don't have to remove it like on the 12864B model, you can just connect pin PSB to ground and it will work in serial mode
-
- Posts: 2
- Joined: Sat Apr 26, 2014 2:48 pm
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hi, I've just ordered this module to be used with a PIC32. I have a question: does it work with 3,3 volt logic or I have to use a level translator?
Any help will be appreciated.
Marco Guerrini
Any help will be appreciated.
Marco Guerrini
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
The manufacture of these screens likes to keep us guessing with the PSB pin. We have seen 3 variations of the design, 2 of which do not need any component changes. However we believe that the current shipped version does not need any modification.Hi I'm new to this site and just would like to point out that on the 12864ZW model R9 is actually a 27Kohm resistor and not a 0ohm jumper.
According to the datasheet when powering the module at 5V the minimum logic high voltage is 3.5V (0.7 x Vcc). The chipset can be run at 3.3V (allowing it to interface with 3.3V logic) but the contrast for these screens has been fixed to the ideal setting for 5V operation. As a result I think the contrast will be too low to be usable. However if you can drop the supply voltage to the screen to about 4.7V then it may work ok assuming that the DIO on your pic is 5V tolerant. Otherwise you will need a level shifter.Hi, I've just ordered this module to be used with a PIC32. I have a question: does it work with 3,3 volt logic or I have to use a level translator?
Any help will be appreciated.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.
-
- Posts: 2
- Joined: Sat Apr 26, 2014 2:48 pm
Re: 12864B Parallel/Serial Graphic LCD Module (HCMODU0032)
Hi, I've been successful in using this module with a PIC32 in parallel 4 bits mode. The pic port is configured in open-drain mode so you just need a pull-up resistor (10k) to 5v on each pin instead of a level converter. Of course you have to use 5v tolerant pins.
Marco
Marco