Follows these steps to program KeyChainino with Arduino or an ISP Programmer:

For the ITALIAN version go here.

1) Download and install Arduino-tiny core library:

  • If you haven’t already, download the Arduino software, Install the Arduino software, following the instructions for Windows, Mac OS X or Linux
  • Follow these instructions (from this website http://highlowtech.org/?p=1695) to install Attiny core:In Arduino 1.6.4, you can install the ATtiny support using the built-in boards manager.
    • Open the preferences dialog in the Arduino software.
    • Find the “Additional Boards Manager URLs” field near the bottom of the dialog.
      additional-boards-manager-urls-blank
    • Paste the following URL into the field (use a comma to separate it from any URLs you’ve already added):
      https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
    • Click the OK button to save your updated preferences.
    • Open the boards manager in the “Tools > Board” menu.
      boards-manager-menu
    • Scroll to the bottom of the list; you should see an entry for “ATtiny”.
      boards-manager
    • Click on the ATtiny entry. An install button should appear. Click the install button.
      boards-manager-install
    • The word “installed” should now appear next to the title of the ATtiny entry.
      boards-manager-installed
    • Close the boards manager. You should now see an entry for ATtiny in the “Tools > Board” menu.
      ATtiny Arduino 1.6

2) Turning the Arduino board into a ISP programmer

We’re going to use the Arduino board to program KeyChainino. First, we’ll need to turn the Arduino board into an “in-system programmer” (ISP).

  • Open the ArduinoISP sketch from the examples menu.

Screen Shot 2015-12-04 at 20.40.04

  • Select the board (on Tools > Board menu) and serial port (on Tools > Serial Port) that correspond to your Arduino board.

Screen Shot 2015-12-04 at 20.35.08

  • Upload the ArduinoISP sketch to the Arduino UNO board.

3) Connecting the Arduino board to KeyChainino

We’ll connect the Arduino board to the KeyChainino as shown in the following diagram:

programmingTinysConnection

Programming Connections

4) Burn Bootloader on KeyChainino

Next, we can use the Arduino as an ISP to upload the bootloader to Keychainino:

  • Select “ATtiny” from the Tools > Board menu
  • Select “ATtiny84” from Tools > Processor
  • Select “8 Mhz (internal)” from Tools > Clock

(leave the serial port set to your Arduino board).

Screen Shot 2015-12-04 at 20.36.32

  • Select “Arduino as ISP” from the Tools > Programmer menu.

Screen Shot 2015-12-04 at 20.37.20

  • Be sure that you have removed the battery from KeyChainino.
  • Burn Bootloader from the Tools menu.

Screen Shot 2015-12-04 at 20.38.03

  • You should see “Done burning bootloader.” in the Arduino software and no error messages. Now you can upload the sketch.

5) Upload Sketch to KeyChainino

Next, we can use the Arduino as an ISP to upload a program to Keychainino:

  • Download the Arkanoid Game Sketch from here
  • Open the Game sketch with Arduino IDE
  • Check the Board (ATtiny), Processor (ATtiny84) and Clock (8 Mhz Internal) from the Tools > Board menu
    (leave the serial port set to that of your Arduino board).
  • Select “Arduino as ISP” from the Tools > Programmer menu.
  • Be sure that you have removed the battery from KeyChainino.
  • Upload the sketch.

You should see “Done uploading.” in the Arduino software and no error messages.

Insert the battery on KeyChainino and start to play!

P.S. Repeat only this last step every time you want to upload a different sketch on KeyChainino!

How to program KeyChainino v1 via ISP

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *