Spark Logic

KS0108 128×64 Graphic LCD

ATmega328 TQFP-32 Pinout

All,

Spent a couple of hours trying to get one of these to work with Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog clone yesterday evening without success. The display is similar to http://www.adafruit.com/products/253. The data sheet does state a min supply voltage of 4.75V, so I knew I would be pushing my luck.

The device does not seem to be 3.3V compatible. It has a negative voltage generator on board to allow the contrast to be adjusted, but this just does not seem to be able to generate enough negative voltage if you provide it with only 3.3V supply. I could not tell if the display was operating or not without being able to adjust the contrast properly.

Next I switched to powering it from the 5V USB power. I was then able to adjust the contrast, so that for example at one extreme of the contrast adjustment, all pixels went slightly dark. But the display remained blank. Checking the data sheet, I don’t think its logic inputs will recognise the 3.3V logic from the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog when it is operating at 5V supply. The data sheets state that a HIGH must be above 0.7 of the supply voltage, i.e. over 3.5V.

So my conclusion is that I would need level converters to run the display. However, its possible that I made some other error in my code and that was why the display remained blank. I tested the display with an ATmega328ATmega328Microcontrollers and processors…al port without resetting, the 16u2 send a pulse of about 4 us to the RX port of the Atmega328 . This pulse can be interpreted as a characher that depends on baudrate A 256000 you…View in hardware catalog running at 5V with no problems.

Has anyone else had any success with this type of display? If so, how did you achieve it?

Thanks,

Paul

Replies11

Fri Jun 19, 2015 5:49 pm

All I can say is, that I ported the 128×64 display with a ST7920ST7920Displays, touch panels and LEDs…s Fri Jun 19, 2015 5:49 pm All I can say is, that I ported the 128×64 display with a ST7920 chipset. The board is quiet similar to the KS0108, so I have no voltage problems (for s…View in hardware catalog chipset. The board is quiet similar to the KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog , so I have no voltage problems (for sure: VCC must be 5V). Do you own a logic analyzer? So you can compare the output from the uno-library with the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog -library.

Fri Jun 19, 2015 10:53 pm

Thanks for the reply madias. Your ST7920ST7920Displays, touch panels and LEDs…s Fri Jun 19, 2015 5:49 pm All I can say is, that I ported the 128×64 display with a ST7920 chipset. The board is quiet similar to the KS0108, so I have no voltage problems (for s…View in hardware catalog based display does seem to have similar characteristics to the KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog . HIGH must be 0.7 of Vdd according to both data sheets.

I don’t have a logic analyser. I am not using a library, just digitalWrite().

Sat Jun 20, 2015 6:00 am

Please post your code, so I can have a look on it! (at the earliest on Monday)

Edit: As I can remember, some AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog code I used, was too fast on ARM for the ST7920ST7920Displays, touch panels and LEDs…s Fri Jun 19, 2015 5:49 pm All I can say is, that I ported the 128×64 display with a ST7920 chipset. The board is quiet similar to the KS0108, so I have no voltage problems (for s…View in hardware catalog chipset. So maybe you can test your code with some minor delays after each display commands?

Matthias

Sun Jun 21, 2015 3:10 pm

I found the AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog was also too fast for the KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog , so I already added delays to my code when it was running on the AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog . I hoped, given that these delays were made using delayMicroseconds(), that the extra speed of the ARM would not matter. I will try longer delays, thanks for the suggestion.

Mon Jul 06, 2015 11:20 am

Guys,

I know you will probably guess at the amount of delay your need, but bear in mind… from what I’ve read on the old MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog forum, the delay functions are not particularly accurate. They don’t use systick, they are just loops with nops in them.

So delay will be partially dependent on anything that will interfere with the main time line, i.e heavy use of ISR’s will lengthen the time given my delay() etc

Mon Jul 06, 2015 11:49 am

I usually try an utilize a Nano or Pro Mini to test displays when I get something strange from China… the AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog code selections are particularly vast. Then, over to the ARM once I know for certain the display will perform! Just my anal character, I suspect :D

Ray

Mon Oct 17, 2016 12:03 am

Hi all,

I managed to get one of these KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog displays working on a Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog clone using openGLCD. At first the compiler complained about the definition of analog pins (A0 through A5), so I simply changed the pin assignments in ‘ /config/KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog /PinConfig_KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog -CoreCode.h ‘ to something like this:

/* Data pin definitions
*/
#define glcdPinData0        11
#define glcdPinData1        10
#define glcdPinData2        9
#define glcdPinData3        8
#define glcdPinData4        7
#define glcdPinData5        6
#define glcdPinData6        5
#define glcdPinData7        4

/* Arduino pins used for Control
* default assignment uses the first five analog pins
*/

#define glcdPinCSEL1        14
#define glcdPinCSEL2        12
#if NBR_CHIP_SELECT_PINS > 2
#define glcdPinCSEL3         3   // third chip select if needed
#endif
#if NBR_CHIP_SELECT_PINS > 3
#define glcdPinCSEL4         2   // fourth chip select if needed
#endif
#define glcdPinRW           28
#define glcdPinDI           29
#define glcdPinEN           30
// Reset  - uncomment the next line if glcd module reset is connected to an Arduino pin
//#define glcdPinRES          A5    // optional s/w Reset control
//#define glcdPinBL	XX // optional backlight control pin controls BL circuit
#endif //GLCD_PIN_CONFIG_H

Mon Oct 17, 2016 1:57 am

Strange its running slow, it should be almost as fast as a TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog and a lot faster than AVRAVRMicrocontrollers and processors…Arduino\libraries\U8glib\U8glib.cpp, C:\Program Files (x86)\Arduino\hardware\arduino\ avr \cores\arduino\HardwareSerial.h, C:\Program Files (x86)\Arduino/Blink3.ino, D:\Users\me\A…View in hardware catalog

But at least its now working

Mon Oct 17, 2016 9:33 pm

I don’t know the openGLCD library either not the KS0108KS0108Displays, touch panels and LEDsSpark Logic archive KS0108 128×64 Graphic LCD PaulRB Fri Jun 19, 2015 8:12 am All, Spent a couple of hours trying to get one o…View in hardware catalog , but I guess, if it’s SPI driven, the SPI divider should be changed somewhere in the code. If it’s only “software SPI” or 8-bit parallel then I guess there must be some special code and perhaps for the TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog there is a low-level pin manipulating code and the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog is using the generic “digitalWrite”?
…but even with 8-bit “digitalWrite” the STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog should be faster than the KS display can handle.

Wed Oct 19, 2016 2:03 pm

It uses an 8-bit parallel.
Have not had much time to look over the specific libraries for TeensyTeensyDevelopment and computing boards…true ide.contributions.boards.support.urls.wiki= ide.create_platforms_from_boardsTXT. teensy =build.core vm.debug=true software=ARDUINO ssh.user.name=root ssh.user.default.passwor…View in hardware catalog and the generic one, but even in the nano I got to 15 fps using the ‘graphictest’ sketch. On the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog it showed 3-4 fps.

Wed Oct 19, 2016 3:11 pm

8 bit parallel was already discussed, for instance here.

Post a reply

Optional · up to 10 MiB