Go Down

Topic: KENBAK-uino (Arduino emulation of the KENBAK-1) (Read 9086 times) previous topic - next topic

liuzengqiang

Awesome project. It makes me want to add a friendlier user interface to it (LCD + number keypad).

This emulation project makes me think of another emulation project: what if I use an arduino and a 128*64 GLCD to emulate a 20X8 HD44780 character LCD with 4-bit interface????
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

robtillaart

Quote
what if I use an arduino and a 128*64 GLCD to emulate a 20X8 HD44780 character LCD with 4-bit interface????

you will have too few pixels? 
128 /20 = 6
64 /8 = 8
so your chars are 7x5 if you don't want them touching each other.

16 x 8 display seems more feasable as you get 7x7 chars
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

liuzengqiang

I thought the basic font ont the GLD is 7*5 so 8*6 space is enough to fit one character with boarders on the bottom and right. I'll have to check. I have a GLCD on a breadboard.
With 13 pins for the GLCD and 6 pins to emulate HD44780 LCD, I still have one pin left, what to do???

The real question is, will LiquidCrystal library work with this size display (8 rows).
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

robtillaart

Quote
I still have one pin left, what to do

Backlight control?

Quote
The real question is, will LiquidCrystal library work with this size display (8 rows)

4 lines is most , saw the code quite recently.

Code: [Select]
void LiquidCrystal::setCursor(uint8_t col, uint8_t row)
{
  int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
  if ( row > _numlines ) {
    row = _numlines-1;    // we count rows starting w/0
  }
 
  command(LCD_SETDDRAMADDR | (col + row_offsets[row]));
}


this one can be patched quite easily I think...

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

kiwimew

Seems to me these could be Arduino-emulation-worthy and interesting projects:
COSMAC ELF, http://en.wikipedia.org/wiki/COSMAC_ELF
11 toggles, 1 push-button and two seven-segment displays

EDUC-8, http://en.wikipedia.org/wiki/EDUC-8
44 LEDs(!) and 15 switches
// TODO: sig

Go Up