geekhack

geekhack Community => Keyboards => Topic started by: haphi on Sun, 04 December 2016, 04:42:52

Title: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: haphi on Sun, 04 December 2016, 04:42:52
So I got this beautiful keyboard from ebay:
[attachimg=1]

It is the keyboard from a Sanyo MBC-550 (http://www.seasip.info/VintagePC/sanyo.html) PC - you can find an excellent youtube review here (https://www.youtube.com/watch?v=xN5_NMHAn_o).

It does not talk PC/XT keyboard protocol, but has some serial interface. Let's find out how it works and create a custom controller for it!
I'll document the process in a series of posts.
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: haphi on Sun, 04 December 2016, 05:31:59
First thing to do:  Find out about the original protocol. The vintage PC pages (http://www.seasip.info/VintagePC/sanyo.html) state that the keyboard talks with a USART, at 1200 baud with 8 data bits, 2 stop bits and even parity.

By looking at the PCB and using the pinout of the 7407 chip, the connector pins can be identified (the only line connected to the controller IC should be the data line)
[attachimg=1]

(looking at the plug):
Code: [Select]
        '
4 DAT o   o 1 VCC
3 GND o   o 2 reset
       + o

Luckily, I had a FTDI serial-to-usb breakout board as well as a DIN connector lying around, so I hooked up the data line to the "RXD" pin of the ftdi chip:
[attachimg=2]

And voilą! Connecting with minicom, I can receive single ASCII characters as I type. Wait... characters?
It seems this keyboard just sends individual characters via serial interface. Repetition is done by the keyboard itself. The CTRL-key doesn't seem to do anything, whereas the shift keys work, but don't cause any ascii or keycode to be sent.
The LOCK and GRAPH key do send some non-ascii keycodes though...

Anyway, this interface is unusable. It does not provide a pressed/released state of keys and so writing a converter would involve simulating key releases etc. Therefore, it seems better to repleace the controller altogether!
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: chyros on Sun, 04 December 2016, 13:12:23
Ah, yeah, I have one of these as well. I was quite disappointed to find that despite the AT plug it doesn't speak any recognisable protocol D: .

Very nice boards though, and great switches.
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: Parak on Sun, 04 December 2016, 13:22:49
I'd suggest looking at https://github.com/kiibohd/controller/tree/master/Scan/MBC-55X :D

(courtesy of HaaTa)
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: YoshiCaps on Sun, 04 December 2016, 13:24:16
So I got this beautiful keyboard from ebay:
(Attachment Link)

It is the keyboard from a Sanyo MBC-550 (http://www.seasip.info/VintagePC/sanyo.html) PC - you can find an excellent youtube review here (https://www.youtube.com/watch?v=xN5_NMHAn_o).

It does not talk PC/XT keyboard protocol, but has some serial interface. Let's find out how it works and create a custom controller for it!
I'll document the process in a series of posts.
Nice. What switches?
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: haphi on Sun, 04 December 2016, 13:35:17
I'd suggest looking at https://github.com/kiibohd/controller/tree/master/Scan/MBC-55X :D

(courtesy of HaaTa)

Thanks! I did not find this controller software before. I replaced the controller with a teensy 2.0, so I might be able to make use of the kibohd controller. For now, I'm satisfied with my own brew.
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: haphi on Sun, 04 December 2016, 13:40:24
These are fujitsu leaf-spring 2nd 3rd generation (https://deskthority.net/wiki/Fujitsu_Leaf_Spring) switches:
[attachimg=1]
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: chyros on Sun, 04 December 2016, 14:05:58
These are fujitsu leaf-spring 2nd generation (https://deskthority.net/wiki/Fujitsu_Leaf_Spring) switches:
(Attachment Link)
Third-gen, not second ;) .
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: haphi on Sun, 04 December 2016, 14:18:38
Third-gen, not second ;) .
oops, corrected :)
Title: Re: Sanyo MBC-550 keyboard (fujitsu leafspring)
Post by: YoshiCaps on Sun, 04 December 2016, 15:13:33
FLS switches remind me of cherries with diffrent insides.