diff options
| author | feurig <don@suspectdevices.com> | 2021-06-14 22:26:27 -0700 |
|---|---|---|
| committer | feurig <don@suspectdevices.com> | 2021-06-14 22:26:27 -0700 |
| commit | 5d5bb445348f5fd2c0cd281289f9f53dafe3af23 (patch) | |
| tree | a859e5e12dbf87ac0a76bd7cc16d91599cd3daaa | |
| parent | b1a098e9eb9b7faa5a1d06c508e25f5e3c906ceb (diff) | |
Add a working vfd in place of the lcd
| -rw-r--r-- | PiTerm.py | 8 | ||||
| -rw-r--r-- | README.md | 51 | ||||
| -rwxr-xr-x | images/IMG_3789.jpg | bin | 1053112 -> 431766 bytes | |||
| -rwxr-xr-x | images/IMG_3809.jpg | bin | 0 -> 927103 bytes | |||
| -rwxr-xr-x | images/layout.jpg | bin | 0 -> 1246108 bytes | |||
| -rwxr-xr-x | images/piterm1986pahts.jpg | bin | 0 -> 1143278 bytes | |||
| -rw-r--r-- | images/raspberry_pi_pilcdplate.png | bin | 0 -> 18694 bytes |
7 files changed, 55 insertions, 4 deletions
@@ -3,3 +3,11 @@ keymap.append('*# ZXCVBNM/\001') keymap.append('-LASDFGHJK\r\n') keymap.append('0912345678\010\002') keymap.append('POQWERTYUI\030\004') + +import busio +import adafruit_character_lcd.character_lcd_rgb_i2c as character_lcd +lcd_columns = 24 +lcd_rows = 2 +i2c = busio.I2C(board.SCL, board.SDA) +lcd = character_lcd.Character_LCD_RGB_I2C(i2c, lcd_columns, lcd_rows) +lcd.message = "Hello\nCircuitPython" @@ -10,10 +10,10 @@ Looking under the keyboard membrane and tracing the connectors we can get the following key map under a 4x12 array (16 pins). ``` - 0123456789A B + 0123456789A(10)B(11) -------------------- 0) *# ZXCVBNM/ <STOP> -1) -LASDFGHJK<?> <ENTER> +1) -LASDFGHJK<N/C><ENTER> 2) 0912345678<BS> <START> 3) POQWERTYUI<CAN><DIAL> ``` @@ -39,9 +39,9 @@ Since the LCD is a 5v circuit requiring either 8 or 12 pins we look at the Micro  ### Attaching Both Boards to the Raspberry pi. - + +  - ``` root@somepi1:/home/feurig# i2cdetect -y 1 @@ -55,6 +55,49 @@ root@somepi1:/home/feurig# i2cdetect -y 1 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- ``` + +## Assembly and layout. +After putting the board in the box I realized that the grey paint was conductive and that I almost let the smoke out of the pi zero. (you could smell it). So I went out and found a piece of plastic from a previous project. + + + +### So there's a circuitpython library for an mcp23017 connected to an lcd. + +``` +root@somepi1:/home/feurig# pip3 install adafruit-circuitpython-charlcd +... +``` + + + +I am not thrilled about the way its wired but whatever. + +## And then I was like OH SHIT I have Noritake 2x24 VFD thats a close fit.. + +Wiring it up according to the above schematic lets us write away + +``` +root@somepi1:/home/feurig# python3 +Type "help", "copyright", "credits" or "license" for more information. +>>> import board +>>> import busio +>>> import adafruit_character_lcd.character_lcd_rgb_i2c as character_lcd +>>> lcd_columns = 24 +>>> lcd_rows = 2 +>>> i2c = busio.I2C(board.SCL, board.SDA) +>>> lcd = character_lcd.Character_LCD_RGB_I2C(i2c, lcd_columns, lcd_rows) +>>> lcd.message = "Hello\nPiTerm1986" +>>> lcd.clear() +>>> lcd.message = "Hello\nPiTerm1982" +>>> +``` + + + + + + + # References * [https://learn.adafruit.com/adafruit-aw9523-gpio-expander-and-led-driver](https://learn.adafruit.com/adafruit-aw9523-gpio-expander-and-led-driver) * [AW9523 Datasheet](https://cdn-shop.adafruit.com/product-files/4886/AW9523+English+Datasheet.pdf) diff --git a/images/IMG_3789.jpg b/images/IMG_3789.jpg Binary files differindex 13cea76..95d77ce 100755 --- a/images/IMG_3789.jpg +++ b/images/IMG_3789.jpg diff --git a/images/IMG_3809.jpg b/images/IMG_3809.jpg Binary files differnew file mode 100755 index 0000000..d883a75 --- /dev/null +++ b/images/IMG_3809.jpg diff --git a/images/layout.jpg b/images/layout.jpg Binary files differnew file mode 100755 index 0000000..ad6f491 --- /dev/null +++ b/images/layout.jpg diff --git a/images/piterm1986pahts.jpg b/images/piterm1986pahts.jpg Binary files differnew file mode 100755 index 0000000..25f957a --- /dev/null +++ b/images/piterm1986pahts.jpg diff --git a/images/raspberry_pi_pilcdplate.png b/images/raspberry_pi_pilcdplate.png Binary files differnew file mode 100644 index 0000000..dd85580 --- /dev/null +++ b/images/raspberry_pi_pilcdplate.png |
