Categories
APM 2.6 HMC5983 High Precision Compass External Magnetometer w/Temperature Conpensation

Move to view larger images

APM 2.6 HMC5983 High Precision Compass External Magnetometer w/Temperature Conpensation APM 2.6 HMC5983 High Precision Compass External Magnetometer w/Temperature Conpensation

APM 2.6 HMC5983 High Precision Compass External Magnetometer w/Temperature Conpensation

Price: $9.02
SKU: 102084
0
diggs
Price in points: 90 points
Points: 1 points

Our wholesale prices:

Quantity  5+   20+   50+   100+ 
Price  $9.02   $9.02   $9.02   $9.02 
Description

APM 2.6 HMC5983 High Precision Compass External Magnetometer w/Temperature Conpensation

If you're having trouble with magnetic noise affecting your compass onboard the APM 2.6 board, you may want to switch to an external compass that you can mount further away from noise sources such as motors.

- APM2.6 flight controller external compass magnetic sensor
- High precision
- Plug and plug, with installation hole, easy to mount.

Step-by-step instructions
1) Purchase a HMC5883L magnetometer breakout board. Make sure the 3DR board is set to use 3.3volts (the APM 2.5’s I2C port uses 3.3 volts, not 5 volts). You will have to modify the 3DR board because it is shipped from 3DR with the 5 volt jumper set, as shown below.


2) Looking at the below picture, cut the jumper trace in the middle of the APM 2.5 board. This disables the SDA line to the board’s internal magnetometer, rendering it inert.

 

3) The APM 2.5 I2C connector needs a 4 pin DF13 connector, such as this one. Cut off one and and strip and tin the four wires.
4) Connect the DF13’s 4 wires to the compass breakout board. Note that the wires will not be one to one. Pin 1 on the DF13 connector will not go to pin 1 of the compass board. The standard 3DR cable has one red wire and three black wires. Substitute your wire colors accordingly. Solder the wires as follows:

 

Red wire on end of connector (+3.3v) goes to the VCC (or +3.3v) pad on the compass board (see labels on board for location). This is the wire closest to the interior on the APM 2.5 board.
Wire next to red wire (SCL) goes to the SCL pad on the compass board.
Wire next to wire next to red wire (SDA) goes to the SDA pad on compass board.
Black wire on end of connector (ground) goes to ground pad on compass board. This is the wire closest to the edge of the APM 2.5 board.

5) Mount the compass board on the top plate of your quad. Double-sided foam tape works well for this. The orientation of the board matters. In the picture below, we've mounted the board “components up with pins forward”. Note which direction you mount the board – you will need to modify the software with this orientation, as explained in the next step.

 


6) Modify, compile and load the software for your compass board orientation. You must be able to load software from the Arduino IDE to complete this step. In “APM_Config.h”, you will find a commented out statement like:

 

//#define MAG_ORIENTATION AP_COMPASS_COMPOENTS_DOWN_PINS_FORWARD

For the orientation shown in the picture above, for example, you would add the following statement just below the commented out statement above as follows:

#define MAG_ORIENTATION AP_COMPASS_COMPONENTS_UP_PINS_FORWARD

You can find a list of all possible orientations for the MAG_ORIENTATION flag in the “AP_Compass_HMC5843.h” library, including orientations for both the 3DR and Sparkfun boards.
7) If this is the first time loading software from the IDE, make sure the following statement is uncommented:#define CONFIG_APM_HARDWARE APM_HARDWARE_APM2
8) Save, Compile and Upload the modified software9) Test the compass board and have fun flying with a now stable compass!

 

 

 

Previous: Gopro 2/3 Two-axis Brushless Gimbal Set w/Motor & Gimbal Controller for FPV Aerial Photography DJI Phantom

NextCJMCU Computer USB Mini LED Light Bulb Board w/Switch

Reviews
Write a ReviewPost PhotosPost Videos, and get GoodLuckBuy points!
  Missing info
Posted by Yakup HELVACI on 01/30/2015, 05:44
Involvement:Expert (understands the inner workings) - Ownership:more than 1 month
Price: **
Ease of Use: *
Build Quality: ***
Usefulness: *
Overall Rating: **
Pros:Small and Lightweight
Cons:Has no onboard regulator. If you are apm user no problem but if you have pixhawk i2c channel has +5v. I noticed after askink myself "why it isnt working" Probably it burnt
Other Thoughts:-
Bottomline:-

Discussions

Loading...
122