February 24, 2014 AT 5:54 pm

Apple Extended Keyboard II Hack #ArduinoMicroMonday @arduino #arduino

I’m lucky enough to own an Apple Extended Keyboard II, which belongs to my Macintosh SE. Unfortunately, it wasn’t doing much good connected to my rarely-used SE. So, I figured it would find a better home on my desk at work, where I spend the day pounding away on a crummy keyboard anyway.

The Apple Extended Keyboard II is a dream to type on because it uses mechanical switches. And I lucked out: Apple made a lot of revisions of this keyboard with cheap switches, but it turns out that I got one of the good ones. Mine is a USA model with authentic Alps Cream key switches.

The biggest stumbling block to the project was the computer’s interface. The Apple Extended Keyboard II is from the days of ADB, or Apple Desktop Bus. The internet revealed two possible solutions: An expensive and sometimes-hard-to-find adapter by Griffin, or a $16 microcontroller and some DIY elbow grease. Naturally, I chose the latter.

Here is the official press release for the Arduino Micro in collaboration with Adafruit.

Arduino Micro in collaboration with Adafruit

Arduino Micro board – Based on the technology behind the Leonardo board, its main feature is the very small size.

The Arduino Micro packs all of the power of the Arduino Leonardo in a 48mm x 18mm module (1.9″ x 0.7″).

It makes it easier for makers to embed the Arduino technology inside their projects by providing a small and convenient module that can be either used on a breadboard or soldered to a custom designed PCB.

The Micro has been developed in collaboration with Adafruit Industries, one of the leaders of the Maker movement. Adafruit is already developing a series of accessories for the new board that will complement its power and simplicity.

Throughout the month of November the product is available exclusively from Adafruit online and Radio Shack in retail stores.

Main features of Arduino Micro:

The Arduino Micro is a microcontroller board based on the ATmega32u4.

Like its brother the Leonardo board, the Arduino Micro has one microcontroller with built-in USB. Using the ATmega32U4 as its sole microcontroller allows it to be cheaper and simpler. Also, because the 32U4 is handling the USB directly, code libraries are available which allow the board to emulate a computer keyboard, mouse, and more using the USB-HID protocol.

It has 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a micro USB cable to get started.

This allows the Micro to appear to a connected computer as a mouse and keyboard, in addition to a virtual (CDC) serial / COM port.

Technical specifications:

Microcontroller: ATmega32u4

Operating Voltage: 5V

Input Voltage (recommended): 7-12V

Input Voltage (limits): 6-20V

Digital I/O Pins: 20

PWM Channels: 7

Analog Input Channels: 12

DC Current per I/O Pin: 40 mA

DC Current for 3.3V Pin: 50 mA

Flash Memory: 32 KB (ATmega32u4) of which 4 KB used by bootloader

SRAM: 2.5 KB (ATmega32u4)

EEPROM: 1 KB (ATmega32u4)

Clock Speed: 16 MHz

About Arduino
Arduino, the first widespread Open Source Hardware platform, was launched in 2005 to simplify the process of electronic prototyping. It enables everyday people with little or no technical background to build interactive products.
The Arduino ecosystem is a combination of three different elements:

A small electronic board manufactured in Italy that makes it easy and affordable to learn to program a microcontroller, a type of tiny computer found inside millions of everyday objects.

A free software application used to program the board.

A vibrant community, true expression of the enthusiasm powering the project. Every day on the www.arduino.cc website thousands of people connect with other users, ask for help, engage and contribute to the project.

About Adafruit Industries
Adafruit was founded in 2005 by MIT engineer, Limor “Ladyada” Fried. Her goal was to create the best place online for learning electronics and making the best designed products for makers of all ages and skill levels. Since then Adafruit has grown to over 25 employees in the heart of NYC. Adafruit has expanded their offerings to include tools and equipment that Limor personally selects, tests and approves. Adafruit has one of the largest collections of free electronics tutorials, open-source hardware and software to help educate and inspire the next generation of scientists and engineers.

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.