



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Figure 1 - 3DM -G Package
Using the 3DM-G is quite simple as it supports RS-232 and RS-485 communication protocols. For the Daedalus project an RS-232 interface was used running at a maximum baud rate of 115,200 bps. Communication with the unit is done through a bina ry stream. Using the Rabbit RCM3200 processor, character bytes were written to and read from the 3DM-G individually. A small portion of code for the reading and parsing of an Orientation Vector message is shown below: for(i=0;i<23;i++) { while(serBpeek() == -1); vectors.input[i] = serBgetc(); }if(vectors.input[0] != STAB_VECTORS){return -1;} vectors.MagField[0] = (vectors.input[1]<<8) + vectors.input[2]; vectors.MagField[1] = (vectors.input[3]<<8) + vectors.input[4]; vectors.MagField[2] = (vectors.input[5]<<8) + vectors.input[6]; vectors.Accel[0] = (vectors.input[7]<<8) + vectors.input[8];vectors.Accel[1] = (vectors.input[9]<<8) + vectors.input[10]; vectors.Accel[2] = (vectors.input[11]<<8) + vectors.input[12];
vectors.AngRate[0] = (vectors.input[13]<<8) + vectors.input[14]; vectors.AngRate[1] = (vectors.input[15]<<8) + vectors.input[16]; vectors.AngRate[2] = (vectors.input[17]<<8) + vectors.input[18]; vectors.checksum = (vectors.input[21]<<8) + vectors.input[22]; Other messages, including orientation matrix and euler angles are available and follow this basic format. The 3DM-G can be run in either polled or continuous mode. Also allowed is a mixed mode of continuous data output with polled responses. Currently the Daedalus system is reading and processing both the velocity vectors and Euler angle message at a rate of approximately 30 Hz each.
The 3DM-G is very powerful for both its price and weight range. However it does offer some drawbacks. First and foremost in a project of this nature is the weight. Advertised as 18 grams outside its plastic enclosure, the 3DM-G actually weighs in at approximately 25g. I believe a large portion of this is due to a rather large and overly robust connector for the system. It is a sma ll 4-pin LEMO style connector with a long metal barrel. The corresponding male connector for this connection weighs a hefty 4 grams, so one can only imagine what the female jack weighs. The 3DM-G is also expensive, especially in a IMDL project such as this. I was fortunate to have an advisor kind enough to help fund my project and these sensors were being purchased to be used on other projects. The start-up kit with software and a power/data cable is 1295.00 from MicroStrain. Overall, for this project’s needs and financial capability, the 3DM-G provided an ideal solution to my sensor task.