Step 10: Callibrating and Programming (2014)
This step describes how to callibrate your ArduIMU senors (accelerometer, gyroscope and magnetometer) and save these calibrated values to the EPROM memory of the Arduino (Atmel chip). It also describes how to upload Arduino code to the ArduIMU.
Calibrating IMU Sensors and Writing to EPROM
Documentation in progress… (contact Seb for details)
Uploading Arduino Code to ArduIMU
1) Download and install the latest version of Arduino
>> http://arduino.cc/en/Main/Software
2) Download Arduino sketch that reads and sends data
Seb’s GitHub >> https://github.com/SebMadgwick/ArduIMU-Gloves
Comment in/out as required in FlexSensors.cpp:
channel[0] = analogRead(A0);
channel[1] = analogRead(A1);
channel[2] = analogRead(A2);
channel[3] = analogRead(A3);
//channel[4] = analogRead(A6);
//channel[5] = analogRead(A7);
}
3) Program the ArduIMU
– open “ArduIMU_Glove” sketch in Arduino
– connect ArduIMU to computer with FTDI cable
– select “dev/tty” from Tools –> Serial Port menu
– ArduIMU does not show up in the list of Arduino boards to select from, but I find it works to program when you select “Arduino Pro or Pro Mini (5V, 16MHz) w/ATmega 328” from Tools –> Board menu
– upload sketch