Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baro BMP280 not detect FURYF4OSD #415

Closed
maxgame91 opened this issue Nov 24, 2020 · 27 comments
Closed

baro BMP280 not detect FURYF4OSD #415

maxgame91 opened this issue Nov 24, 2020 · 27 comments

Comments

@maxgame91
Copy link

Hello,

I tried to use an external barometer, a BMP280 on my mamba f405 mk2 so I ha ve for target the FURYF4OSD, but my baro is not detect by the board.

I tried on betaflight 4.2 (need a custom unified target). So wiring is not the problem here.

In the CLI i have nothing when I type "get baro" I have nothing related to a barometer.

Do i need to modified something in the target or somewhere else ? My goal is to use this branch to have an alti limiter

@nerdCopter
Copy link
Member

@Kaiowarez ?

@Kaiowarez
Copy link
Member

Hmm might need to add baro drivers

@maxgame91
Copy link
Author

@Kaiowarez What file I need to modify ? And what I need to add ?

Thanks

@maxgame91
Copy link
Author

Hi guys,

So when I add this line "drivers/barometer/barometer_bmp280.c" like this in the FURY4 target folder,
I got an error when I tried a "make FURYF4OSD" in bash https://imgur.com/a/aDaH9z9

I flash my board with the FURYF4 target but I don't have any osd so it's not really good

Do you have any lead ?

@nerdCopter
Copy link
Member

you'll need a \ at the end of the prior line.

@maxgame91
Copy link
Author

@nerdCopter thanks I can now make my hex file for this target but still nothing on the configurator, I also modify the target.h at line 92 and 93 but don't work.

@nerdCopter
Copy link
Member

@maxgame91 , So you're flashing the local .hex you made and your external Baro 280 is still not seen, correct?
i think the target.h mod implies an internal resource i2cdev_1, but i dont personally know. i would think you'd jsut want to add the driver, then assign the resource to uart in CLI. but i've never done such a thing.
@Kaiowarez may have some ideas.

@maxgame91
Copy link
Author

maxgame91 commented Nov 26, 2020

@nerdCopter You are correct, I have this branch on my computer and make my own .hex and yes my external bmp280 is not seen, even when I add the driver in the "target.mk".

It look like the i2c are define in the right pin but I'm clearly not a dev so maybe I'm wrong

I'm really open to idea yes

@Kaiowarez
Copy link
Member

First you add the drivers on the. Mk file needed \ on it
Then on target.h
Need to confirm i2c is working
Baro i2c device
Baro spi device
Cs pin if needing assignment

@Kaiowarez
Copy link
Member

If it's on a uart make sure it's on either half or full duplex mode..
Need it to go in and out for baro to work

@nerdCopter
Copy link
Member

nerdCopter commented Nov 26, 2020

i only see ESC and GPS as sensor inputs, so maybe we are just not updated enough, 🤷‍♂️
maybe a gps with built in baro is better solution?? i have no clue, so sorry. i never used either.
Kaio is the target guy, but i dont know if this is a target specific issue or not, i think it's more a lack of capability.
EmuFlight was forked from butterflight which was forked from betaflight 3.5.x. if 3.5.x was capable, we should be also.
otherwise, maybe this jsut wont be possible until Emu 1.0.0 ?? 🤷‍♂️

@maxgame91
Copy link
Author

maxgame91 commented Nov 26, 2020

I add the
i2c is working I tried on betaflight 4.2 and my bmp280 was detect
For my board scl and sda are define by this pin :

#define I2C1_SCL                PB6        // SCL pad
#define I2C1_SDA                PB7        // SDA pad

and you lost me at spi and cs pin sorry

@Kaiowarez
Copy link
Member

Kaiowarez commented Dec 3, 2020 via email

@BeauBrewski
Copy link
Collaborator

Has any official/test updates with this driver been made? Got another pilot on the FB page with same problem:

Hi all
I need your help, I have FC mambaF405 and I'm using firmware FURYF4OSD 0.3.4, I installed an external BMP280 sensor but it doesn't detect the barometer, I've already tested it with the latest version of Betaflight and it detects the sensor as a barometer but not in Emuflight, therefore the connections are well made.
Is there any way to enable the BMP280 sensor in Emuflight?

@BeauBrewski
Copy link
Collaborator

And another

hi every one. I have a problem with Flight controller Rush F7 Digital and Emuflight. My FC supports barometer BMP280 but I cant turn it on in Emu. Some one help me please.

@nerdCopter
Copy link
Member

i wonder if @JulioCesarMatias would be interested in this issue?

@JulioCesarMatias
Copy link
Contributor

i wonder if @JulioCesarMatias would be interested in this issue?

yes, when i have time i will dedicate myself to it

@JulioCesarMatias
Copy link
Contributor

#671

is there anyone to test this?

@nerdCopter
Copy link
Member

@BeauBrewski
Copy link
Collaborator

Do I need to make a separate bug fix request for the RUSHBLADEF7 target then?

@BeauBrewski
Copy link
Collaborator

#671

is there anyone to test this?

Hopefully will hear results from one of the guys on FB page.

@BeauBrewski
Copy link
Collaborator

BeauBrewski commented Aug 13, 2021

@JulioCesarMatias Got a response. Baramoter is still not showing up on FURYF4OSD. See attached images (betaflight image included to show working):
image
image

@nerdCopter
Copy link
Member

i cherry-picked code into 0.3.4: please test:
TESTBMP280__EmuFlight_0.3.4_FURYF4OSD_Build_3ec879187.hex.zip

@BeauBrewski
Copy link
Collaborator

That last update got it working!
FB_IMG_1628988712258

@nerdCopter
Copy link
Member

@BeauBrewski , let me know if it works (has fair values) in the air as well, then i can merge to master.

@BeauBrewski
Copy link
Collaborator

I confirm that it is working and give the correct values.
once again thank you very much for the support. 😉✌️👍

@JulioCesarMatias
Copy link
Contributor

problem solved, close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants