Skip to content

crazyjaw/Arduino-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

------------------------------------------------------
| MaKey MaKey Arduino Addon (updated August 9, 2012) |
------------------------------------------------------

This Arduino addon for the MaKey MaKey creates an Arduino Board menu option for the MaKey MaKey.

-------------------------------------------------
|         Installing the Arduino Addon          |
-------------------------------------------------

To install this addon, unzip the "MaKeyMaKey" folder into a "hardware" folder withing your Arduino sketchbook. If you don't know where your sketchbook is located, you can find it's location by going to File > Preferences within Arduino.

For Windows XP users, the sketchbook is usually located in your "My Documents/Arduino" directory. So once unzipped, this readme should reside in "My Documents/Arduino/hardware/ProMicro". Windows 7, by default, is something like: C:\Users\<user name>\Arduino\hardware\ProMicro.

Once unzipped, close any Arduino windows and reopen. The following board should be listed in the Tools > Board menu now:
MaKey MaKey

Important: Though the new bootloader is Leonardo-compatible, DO NOT select "Arduino Leonardo" from the Tools > Board menu before uploading code to the MaKey MaKey. Because the MaKey MaKey runs at 8MHz, the sketch uploaded to the board must be configured for that same speed.


-------------------------------------------------
|     Installing the Drivers (Windows only)     |
-------------------------------------------------
Windows users will need to install drivers the first time you connect the MaKey MaKey. Usually a New Hardware Wizard will pop up, you'll need to direct it to the included "Drivers" folder. The driver is "MaKey MaKey.inf".

The included driver should work for MaKey MaKey's with the Sparkfun VID/PID: 0x1B4F/0x2B74 (bootloader) and 0x2B75 (sketch)).


-------------------------------------------------
|            What files are included?           |
-------------------------------------------------

This addon should work with no need to modify files. If you're curious what we've done to the default Arduino files though, read on...

* bootloaders/caterina: This is a slightly modified version of the Caterina bootloader, which is used in the Arduino Leonardo. Defines were modified so the VID and PID were set to SparkFun-specific values (VID: 0x1B4F, PIDs: 0xF100/F101 [get it?!]). To compile this, you'll need to download LUFA, and point the makefile to that directory.

To compile the bootloader for a MaKey MaKey, you must first set F_CPU and PID near the top of the makefile. F_CPU should be 16000000.  PID should be 2B74.

This directory also includes Caterina-makeymakey.hex which is the compiled images of the MaKey MaKey's bootloader. It won't be deleted after running a 'make clean'.

* cores/arduino: This is a mostly unchanged listing of all the core files required by the MaKey MaKey to compile under Arduino. The files with changes are:
	USBCore.cpp: added conditional statement for seting PLLCSR.
	
* variants/makeymakey: This is mostly identical to the Leonardo pins_arduino.h. There is a slight change to the RX and TX LED macros, because the LEDs are biased towards ground, instead of VCC, we had to flop those macros.

* boards.txt: This file is what Arduino looks at when populating its Tools > Board menu.
The "MaKey MaKey" will be added to the Tools > Board menu.

This also defines a few variables such as clock frequency, USB VID and PID, fuses, and bootloader location.

-------------------------------------------------
|         Questions, Comments, Concerns?        |
-------------------------------------------------

Please let us know if this gives you any problems. You can contact our tech support team ([email protected]), or post a comment on the product page (or even contact me by email, I'd be happy to help) and we'll try to get back to you as quickly as possible.

Have fun!
-Jim (jim at sparkfun.com)

About

Personal arduino dump

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published