inav icon indicating copy to clipboard operation
inav copied to clipboard

No lumenier lux v2 firmware? (stuck on I2C all else works) (dropped)

Open koetjeboe91 opened this issue 9 years ago • 22 comments

Is it correct that there is currently no lux v2 support? had a naze 32 before the lux but that one died causing a crash.

koetjeboe91 avatar Sep 22 '17 16:09 koetjeboe91

We don't have the hardware. If Lumenier will step in and donate something we can test - we can certainly add support for the board.

digitalentity avatar Sep 24 '17 05:09 digitalentity

Hi Koetjeboe91,

I have a micro lux v2 and have a fork of INAV where I included the LUXF4OSD target here: https://github.com/3sr3v3r/inav If you feel adventurous please test! I'm currently on holiday and haven't tested yet. Will create a PR when I'm done testing.

uart3 can be used for I2C and the Led and S6 pads can be used as softserial. Included the updated 'betaflight' soft serial implementation as well (currently a PR under review by jflyper) so that should solve the issue with the PA1 and PA8 pins being on different timers.

3sr3v3r avatar Oct 21 '17 13:10 3sr3v3r

Wil try and test it out wil try to leave some feedback later this week

2017-10-21 15:16 GMT+02:00 3sr3v3r [email protected]:

Hi Koetjeboe91,

I have a micro lux v2 and have a fork of INAV where I included the LUXF4OSD target here: https://github.com/3sr3v3r/inav If you feel adventurous please test! I'm currently on holiday and haven't tested yet. Will create a PR when I'm done testing.

uart3 can be used for I2C and the Led and S6 pads can be used as softserial. Included the updated 'betaflight' soft serial implementation as well (currently a PR under review by jflyper) so that should solve the issue with the PA1 and PA8 pins being on different timers.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/2193#issuecomment-338393794, or mute the thread https://github.com/notifications/unsubscribe-auth/Aeti3Rp90umsiNGpc7f7gK2iNOtc0P89ks5sue68gaJpZM4Pg-WO .

koetjeboe91 avatar Oct 21 '17 13:10 koetjeboe91

Cool. Put a compiled image here: https://github.com/3sr3v3r/LUXF4OSD

3sr3v3r avatar Oct 21 '17 18:10 3sr3v3r

@3sr3v3r please submit a PR into INAV, we'll target it towards 1.9

digitalentity avatar Oct 22 '17 02:10 digitalentity

Have tryed to instal the hex file into the flash of the flight controller. It does flash but wil not boot (solid blue led). tryed to open a serial com to see what the processor is doing but it wont even show a com port. reflashing cleanflight or other software no problem.

koetjeboe91 avatar Oct 22 '17 11:10 koetjeboe91

@koetjeboe91 thanks for the test! Didn't bring my board on holiday so I will look into it when I'm back and when running create a PR.

Can't see an 'obvious' thing wrong at the moment.

3sr3v3r avatar Oct 22 '17 13:10 3sr3v3r

Right... returned home and no problems on on my Lux v2 micro. Created a pull request #2462. Don't have a Lux V2 but after some research it turns out this board is completely different from Lux V2 micro.

Based on F3 a 64pin F3 MCU instead of F4. Could be a nice board for INAV since it has 5 UARTs.

This explains why the LUX V2 micro image wouldn't run on your board!

Can take a look what I can do but can't test since I don't have the board.

3sr3v3r avatar Nov 07 '17 00:11 3sr3v3r

@koetjeboe91 could you test this one? Created a hex for the LUX V2. You should be able to use UART2 for I2C (compass / baro)

https://drive.google.com/drive/folders/1OeatggtOOroBXezK4SOQtUzLdyKvAw_r

3sr3v3r avatar Nov 07 '17 19:11 3sr3v3r

wil try to flash it into the flight controller later this week need to wait for some parts to fix my drone(tricopter). wil also make a drone(quad) for the lux v2 where we can test software and other stuff.

2017-11-07 20:18 GMT+01:00 3sr3v3r [email protected]:

@koetjeboe91 https://github.com/koetjeboe91 could you test this one? Created a hex for the LUX V2. You should be able to use UART2 for I2C (compass / baro)

https://drive.google.com/drive/folders/1OeatggtOOroBXezK4SOQtUzLdyKvAw_r http://url

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

koetjeboe91 avatar Nov 07 '17 19:11 koetjeboe91

