GY-86 in oXs arduino pro mini 16MHz

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Thu Jan 21, 2021 2:53 am

Hi guys I have difficulties to setup GY-86 to OxS. the same work fine with GY-521!
with GY-86, in serial monitor it says mpu 6050 initializing failed and the message keep looping .
so to make sure if my GY-86 working or not; I scan the device with i2cscaner it find 0x77 and 0x68 address.
only when I disable mpu6050 in oxs "basic config.h" my horus TX shows telemetries of cause not gyro, but ms5811 seems working 0x77 i2c.
but no gyro 0x68.
if I enable mpu 6050 then no telemetry in TX. in serial monitor mpu not initializing error message comes.
then I check mpu6050 with "MPU6050_raw" and "MPU6050_DMP6" sketches the raw works and bring values in serial monitor. DMP6 says MPU6050 initiating fail and press any key to program dmp when I do so, the gyro works fine and it react to the yaw pitch roll movements. screen shots attached

why it is not running in oxs?

any body could help me please !?

Thanks
nesan :P
Attachments
OXSrunning.jpg
(116.2 KiB) Not downloaded yet
MPU6050RAW running.jpg
(100.11 KiB) Not downloaded yet
mpu6050DMP6running.jpg
(89.26 KiB) Not downloaded yet
Last edited by nesan on Thu Jan 21, 2021 2:45 pm, edited 2 times in total.


User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Thu Jan 21, 2021 7:34 am

You should also post both config files as attachment ...

oXs_config_basic.h and oXs_config_advanced.h

br KH

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Thu Jan 21, 2021 2:39 pm

kalle123 wrote:
Thu Jan 21, 2021 7:34 am
You should also post both config files as attachment ...

oXs_config_basic.h and oXs_config_advanced.h

br KH
Hi
I have now attached the config files as you request. Thanks for answer the post!

Nesan :P
Attachments
oXs_config_basic.h
(11.7 KiB) Downloaded 16 times
oXs_config_advanced.h
(16.82 KiB) Downloaded 20 times

User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Fri Jan 22, 2021 10:12 am

Nesan, so, made a short test here. ;)

Image

GY-86 to Arduino Uno.

I skiped the 'voltage things' in your configuration.

You have VOLTAGE YES

// ***** 6.2 - Voltage parameters ***** see oXs_config_advanced.h for additionnal parameters when YES
#define ARDUINO_MEASURES_VOLTAGES YES


Don't set a ref voltage

// ***** 6.1 - Voltage Reference to measure voltages and current *****
//#define USE_INTERNAL_REFERENCE // uncomment this line if you use 1.1 volt internal reference instead of Vcc (voltage divider mst be used to reduce voltages to 1.1 volt max)
//#define USE_EXTERNAL_REFERENCE // uncomment this line if you use an external reference instead of Vcc
//#define REFERENCE_VOLTAGE 4970 // set value in milliVolt; if commented, oXs will use or 1100 (if internal ref is used) or 5000 (if internal ref is not used)

and then define voltage pins

// ***** 6.2 - Voltage parameters *****
// Each of following lines contains 6 parameters, the first value is for VOLT_1, the second for VOLT_2, ... up to the sixth for VOLT_6
#define PIN_VOLTAGE 0 , 1 , 2 , 3 , 6 , 7 // Fill all 6 values; set to 0 up to 7 for analog pins A0 up to A7 ; set the value to 8 for the voltage(s) not to be measured.
#define RESISTOR_TO_GROUND 0 , 0 , 0 , 0 , 0 , 0 // set value to 0 when no divider is used for a voltage; can contains decimals
#define RESISTOR_TO_VOLTAGE 0 , 0 , 0 , 0 , 0 , 0 // set value to 0 when no divider is used for a voltage; can contains decimals
#define OFFSET_VOLTAGE 0 , 0 , 0 , 0 , 0 , 0 // optionnal, can be negative, must be integer, in principe in mv
#define SCALE_VOLTAGE 1 , .008 , 204.6 , 204.6 , 204.6 , .008 // optionnal, can be negative, can have decimals


I used those config files attached and I see normal behavior ..... (Moved the GY-86 a little to see diff. values)

Image

br KH
Attachments
oXs_config_basic.h.txt
(557 Bytes) Downloaded 14 times
oXs_config_advanced.h.txt
(897 Bytes) Downloaded 15 times

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Fri Jan 22, 2021 8:36 pm

