Magnetometer connection without IMU shield

Hi all,

 

If I want to connect the magnetometer on APM without IMU shield, where shoud I connect it?

I can see many serial connection that I couldn't recognize what they mean like (PC, PF, PE,PH...)

 

Also someone have a code for HMC6343 magnetometer, please share with me.

 

Thank you

 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    Actually you can connect HMC directly to APM board. I2C manager is on IMU board like Chris said but I2C bus is coming from main CPU. I2C managers are relying on Libraries that we have wrote for APM/IMU shields so if you connect directly to APM or start using APM to your own other needs, you need to write your software.

     

    There are basic softwares for Atmel 328 that communicates with HMC, you can use that as a starting point. Everything else is up to you.

     

    Remember is you connect directly, you need to take care of all pullup resistors, I2C bus initializations and so on..

     

    I2C Bus is on APM board close to GPS port. Look from bottom of APM at end of that 2 row connector there are pin pairs  called as PL7(24) / SCL and anohter pair is SDA / PD4.

     

  • 3D Robotics
    You can't do it. The mag is a I2C device and the I2C bus manager is on the IMU shield
  • Im pretty sure you can't do this.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…