aa8mc

  • **
  • 50
I2C MAG on Revo Flexiport
« on: February 12, 2016, 02:21:54 am »
I am trying to set up an I2C Mag with a build from the next branch.  The mag is coupled with a UBLOX GPS.  The whole unit has 2 JST connectors.  The first is 4 wires for the GPS.  The second is 2 for the mag.  I'm assuming that VCC and Ground are the 2 missing wires from the mag because the board is already pulling power from the GPS.  As for the 2 remaining wires, I'm not sure which is RX and which is TX, but I'm assuming they should go the two middle wires of the Flexiport.  Can someone please confirm.  I really don't want to let the smoke out of my shiny new GPS.
F450 Quad Clone
Outrunner1000KV Motors
HobbyWing FlyFun 30A ESCs
1045 Props
Telemetry via OP Link
FlySky FS-i6 transmitter w/ 10 channel mod
Sparky2 Flight controller
HobbyAce UBLOX 6M GPS
Running LibrePilot next branch
MinimOSD
FlySight Spexman FPV Goggles
Floureon 5500mAh LiPos

aa8mc

  • **
  • 50
Re: I2C MAG on Revo Flexiport
« Reply #1 on: February 12, 2016, 03:42:12 am »
Just kidding, looking at the connectors again and I'm thinking that RX and TX are pins 3 and 4 on the Flexi.
F450 Quad Clone
Outrunner1000KV Motors
HobbyWing FlyFun 30A ESCs
1045 Props
Telemetry via OP Link
FlySky FS-i6 transmitter w/ 10 channel mod
Sparky2 Flight controller
HobbyAce UBLOX 6M GPS
Running LibrePilot next branch
MinimOSD
FlySight Spexman FPV Goggles
Floureon 5500mAh LiPos

aa8mc

  • **
  • 50
Re: I2C MAG on Revo Flexiport
« Reply #2 on: February 12, 2016, 04:33:40 am »
Found the answer with a little more google-fu.  Pin 3 is SCL and 4 is SDA.
F450 Quad Clone
Outrunner1000KV Motors
HobbyWing FlyFun 30A ESCs
1045 Props
Telemetry via OP Link
FlySky FS-i6 transmitter w/ 10 channel mod
Sparky2 Flight controller
HobbyAce UBLOX 6M GPS
Running LibrePilot next branch
MinimOSD
FlySight Spexman FPV Goggles
Floureon 5500mAh LiPos

Re: I2C MAG on Revo Flexiport
« Reply #3 on: February 21, 2016, 11:43:51 pm »
Be careful and a note to others reading this:  On a serial connection, you connect Rx on one to Tx on the other.  On I2C communications, you connect SCL to SCL and SDA to SDA.

I hope you got it working.  I fly it all the time.  :)

zukenj

  • ***
  • 202
Re: I2C MAG on Revo Flexiport
« Reply #4 on: February 29, 2016, 03:29:27 pm »
FS-TH9X RC
F450 Clone
Revolution FC
EMAX 2213 935 KV
HK 30A ESC UBEC running BLHeli 14.4
10x4.5 Propellers
DJI Naza clone Ublox M8N GPS

hicky

  • *
  • 3
Re: I2C MAG on Revo Flexiport
« Reply #5 on: March 17, 2016, 12:25:06 pm »
I don't suppose anyone fancies sharing there pre-compiled build with me do they?

I'm all wired up and literally itching to have a play!

Obviously I accept any consequences.

aa8mc

  • **
  • 50
Re: I2C MAG on Revo Flexiport
« Reply #6 on: March 18, 2016, 04:43:53 am »
What OS?
F450 Quad Clone
Outrunner1000KV Motors
HobbyWing FlyFun 30A ESCs
1045 Props
Telemetry via OP Link
FlySky FS-i6 transmitter w/ 10 channel mod
Sparky2 Flight controller
HobbyAce UBLOX 6M GPS
Running LibrePilot next branch
MinimOSD
FlySight Spexman FPV Goggles
Floureon 5500mAh LiPos

kennyevo

  • ***
  • 102
Re: I2C MAG on Revo Flexiport
« Reply #7 on: March 21, 2016, 11:33:18 am »
I'm trying to connect my cheap gps' mag to the revo too (ubloxneo-6m), but the I2C in the system health is orange :S

EDIT: My gps module doesn't have the mag chip on the pcb, damn (the cover says "with compass" -.- )
« Last Edit: March 22, 2016, 05:14:27 pm by kennyevo »

f5soh

  • *****
  • 4572
    • LibrePilot
Re: I2C MAG on Revo Flexiport
« Reply #8 on: March 21, 2016, 11:36:42 am »
Do you apply +5V to board before connecting to USB port ?


Re: I2C MAG on Revo Flexiport
« Reply #9 on: March 28, 2016, 07:33:08 pm »
I had started to add in the extra connector for the flexi port until i read about kennyevo not having a mag chip in the first place, what does the mag chip look like so i can check mine and id also like to have a pre compiled build if its possible to share it for mac os.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: I2C MAG on Revo Flexiport
« Reply #10 on: March 28, 2016, 07:51:31 pm »
Magnetometer chip is the same used on Revolution board:


hwh

  • *
  • 1018
Re: I2C MAG on Revo Flexiport
« Reply #11 on: March 28, 2016, 07:57:30 pm »
@f5soh's picture shows the L883 version, there's also one marked A983.  They both look the same and work.

Re: I2C MAG on Revo Flexiport
« Reply #12 on: March 28, 2016, 08:06:07 pm »
Thank you for the fast responses to that, I have a chip that looks the same but marked L883 2430 but I assume it doesn't make a difference. As for creating the build of Librepilot to allow the external mag is it just as simple as following all the steps laid out here  "https://librepilot.atlassian.net/wiki/display/LPDOC/Windows+Building+and+Packaging" for windows as I have never done anything as in depth as that before but I can follow instructions?