HI thanks for your effort to my problem.
I try your config files with no success. in Arduino uno and nano 5v as well.
do I miss any libraries for gy-86? or could it be the pull up resistor issue for i2c bus Arduino 5v gy-86 3v?
do I need to disable sleep mode and activate pass through in gy-86. I do not find any .cpp in the name of GY-86 is that ok in this case?
or could it be defective GY-86. I ordered some it may take months to come.

Nesan


User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Fri Jan 22, 2021 10:13 pm

Nesan, to my knowledge Arduino IDE and oXs ships with all the necessary files. (I am using Arduino IDE1.8.13 and oXs 8.2.15, but it also worked with earlier versions ....)

About your GY-86. I don't have it on the table here, so don't ask me.

The GY-86 is available locally here in Germany (~20€) and if I order one, would be here beginning next week. Would do the tests and if it does not work too, it goes back and I would start to look for other causes.

If this GY-86 does work, then I would blame the #1 GY-86. Then claim the seller of that #1 GY-86.

br - KH

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Fri Jan 22, 2021 10:53 pm

Hi I am thanking your help! as I have ordered from aliexpress few gy-86 + 3.3v Arduino mini pro as well. lets wait until it arrive.
the puzzle is when i run dmp sketch it throw the yaw pitch roll values after the initiating failed sequence.
I will update here once I try with new GY-86.
Thanks for your kind help.

Nesan

User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Sat Jan 23, 2021 7:38 am

nesan wrote:
Thu Jan 21, 2021 2:53 am
"MPU6050_raw" and "MPU6050_DMP6" sketches
Link to those sketches please.

"MPU6050_raw" doesn't say anything to me and "MPU6050_DMP6", I find something, but is that the sketch, you are using?

By the way. why not use GY-63 in combination with GY-521? Has the advantage, that, when one sensor fails, this one can easily be replaced, which is not possible with GY-86 .....

br KH

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Sun Jan 24, 2021 5:56 pm

kalle123 wrote:
Sat Jan 23, 2021 7:38 am
nesan wrote:
Thu Jan 21, 2021 2:53 am
"MPU6050_raw" and "MPU6050_DMP6" sketches
Link to those sketches please.

"MPU6050_raw" doesn't say anything to me and "MPU6050_DMP6", I find something, but is that the sketch, you are using?

By the way. why not use GY-63 in combination with GY-521? Has the advantage, that, when one sensor fails, this one can easily be replaced, which is not possible with GY-86 .....

br KH
Hi Here are the files.
I try to make the OxS compact so that want to use GY-86.

Thanks
nesan :P
Attachments
MPU6050.rar
(58.52 KiB) Downloaded 17 times

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Tue Jan 26, 2021 1:01 pm

Hi today I tried the same GY-86 in 3.3v Arduino mini pro with same result. so pull up resistors are not the issue. still waiting for the new GY-86.
nesan

User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Tue Jan 26, 2021 2:28 pm

kalle123 wrote:
Sat Jan 23, 2021 7:38 am
By the way. why not use GY-63 in combination with GY-521?
I am waiting with you :D

br KH

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Fri Feb 12, 2021 9:15 pm

today after long time waiting I received few GY-86. try with same configuration not working.
I do not find GY-86.cpp, GY-86.h if needed in my OxS .
So if it is the case can any one kindly send me the files plese.
thank you

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Sat Feb 20, 2021 2:59 am

seems like no help..!

User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Sat Feb 20, 2021 7:19 am

Simply I don't know how ...

GY-86 works here and I did not read about issues in other forums about oXs and GY-86.

And here is also nothing to be found.

https://github.com/openXsensor/openXsensor/issues.

cu KH

nesan
Posts: 31
Joined: Thu Nov 09, 2017 2:05 am
Country: -

Re: GY-86 in oXs arduino pro mini 16MHz

Post by nesan » Sun Feb 21, 2021 4:29 pm

kalle123 wrote:
Sat Feb 20, 2021 7:19 am
Simply I don't know how ...

GY-86 works here and I did not read about issues in other forums about oXs and GY-86.

And here is also nothing to be found.

https://github.com/openXsensor/openXsensor/issues.

cu KH
Hi could you share the complete OxS files in rar or zip form. that work for GY-86.
I am limited in knowledge so asking you the complete pack. "if I miss something or version issues"
Thank you
Nesan

User avatar
kalle123
Posts: 861
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: GY-86 in oXs arduino pro mini 16MHz

Post by kalle123 » Mon Feb 22, 2021 7:33 am

Nesan, the general oXs files from here

https://github.com/openXsensor/openXsensor

and the two configuration files from here

https://openrcforums.com/forum/viewtopi ... 73#p152928

cu KH


Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”