inav icon indicating copy to clipboard operation
inav copied to clipboard

RTFQ Omnibus F4 V3 Mag

Open 0higgins0 opened this issue 9 years ago • 40 comments

Can't get the magnetometer to be recognized on omnibus f4 v3. Frsky sbus on uart 6 (sbus, 5v,gnd) and gps on uart 1 are working. Mag to scl and sda will not for me. Any ideas

0higgins0 avatar Oct 05 '17 20:10 0higgins0

try lower i2c_speed and recheck if UART3 is not configured. Also you might trying adding 4.7kOhm pullup resistors for SCL and SDA to 3.3V line. And confirm that hardware is functioning with different FC or Arduino for example

DzikuVx avatar Oct 05 '17 20:10 DzikuVx

@0higgins0 And don't flip scl and sda as you do with a UART. I can confirm that the Omnibus F4 V3 works with iNav 1.7.3 and a magnetometer. Also, is the magnetometer working in the configurator? That's where you want to make sure it works first before over SBUS. Finally, make sure you detect new sensors on your transmitter.

teckel12 avatar Oct 06 '17 16:10 teckel12

Thanks for the response. I don't have the scl and sda flipped, but that's a good point to mention. Without frsky sbus wired or turned on through uart 6, my mag still isn't recognized on inav. Just get the red icon. Tried lower and higher i2c speeds with no luck. However, this is an m8n and mag combo from readytoflyquads that has a 3.3v reg/filter built in. Not sure how that may differ from other setups

0higgins0 avatar Oct 06 '17 17:10 0higgins0

With my RTFQ Omnibus F4 V3 it works. Hope, we are talking about the same FC: https://www.banggood.com/Eachine-Wizard-X220S-FPV-Racer-Customized-Version-Omnibus-F4-V3-Betaflight-3_0_1-Flight-Controller-p-1177121.html?rmmds=myorder Pls note that this FC has a connector J16 at the same place where the Omnibus Pro F4 V2 had connector J10 for SDA,SCL,5V,GND,TX6,RX6. If you connect your magnetometer to J16 you can ruin the FC and/or the magnetometer because J16 on this board has pins for: GND,5V,PWM1,PWM2,PWM3,PWM4. (same order) Don't trust the layout for J16 you can find in the internet! I tested it by controlling the pins against J12,J13,J14 and J15 on the board. So first, what you have to do, is to connect the magnetometer to the connections for SCL/TX3 and SDA/RX3 on the 3pin row at the rear side of the board. Then try to set with the iNAV configurator the hardware for the magnetometer in the Configuration Menu to AUTO and see if it works......

jstremmler avatar Oct 06 '17 17:10 jstremmler

Auto doesn't work either. Tried that many times. Also, my board's scl/sca are on j1 thru-hole locations, labeled as you are describing (scl/tx3, ect.). Again though, that's a good point to bring up for others reading this. Note this board is from readytoflyquads. I ordered it as a flip32 f4 v3 omnibus. Im not affraid to be wrong with my wiring or config. I just want to get it to work and maybe help others having similar issues. Thanks to all .

0higgins0 avatar Oct 06 '17 17:10 0higgins0

So my Omnibus F4 Pro V3 (the one from Banggood-see above) works perfectly.

I connected the GPS to UART6 with 115200 baud and SDA and SCL to UART3. Have a look at the screenshot of my iNAV Configurator: https://www.dropbox.com/s/6ok9fuj4twda2nn/Eachine_OmnibusF4.jpg?dl=0 to see that it works!

jstremmler avatar Oct 07 '17 16:10 jstremmler

Thanks. But now my gps won't even work. Tried all 3 uarts at different baud rates. I had trouble getting the gps to work when I got it, then it suddenly started communicating . Maybe the unit was bad from the start. Going to get another unit to try.

0higgins0 avatar Oct 07 '17 17:10 0higgins0

Shit happens! I crashed a quad some time ago but nothing seemed to be broken (I thought).

But then I recognized that the GPS did not find satellites anymore. Opened the case of the GPS and checked voltages. Everything was ok, then connected another GPS and that one worked! So the GPS was broken in the crash! Btw. the magnetometer worked with the broken GPS....

jstremmler avatar Oct 07 '17 17:10 jstremmler

I suppose if people like us didn't try, nothing would ever advance.

On Oct 7, 2017 1:25 PM, "Dr. Juergen Stremmler" [email protected] wrote:

Shit happens! I crashed a quad some time ago but nothing seemed to be broken (I thought).

But then I recognized that the GPS did not find satellites anymore. Opened the case of the GPS and checked voltages. Everything was ok, then connected another GPS and that one worked! So the GPS was broken in the crash! Btw. the magnetometer worked with the broken GPS....

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/2261#issuecomment-334952066, or mute the thread https://github.com/notifications/unsubscribe-auth/Ac98jBFjqNg_Tlga8OSabipLRyo7R563ks5sp7QZgaJpZM4Pvn9k .

0higgins0 avatar Oct 07 '17 17:10 0higgins0

Happened to me a few times. GPS modules are fragile thingies - once in a while after a crash I have to throw GPS outside a window because it stops working.

digitalentity avatar Oct 08 '17 06:10 digitalentity

I once had a bad GPS module, but it decided to return to China (with my poor 1 day old quad attached). I was glad to see the problematic GPS sensor go, but not so glad it took my newborn quad with it.

teckel12 avatar Oct 08 '17 19:10 teckel12

