How-to install Ardunio 1.6.7

Install Arduino 1.6.7

Download the Arduino software and install it: https://www.arduino.cc/en/Main/Software

Now click Edit on the menu and then select Preferences.

arduino preferences new

Add this additional board manager URL: http://drazzy.com/package_drazzy.com_index.json

Press ok and restart Arduino.

Now select include library and then manage libraries. A new window will be opened.

manage library - Kopie

Now select the ATTinyCore and press install. Don’t use the damellis core, cause it doesn’t work with the JeeLib we install next.

select at tiny core

Download the JeeLib from https://github.com/jcw/jeelib/archive/master.zip

Select Sketch -> Include library -> Add .ZIP library

add zip library

In the file dialogue select master.zip (the file you have just downloaded).

Now we have to tell the Arduino system which ATtiny we use. Click on Tools in the menu and then on Board. Now select ATtiny x4 Series:

select x4 series

Within the Tools set:

  1. B.O.D.: B.O.D. diabled.
  2. Chips: ATtiny84
  3. Clock: 8 MHz internal
  4. Programmer: USBtinyISP

attiny84 usbtinyisp parameter

 

Installation with Arduino 1.0 IDE

To use the Arduino IDE for the ATTINY 84 (and other small AT processors) the following steps are necessary:

  1.   Download the Arduino tiny core: http://code.google.com/p/arduino-tiny/
  2.   Unzip archiv. Follow the instructions in the README file in tiny/avr

ArdunioSoftwareIDEMore detailed instructions:

Uploading a script with codebender

At the moment I encounter problems with codebender and Windows 10. Please use the Arduino IDE instead.

Codebender is a platform for programming Arduinos online. It has some great advantages over the Arduino IDE, eg. Tiny microcontrollers are directly supported, libraries are pre-installed. If you want to use the Arduino IDE follow this instructions.

This link will open codebender in an new window:
https://codebender.cc/embed/sketch:96042
Connect you programmer and upload the script to the BI1 board. Select the programmer (eg. USBtinyISP), select ATiny84 (8 Mhz, tiny core) and press “Run on Arduino”.

CodebenderWithBI script and parameters

The script reads data from the accelerometer. Depending of the measured motion the vibration motor is speed up or slowed down. (Slow motion = reduce viration motor speed, fast motion = speed up). When the measured motion changes the motion data are send out and can be received by other BI1. In addition you can use a jeenode to receive the data and send them to a PC for further processing.

At the same time this script listen to other body interaction boards which send their motion data to all listening nodes. When the measured motion of other body interaction board are different from the motion measured by this script, the vibration motor is adjusted (speed up or slowed down). So two or more body interaction boards can influence each other and synchronize after some time.

  One thought on “How-to install Ardunio 1.6.7

Leave a comment