geekhack

geekhack Community => Keyboards => Topic started by: Fujisawa Rob on Mon, 27 May 2013, 19:25:36

Title: Added a reset switch to my Model M
Post by: Fujisawa Rob on Mon, 27 May 2013, 19:25:36
I am using the USB adapter sold at Clickykeyboards (although I didn't buy it there), and while it usually works fine, sometimes when my laptop wakes up, the keyboard isn't responsive. Typically, I was just unplugging the cord from the back of the keyboard which fixed it. I've done the pull-up resistor mod, but it made no difference. So, I added a simple pushbutton momentary switch that connects between pins 1 and 2 (Vss and /RST) of the 6805 controller. It works great!
Title: Re: Added a reset switch to my Model M
Post by: Fujisawa Rob on Mon, 27 May 2013, 19:30:15
Nice and clean, and won't accidentally be hit:
(http://i162.photobucket.com/albums/t250/rccipriani/20130525_173941_zps14f37b22.jpg)

Inside:
(http://i162.photobucket.com/albums/t250/rccipriani/20130525_173917_zps4bbd5c5e.jpg)

Soldered to the back of the board, sorry, no pic. It was a bit of a pain but it does work:
(http://i162.photobucket.com/albums/t250/rccipriani/20130525_173911_zpscad0868a.jpg)
Title: Re: Added a reset switch to my Model M
Post by: gnubag on Mon, 27 May 2013, 19:56:32
nice.

would be cool if you used a mx switch :)

Title: Re: Added a reset switch to my Model M
Post by: Findecanor on Mon, 27 May 2013, 20:31:44
Elegant mod!

would be cool if you used a mx switch :)
I think it would have been cooler if the reset switch had been salvaged from IBM equipment from the same time era as the keyboard.
Title: Re: Added a reset switch to my Model M
Post by: daerid on Mon, 27 May 2013, 21:37:46
This is why I love GeekHack :D
Title: Re: Added a reset switch to my Model M
Post by: SpAmRaY on Mon, 27 May 2013, 22:05:27
Need to remember this for future build ideas!
Title: Re: Added a reset switch to my Model M
Post by: Fujisawa Rob on Tue, 28 May 2013, 14:36:44
Elegant mod!

would be cool if you used a mx switch :)
I think it would have been cooler if the reset switch had been salvaged from IBM equipment from the same time era as the keyboard.


Like the Big Red Switch on a PC/AT power supply? :)

I actually bought a nc/no switch, thinking I could splice it in between the +5v line with the N.C. side, but with everything on-board that was too difficult. Fortunately, I was able to use the N.O. side on the reset pin.  I wish I knew why this was necessary, maybe it's a problem with the adapter, or the usb port, but I'm satisfied with this fix for now. As long as you don't mind drilling a hole in your keyboard...

Thank you for the compliments.
Title: Re: Added a reset switch to my Model M
Post by: mich on Tue, 28 May 2013, 16:24:38
I wish I knew why this was necessary, maybe it's a problem with the adapter, or the usb port, but I'm satisfied with this fix for now.
What's the state of LEDs when it doesn't work?

In Model Ms and M2s the NL led is driven directly by a normally-low MCU GPIO while CL and SL are driven through inverters. Hence normal boot looks like this:
Code: [Select]
0-0-0 - no power, all leds off
0-1-1 - power-up, MCU GPIOs low, inverters light up CL and SL
0-0-0 - firmware boots up and drives CL and SL pins high, inverters clear the LEDs
1-1-1 - short blink after (successful?) POST
0-0-0
x-x-x - whatever the host controller wants

If CL and SL stay permanently lit, it's likely an MCU crash caused by attempting to boot during voltage dip caused by inrush current to other devices, an issue similar to this one (http://geekhack.org/index.php?topic=5065.0). If they get cleared and blink, it's probably some problem with this USB-PS/2 controller.
Title: Re: Added a reset switch to my Model M
Post by: Fujisawa Rob on Mon, 07 October 2013, 14:20:20
I wish I knew why this was necessary, maybe it's a problem with the adapter, or the usb port, but I'm satisfied with this fix for now.
What's the state of LEDs when it doesn't work?

In Model Ms and M2s the NL led is driven directly by a normally-low MCU GPIO while CL and SL are driven through inverters. Hence normal boot looks like this:
Code: [Select]
0-0-0 - no power, all leds off
0-1-1 - power-up, MCU GPIOs low, inverters light up CL and SL
0-0-0 - firmware boots up and drives CL and SL pins high, inverters clear the LEDs
1-1-1 - short blink after (successful?) POST
0-0-0
x-x-x - whatever the host controller wants

If CL and SL stay permanently lit, it's likely an MCU crash caused by attempting to boot during voltage dip caused by inrush current to other devices, an issue similar to this one (http://geekhack.org/index.php?topic=5065.0). If they get cleared and blink, it's probably some problem with this USB-PS/2 controller.

Oops...I never saw your reply. Not sure, I'll make a note next time it happens. Is there a way to add an external 5v power supply inline with the PS2 port, bypassing the power from the USB adapter?

Title: Re: Added a reset switch to my Model M
Post by: bazemk1979 on Mon, 07 October 2013, 14:46:48
Nice and clean, and won't accidentally be hit:
Show Image
(http://i162.photobucket.com/albums/t250/rccipriani/20130525_173941_zps14f37b22.jpg)


Inside:
Show Image
(http://i162.photobucket.com/albums/t250/rccipriani/20130525_173917_zps4bbd5c5e.jpg)


Soldered to the back of the board, sorry, no pic. It was a bit of a pain but it does work:
Show Image
(http://i162.photobucket.com/albums/t250/rccipriani/20130525_173911_zpscad0868a.jpg)

can it turn on and off the light bulb in your room?