Installation with standard Arduino IDE under OSX

This is a reference post. It was written on 2014-02-15 when these versions were current:
Arduino IDE 1.0.5
Sparkiduino 1.0.5.3
Sparki Library 1.0.5.3
OSX 10.9.1

Downloads:
Sparki: arcbotics.com/hosting/
Arduino: arduino.cc/en/Main/Software

It is possible to use the standard Arduino IDE with Sparki. You need to do:

  1. Install the Arduino IDE (link above)
  2. Load and install the Sparki library (link above)
    Installation instructions: arduino.cc/en/Guide/Libraries
  3. Modify 'boards.txt’
    The original file is inside the Sparkiduino app (SparkiDuino.app/Contents/Resources/Java/hardware/arduino/). But you only need to copy these lines:
##############################################################

sparki.name=ArcBotics Sparki
sparki.upload.protocol=avr109
sparki.upload.maximum_size=28672
sparki.upload.speed=57600
sparki.upload.disable_flushing=true
sparki.bootloader.low_fuses=0xff
sparki.bootloader.high_fuses=0xd8
sparki.bootloader.extended_fuses=0xcb
sparki.bootloader.path=caterina
sparki.bootloader.file=Caterina-Leonardo.hex
sparki.bootloader.unlock_bits=0x3F
sparki.bootloader.lock_bits=0x2F
sparki.build.mcu=atmega32u4
sparki.build.f_cpu=16000000L
sparki.build.vid=0x2341
sparki.build.pid=0x8036
sparki.build.core=arduino
sparki.build.variant=leonardo

##############################################################

servotor32.name=ArcBotics Hexy-Servotor32
servotor32.upload.protocol=avr109
servotor32.upload.maximum_size=28672
servotor32.upload.speed=57600
servotor32.upload.disable_flushing=true
servotor32.bootloader.low_fuses=0xff
servotor32.bootloader.high_fuses=0xd8
servotor32.bootloader.extended_fuses=0xcb
servotor32.bootloader.path=caterina
servotor32.bootloader.file=Caterina-Leonardo.hex
servotor32.bootloader.unlock_bits=0x3F
servotor32.bootloader.lock_bits=0x2F
servotor32.build.mcu=atmega32u4
servotor32.build.f_cpu=16000000L
servotor32.build.vid=0x2341
servotor32.build.pid=0x8036
servotor32.build.core=arduino
servotor32.build.variant=leonardo

Paste them above or below the existing text in the original boards.txt of the Arduino IDE (Arduino.app/Contents/Resources/Java/hardware/arduino/).

You can now choose Sparki under Tools/Board in your IDE and program as usual.

Brilliant, simple guide. Thanks.

Just one thing. Link to the install instructions above is to the german version. Here’s the english one: http://arduino.cc/en/Guide/Libraries#.Uv9ljXmnmue

[quote=“Trevor”]
Just one thing. Link to the install instructions above is to the german version. Here’s the english one: http://arduino.cc/en/Guide/Libraries#.Uv9ljXmnmue[/quote]

Ah sorry - fixed it. Thanks!

Very interesting.

I wonder if this will work under Windows as well?

I am interested in trying to use SNAP 4.0 (e.g. Bring your own blocks). I know there is a way for it to link to Arduino boards. wonder if with your mods it will work??

bob

Great how-to! We should be collecting these and saving them for a “Sparki How-to Repository” or something…