oke update tryed to flash the lux v2 with the firmware and IT WORKS (yea). Have not yet tryed to fly because i build a quad frame for it and has not been nice weather outside so I cant tune the drone. But motor spin and sensors looks correct. ps did not used the uarts yet just got the baro in and orderd a new GPS ( https://www.ebay.com/itm/Radiolink-M8N-GPS-Module-Ublox-M8030-for-Naze32-APM-CC3D-SP-F3-Naze32-Flip32-PX4/322725935682?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649 ). wil report back after first flight

Update: Well **** the pas trough for blhelisuite bricked the esc (something the mighty nano can fix I hope so). wanted to change the motor direction for motor's 1 and 4. maybe a bug dont know yet. worst cause is that I need to solder new chips on the ecs no big deal.

update2: yep its a bug in the software flashed cleanflight onto the FC and BLhelisuite works like normal.

koetjeboe91 avatar Nov 19 '17 11:11 koetjeboe91

@koetjeboe91

From your nickname I suspect we don't live that far apart. Lots of koeien here and regen! passhtrough bricked the esc? wow that doesn't sound good! Or were you able to 'revive' the esc by using cleanflight?

will compare the sources between INAV and Cleanflight. Have never touched that part of the code.

3sr3v3r avatar Nov 21 '17 20:11 3sr3v3r

de regen zou morgen minder worden maar ja nederland je weet maar nooit. oke back on topic. Yes I did revived the esc after I flashed cleanflight to the fc and then use the pas trough of blhelisuite. So there might be something wrong with that part of the firmware. Sadly I did not yet reproduced the problem (dont realy want to). So I can't say for 100% sure that it is the firmware.

2017-11-21 21:43 GMT+01:00 3sr3v3r [email protected]:

@koetjeboe91 https://github.com/koetjeboe91

From your nickname I suspect we don't live that far apart. Lots of koeien here and regen! passhtrough bricked the esc? wow that doesn't sound good! Or were you able to 'revive' the esc by using cleanflight?

will compare the sources between INAV and Cleanflight. Have never touched that part of the code.

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

koetjeboe91 avatar Nov 21 '17 21:11 koetjeboe91

Good to hear you were able to revive the ESC's. Put a new build on google drive.

  • ESC timer to to the config that might (or might not) change the BLHeli passthrough.
  • Added drivers for Baro and Compass

If you can test when you have your compass/GPS receiver and it works I can create a pull request with the remark (if still not working) that all has been tested with the exception of BLHeli passthrough. in that case someone else might be able to help.

Which ESC are you using? I can add that as a comment.

3sr3v3r avatar Nov 22 '17 18:11 3sr3v3r

oke today I flown the drone for a hour or 2 without gps and baro (not yet recieved) It flown great no strange things. hope to get the gps and baro next week so I can test that out. when this also works let me know what to test more.

2017-11-22 19:33 GMT+01:00 3sr3v3r [email protected]:

Good to hear you were able to revice the ESC's. I actually didn't change anything from the basic Lux_Race board that I took a startingpoint (same as betaflight and cleanflight).

After you've been able to test the serial ports / I2C port and it works I will create a pull request with the remark that blheli passthrough test wasn't successful (which esc board do you have?)

Could be that I have to create a new build with the compass drivers already included. They seem to be missing in this build.

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

koetjeboe91 avatar Nov 25 '17 10:11 koetjeboe91

@koetjeboe91 So far so good I would say! For good Inav experience requires GPS, Baro and magnetometer.

The radiolink GPS you referred to has a magnetometer build in.

  • GPS can go to any free serial port (and configure this port for ublox GPS)
  • Magnetometer doesn't use serial port but I2C interface. You can connect that to UART2 and not configure anything on the serial ports.

Then the big question is what kind of baro you have. If it's I2C as well you can try to put that into the GPS box and connect to the SDA / SDL lines of the magnetometer. Can be on the same lines since both have a different address and that should work.

3sr3v3r avatar Dec 03 '17 15:12 3sr3v3r

Oke Today I received the gps unit after installing it and setting it up like normalI found that the gps takes a long time to lock. Also the configuration tab does not want to store any sensor data or the magnetometer declination after a reboot it goes back to none for magnetometer (sensor) and 0 for the magnetometer declination. On the Modes tab it does not show GPS home Hold or other gps/baro/magnetometer related stuff. Hope its a small thing. but so far so good right? ps I think the new modes wil show up if the baro is installed because it needs a altitude from the baro. But that brings me back to the I2C problem of not wanting to store the sensor type in the configuration tab.

what kind of software can i use to look into the hex file something like notepad++

2017-12-03 16:18 GMT+01:00 3sr3v3r [email protected]:

@koetjeboe91 https://github.com/koetjeboe91 So far so good I would say! For good Inav experience requires GPS, Baro and magnetometer.

The radiolink GPS you referred to has a magnetometer build in.

  • GPS can go to any free serial port (and configure this port for ublox GPS)
  • Magnetometer doesn't use serial port but I2C interface. You can connect that to UART2 and not configure anything on the serial ports.

Then the big question is what kind of baro you have. If it's I2C as well you can try to put that into the GPS box and connect to the SDA / SDL lines of the magnetometer. Can be on the same lines since both have a different address and that should work.

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

koetjeboe91 avatar Dec 09 '17 19:12 koetjeboe91

@koetjeboe91 Only now I read your response. Did you connect the magnetometer? Normally if the board doesn't detect the magnetometer or baro it indeed will not store values.

Does your GPS unit come with 6 leads?

you could open the hex with a hex editor but it will not be very readable. It's the compiled firmware so you would need to set up a betaflight dev environment and have the source code.

3sr3v3r avatar Dec 17 '17 20:12 3sr3v3r

I wired the gps, baro and magneto meter the same as I did with a Matek f405 and that one does work. If I then try to setup the lux v2 it does not want to work.

ps maybe its handy if we do some of the trouble shooting in dutch over pm or other form of contact.

2017-12-17 21:30 GMT+01:00 3sr3v3r [email protected]:

@koetjeboe91 https://github.com/koetjeboe91 Only now I read your response. Did you connect the magnetometer? Normally if the board doesn't detect the magnetometer or baro it indeed will not store values.

Does your GPS unit come with 6 leads?

you could open the hex with a hex editor but it will not be very readable. It's the compiled firmware so you would need to set up a betaflight dev environment and have the source code.

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

koetjeboe91 avatar Dec 17 '17 20:12 koetjeboe91

@koetjeboe91

Indeed... don't know how to PM on GITHUB but I think I found you on rcgroups. Sent you a PM there. My nick is DevJam.

3sr3v3r avatar Dec 18 '17 09:12 3sr3v3r