That does hurt. Fortunately, my gps was purchased as a single item, so I won't have that problem. I just ordered another unit on Amazon, so we'll see how that one goes.

Tried testing my "bad" unit on another board. Didn't work with it either. Again, tx/rx GPS stopped working aside from the mag never working for me.

I'll update when I receive the new gps/mag

On Oct 8, 2017 3:13 PM, "Tim Eckel" [email protected] wrote:

I once had a bad GPS module, but it decided to return to China (with my poor 1 day old quad attached). I was glad to see the problematic GPS sensor go, but not so glad it took my newborn quad with it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/2261#issuecomment-335030780, or mute the thread https://github.com/notifications/unsubscribe-auth/Ac98jFLvHbJJ8NgTaXLKBlLrYDnB0II5ks5sqR7ugaJpZM4Pvn9k .

0higgins0 avatar Oct 08 '17 19:10 0higgins0

Connections:
eachine omnibusf4_2

jstremmler avatar Oct 09 '17 09:10 jstremmler

Ticket seems be be stuck. I'm closing it. If any new data appears feel free to reopen

DzikuVx avatar Nov 21 '17 10:11 DzikuVx

I've been having alot of problems with my GPS/MAG. I've built a 250mm Nighthawk Quad. Omnibus F4 V3 Pro : FrSky X4rBS using SBUS : Matek PDB : OneShot 125 BL Heli ESC's : M8N UBLOX w/MAG, round puck with mast. was listed as the PixHawk GPS.

I used the supplied board connection for the GPS, GPS on UART 6 & MAG on UART 3. 5v supply from board thru the same connector. The GPS showed blue in Configurator after I finally got the port properly set. The MAG showed red. I worked for 2 days looking for a solution. I found a thread about the pull up resistors for the MAG. I installed the pull up resistors in the GPS puck & BAM! GPS & MAG now blue. Calibrated MAG & GPS has good fix w/ 9-13 sats indoors.
I thought i was good to go but now the quad won't ARM. I have re-flashed all three targets with same results. I have a second GPS that I went thru same process : installed = no comm, wired pull up resistors = got comm & calibrated MAG, good fix. BUT wont ARM.

I am new to RC & Quad building. I have quite a bit of tech experience & am a quick study. Although I claim no expertise. I have learned a great deal from the threads I have read here & that has helped tremendously. Thanks in advance for any help here, its very appreciated.

GS-AutoTech avatar Jan 04 '18 10:01 GS-AutoTech

@GS-AutoTech Just so you know, it's something on your end as I have similar builds without a problem (but I've been doing this for a long time).

There's a reason it won't arm. There's lots of safe-guards in place with INAV. Consider it a good thing that you couldn't arm as you probably would have lost your model otherwise.

Anyway, logs and CLI dump would tell why it's not arming. Also, I would make sure you've calibrated everything (more than just mag calibration). Also with the mag, make sure it's orientation is correct.

Really, start to end instructions would be helpful. From ESCs to transmitter. But, there's a lot of different hardware out there so it's difficult to compile. Best look to YouTube for help (Project BlueFalcon [RIP] is a good source).

Good luck!

teckel12 avatar Jan 06 '18 02:01 teckel12

Thanks for the reply. I have some updates. Both the GPS & MAG went red in iNAV. Pulled status from CLI & it says failing on both. So I removed the pull up resistors out. Rechecked = same result. I then wired in my other puck with resistors & then removed resistors, same failing status. Trying to isolate the hardware issue, I wired up a new Omni F7V2 board with puck. Status= failing. So I either got 2 bad pucks out of the box or I smoked them both during my build. In any case I don't blame iNAV.
Every mistake, error and setback is teaching me a lesson. I'd like to thank everyone for all your help.

GS-AutoTech avatar Jan 06 '18 17:01 GS-AutoTech

@GS-AutoTech battery connected?

teckel12 avatar Jan 07 '18 00:01 teckel12

Yes, both battery connected & not. I've tried every combination I could think of.. I ordered new GPS pucks for both my builds. I found that the DJI pucks will do both GPS & MAG functions on one UART. Which I feel.is advantageous, so that's what I ordered. I will keep posting progress. I'm excited in anticipation of getting iNAV up & running. Thanks a bunch for your help

GS-AutoTech avatar Jan 07 '18 23:01 GS-AutoTech

If you would have ordered the recommended GPS from banggood (the one shown in my above picture ) everything would have worked immediately. This GPS even doesn't require the pull up resistors like other GPS's. This GPS is relatively cheap and does not produce any i2C errors with the Omnibus F4 Pro V3. The next one from banggood works as well but requires the pull up resistors: https://www.banggood.com/APM2_6-2_8-GPS-Module-High-Precision-Ublox-NEO-M8N-GPS-With-Electronic-Compass-PIXHAWK-p-1240362.html?rmmds=search&cur_warehouse=CN
Pls note that the pull up resisitors have to be supplied with 3.3V and not with 5V!!! But the shown GPS has as an advantage an internal 3.3.V power supply. So with these GPSs I have managed to install the pull up resistors inside the GPS and power supplied by the GPS. And btw with my Omnibus F4 Pro V3 and the GPS shown in the above picture the GPS works without any battery connected! You just have to plug in the USB cable to get everything to work (GPS, magnetometer, LED_Strip, buzzer, RX)

jstremmler avatar Jan 08 '18 03:01 jstremmler