Possible to integrate GY87 in OpenXSensor ?
Moderator: rainer
Possible to integrate GY87 in OpenXSensor ?
Hello,
I just got a bunch of GY87 sensors... With the BMP180 onboard do you think it could be integrated to the project ?
Thanks for all !
Guillaume
I just got a bunch of GY87 sensors... With the BMP180 onboard do you think it could be integrated to the project ?
Thanks for all !
Guillaume
Re: Possible to integrate GY87 in OpenXSensor ?
I just put a new version on github in order to support GY87.
Re: Possible to integrate GY87 in OpenXSensor ?
Hello !
Thank you you have all my respect ! Once I will code as well and as fast as you...
Guillaume
Thank you you have all my respect ! Once I will code as well and as fast as you...
Guillaume
Re: Possible to integrate GY87 in OpenXSensor ?
It was a very quick change.
I did not test it.
If there is a bug, let me know.
I did not test it.
If there is a bug, let me know.
Re: Possible to integrate GY87 in OpenXSensor ?
Hello,
For me there is no bug appart from something strange. When I use a MS5611 I have 0m of relative altitude on startup. If I use a BMP180 or the GY87 I get around -20m offset.
I tried to see in the CPP file but the altitude calculation coefficients seem to be the same for MS5611 and BMP180.
I tried the BMP180 and the GY87 with the adafruit library Adafruit_BMP085.h and I have the good measure : 0m on startup. Any idea ?
Guillaume
For me there is no bug appart from something strange. When I use a MS5611 I have 0m of relative altitude on startup. If I use a BMP180 or the GY87 I get around -20m offset.
I tried to see in the CPP file but the altitude calculation coefficients seem to be the same for MS5611 and BMP180.
I tried the BMP180 and the GY87 with the adafruit library Adafruit_BMP085.h and I have the good measure : 0m on startup. Any idea ?
Guillaume
Re: Possible to integrate GY87 in OpenXSensor ?
Could you try to change one line in file oXs_bmp180.cpp.
There is:
if ((D1 > 0) & (millis() > 1000) ) { // If D1 has been read in a previous loop and if sensor is started since more than 1 sec, then calculate pressure etc...
Can you try:
if ((D1 > 0) & (millis() > 3000) ) { // If D1 has been read in a previous loop and if sensor is started since more than 1 sec, then calculate pressure etc...
So changing 1000 by 3000.
Perhaps it will help.
There is:
if ((D1 > 0) & (millis() > 1000) ) { // If D1 has been read in a previous loop and if sensor is started since more than 1 sec, then calculate pressure etc...
Can you try:
if ((D1 > 0) & (millis() > 3000) ) { // If D1 has been read in a previous loop and if sensor is started since more than 1 sec, then calculate pressure etc...
So changing 1000 by 3000.
Perhaps it will help.
Re: Possible to integrate GY87 in OpenXSensor ?
Hello,
Job done ! No more drift on startup, I think you can integrate it.
Merci !
Guillaume
Job done ! No more drift on startup, I think you can integrate it.
Merci !
Guillaume
Re: Possible to integrate GY87 in OpenXSensor ?
It is not clear for me your concern about the drift on the speed.
Is it the vertical speed (calculated by BMP180) or an airspeed (based on a differential sensor).
For the vertical speed there is normally no reset function. But even if the first value is not zero, the values should trend to zero quite fast (if oXs does not move).
For the airspeed, there is a reset function but there should be no relation at all between airspeed and use of a BMP180.
So airspeed drift could exist even when no BMP180 is used.
Can you explain a little more.
Is it the vertical speed (calculated by BMP180) or an airspeed (based on a differential sensor).
For the vertical speed there is normally no reset function. But even if the first value is not zero, the values should trend to zero quite fast (if oXs does not move).
For the airspeed, there is a reset function but there should be no relation at all between airspeed and use of a BMP180.
So airspeed drift could exist even when no BMP180 is used.
Can you explain a little more.
Re: Possible to integrate GY87 in OpenXSensor ?
Hello,
My mistake I think there is a bad contact on my breadboard. I made better contacts and it's much better. That's why I edited my post
Thanks for all. I should get my Gy86 (the Gy87 was a mistake from the seller) and I'll try it also. For information we are a bunch of modelers who want some telemetry and I'll do it for our little group. We tried to start from zero and found your project !
Guillaume
My mistake I think there is a bad contact on my breadboard. I made better contacts and it's much better. That's why I edited my post
Thanks for all. I should get my Gy86 (the Gy87 was a mistake from the seller) and I'll try it also. For information we are a bunch of modelers who want some telemetry and I'll do it for our little group. We tried to start from zero and found your project !
Guillaume