Mateusz

  • *
  • 808
Re: Revo AuxMag
« Reply #195 on: May 05, 2016, 04:28:19 pm »
I am going to look at SCL and SDA with a logic analyzer and see what I find. Will report back.

I doubt logic analyzer can show the quality of signal, how the peaks look like, you would need oscilloscope.
Interesting reading http://dsscircuits.com/articles/effects-of-varying-i2c-pull-up-resistors not sure if that is any help though...

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #196 on: May 05, 2016, 05:59:33 pm »
You are right.

nuggetz

  • *
  • 32
Re: Revo AuxMag
« Reply #197 on: May 05, 2016, 09:19:42 pm »
I thought that external mag wasn't supported? Yet I see tutorials on external mag.

Mateusz

  • *
  • 808
Re: Revo AuxMag
« Reply #198 on: May 05, 2016, 09:33:39 pm »
I thought that external mag wasn't supported? Yet I see tutorials on external mag.

External Mag is supported with OP GPS in released Librepilot. Other external Mags are supported also but with development version of Librepilot, not available in binaries yet, you would need to compile code yourself ;)

hwh

  • *
  • 1018
Re: Revo AuxMag
« Reply #199 on: May 05, 2016, 10:00:05 pm »
..External Mag is supported with OP GPS in released Librepilot. ...

The supported "OP GPS" he's referring to is NOT the one on sale on eBay and the Chinese sites that's called OP GPS.  That one is a tiny gps without a mag.  The supported one is the "OpenPilot GPS Platinum" AKA the "V9 GPS" and was 36mm square.   It's no longer made.

nuggetz

  • *
  • 32
Re: Revo AuxMag
« Reply #200 on: May 05, 2016, 11:44:24 pm »
Does anyone have a dev version compiled that I can use to run my external M8N Ublox/Mag? I really want to give this a spin.


hwh

  • *
  • 1018
Re: Revo AuxMag
« Reply #201 on: May 06, 2016, 12:14:06 am »
The project doesn't distribute compiled pre-release versions of the software.

The instructions for downloading and compiling the "next" branch are in the developer section of the wiki
https://librepilot.atlassian.net/wiki/display/LPDOC/Developer+Manual

Jhinta

  • ***
  • 198
Re: Revo AuxMag
« Reply #202 on: May 06, 2016, 12:25:22 am »
Does anyone have a problem if i host them? Bins that is. And yes totaly free of ads or payments.

Verstuurd vanaf mijn LG-D855 met Tapatalk
« Last Edit: May 06, 2016, 12:31:00 am by Jhinta »

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #203 on: May 06, 2016, 01:48:33 am »
I connected an oscilloscope to SCL and true enough, the signal is completely distorted.

I have attached the scope captures. Relevant data:

- actual frequency is 364kHz. Should be 400kHz (fast mode)
- Voltage rises only to 2.6V instead of 3.3V
- It takes the signal 1150ns to rise to 2.6V. Is should be less than 300ns

According to the tables previously provided, Rmin = 1kohm and Rmax = 1kohm

Will add the pullup resistors and report.

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #204 on: May 06, 2016, 03:33:31 am »
I added 1.2kohm pullups and there was definite improvement. See attached scope captures.

- signal rise time was reduced to 115ns which is well within specs
- speed is now about 410kHz

On the first try, I had a successful magnetometer calibration and bias and transform values seem reasonable.  Auxmag health indicator is mostly green. This is a first.

I have not lost data telemetry from the auxmag since the modification was done.

Will do more tests and report. Initial results seem promising.


hwh

  • *
  • 1018
Re: Revo AuxMag
« Reply #205 on: May 06, 2016, 03:55:51 am »
Glad to hear it's working for you.  :)

The 10k pull ups on the revo are a bit weak for use with anything other than very short board to board cables.

Out of curiosity, what oscilloscope are you using?  One of the usb ones?   I've been thinking about replacing my big tektronix scope with something a little more portable.

-Hank
 

rsk

  • *
  • 12
Re: Revo AuxMag
« Reply #206 on: May 06, 2016, 04:45:06 am »
I am using a Hantek 6022 usb oscilloscope/logic analyzer. It is really convenient to use and very portable and does its job. There are a number of different models that will allow for sample rates according to your needs.


nuggetz

  • *
  • 32
Re: Revo AuxMag
« Reply #207 on: May 07, 2016, 06:11:53 am »
The project doesn't distribute compiled pre-release versions of the software.

The instructions for downloading and compiling the "next" branch are in the developer section of the wiki
https://librepilot.atlassian.net/wiki/display/LPDOC/Developer+Manual

I followed those instructions and did a git checkout next and then built the package and ran the installer and GCS crashes on startup.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Revo AuxMag
« Reply #208 on: May 07, 2016, 11:24:37 am »
Any error ?

nuggetz

  • *
  • 32
Re: Revo AuxMag
« Reply #209 on: May 07, 2016, 05:36:58 pm »
GCS just crashes. Where would I look for the error? Was hoping there was a log somewhere.