Apple 2 Keyboard

broken image


Attach a PS/2 keyboard to your Apple II with this easy to build converter, using a PIC.

  1. Shop for apple ipad 2 keyboard at Best Buy. Find low everyday prices and buy online for delivery or in-store pick-up.
  2. This item Apple Wireless Magic Keyboard 2 -MLA22LL/A with Apple Magic Bluetooth Mouse 2 -MLA02LL/A (Renewed) Wireless Keyboard and Mouse Combo, FENIFOX USB Slim 2.4G Full Size Ergonomic Compact with Number Pad for Laptop Mac PC Computer Windows (Silver White).

Table of Contents

Why?

I was cleaning up my cellar the other day as I found my old Apple II europlus.Since it was the computer I've started programming on (not in the 70s, though) I'm a little emotionally attached to that old beast and decided to toy around with it a bit – AFTER cleaning up the cellar of course ;).

Unfortunately most of the keys hardly worked, quite some were completely broken – the age (around 30 years) definitely shows.I tried to fix the keys a few years ago but gave up, since they kept breaking at an incredible rate.

ZAGG - Rugged Book Keyboard Folio Case for Apple® iPad® 10.2', iPad® Pro 10.5', and iPad® Air 10.5' - Black. Model: 103104613. User rating, 4.5 out of 5 stars with 38 reviews. (38) Price Match Guarantee. $129.99 Your price for this item is $129.99. The Apple II Keyboard Saga Possible Ground Problems Update 12/5/2008 - The grounding issue I had with my PS/2 keyboard interface has been proven to NOT be related to the bad MM5740 chips I have. Update 8/29/2008 - I'm currently investigating a possible ground problem that may be endemic to Apple II's keyboard interface. The symptom is the last typed character repeating itself, sometimes endlessly. Arteck Ultra-Thin Apple iPad Mini Bluetooth Keyboard Folio Case Cover with Built-in Stand Groove for Apple iPad Mini 3/2 / 1 / iPad Mini with Retina Display with 130 Degree Swivel Rotating 4.4 out of 5 stars 2,392.

Thus I decided to build a converter that enables me to use a common (and much more comfortable) PC-keyboard.

Apple 2 ebay

This is what you'll need

  • Microchip PIC 16F630 or 16F676
  • Some means of flashing code onto the PIC (I used JDM's programmer and WinPic)
  • A 6-pin Mini-DIN female (jack) – I unsoldered mine from an old motherboard
  • A proper amount of nostalgia

Building it

The pin-assignments of the PIC seem a little random, especially the Dx-lines. However, like this it's possible to piggy-back the PIC (14 pins) on top of the keyboard-socket (16 pins) on the motherboard.It's not hard to figure out how, here are a few tips:

  • Even if it's obvious: don't solder everything directly to the keyboard-socket, put another 16-pin IC-socket with pins on both sides inbetween
  • Piggy-back in a way so pin 1 of the keyboard-socket and pin 1 of the PIC line up
  • GND is at pin 8 of the keyboard-socket – you need to connect it to the PIC's pin 14
  • IMPORTANT: Make sure the keyboard-socket's pins 14, 15 and 4 aren't connected with the PIC's pins 12, 13 and 4, respectively
  • Don't forget the ceramic capacitor

If piggy-backing is too much fiddling for you, you can always put everything on a small board and use the ribbon-cable.

Power is drawn from the Apple via the keyboard-socket (pins 1 and 8 of SV1), so you don't need any extra wiring for power.

This is how it looks here: Apple bluetooth keyboard windows.

On the right you can see the inserted piggy-back-construction and a ribbon-cable to the PS/2-socket on the left, which I hotglued there.

Using it

After you've built and connected everything, turn the power on and push keys on the keyboard;hopefully the keys you push there correspond with those you see on the screen.

Apple Bluetooth Wireless Keyboard

Notes:

Apple 2 Tv

  • On power-up, the LEDs should flicker in a funky way
  • Repeat rate is set to 12cps, delay to 0.25 s
  • Ctrl+Alt+Delete will assert /RESET (like the RESET-Button on the Apple II-keyboard does)
  • The only implemented keyboard-layout is en_US, if you need a different layout (de_DE for example) you'll have to add it to the code.
  • If your Apple has a small caps-modification, you'll need to adjust the code to make it work.
  • All the key-combinations (Ctrl+? and the ESC-stuff) should work as expected. If you find something doesn't work as it should, let me know.

File(s)

With HI-TECH C >= 9.81, you might need to put#define _LEGACY_HEADERSon top of main.c, see this document. Thanks Miles for pointing this out.

Closing words

Apple 2 Keyboard Download

That's it already, I hope you'll waste as much sweet time building it as I did :). As always, I'd be happy to get mail if you built it successfully!

Apple Magic Keyboard Silver

References





broken image