Forum 2005-2010 (read only)
Topic: Serial Communication
(Read 410 times)
Apr 25, 2009, 07:10 am
For a senior project, I am trying to get an Arduino Duemilanove to talk to a Microstrain InertiaLink unit (a 3 axis accelerometer and 3 axis gyroscopes). I have a MAX 232 chip installed to insure the two units talk in TTL language. How can I send a command "0xC2" which is the initiating command to prompt the Microstrain unit to output acceleration and angular rates?
After this is successful, I have the following code for RECEIVING data from the Microstrain written in C code when communicating with a PC which needs transformation to be accepted by the Arduino.
pRecord->accelX = FloatFromBytes(&response); //bytes 1..4
pRecord->accelY = FloatFromBytes(&response); //bytes 5..8
pRecord->accelZ = FloatFromBytes(&response); //bytes 9..12
pRecord->angRateX = FloatFromBytes(&response); //bytes 13..16
pRecord->angRateY = FloatFromBytes(&response); //bytes 17..20
pRecord->angRateZ = FloatFromBytes(&response); //bytes 21..24
Any help would be greatly appreciated. Thank you