MW_2.0 working, 2.1 does not.. Anyone here could look at my

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
oterpoter
Posts: 61
Joined: Sat Nov 05, 2011 2:11 am

MW_2.0 working, 2.1 does not.. Anyone here could look at my

Post by oterpoter »

Hi gentlemen!
I have built an Octocopter over a year ago, and have a FC from proflyer.eu (does not exist more..:(), and ODS from MISIO OSD, with a GPS.

I have the latest firmware installed on the OSD, but it requires 2.1 version of MW, and I have not been able to get it to work..
when I upload the sketch, and open the CONF, the acc/gyro/baro/mag goes all crazy on me...
if I upload the 2.0 sketch, it works..
I have tried to look in the code, and as far as my knowledge is concerned, the different sensors etc. are identical, thus the 2.1 sketch should work..

The FC card has the following attributes:
ATmega 2560 -processor
FT232RL - integrated converter for USB - programmer
ITG3200 - gyroscope
BMA180 - accelerometer
BMP180 - barometer
HMC5883 - compass

8x motor output
2x output for camera gimbal servos
8x RC input
1x UART TTL
2x UART 3,3V
1x power source input
1x light LED output (Vbat 1A)
1x output for Buzzer
a few in/out auxiliary for further purposes ...


the GPS is:
MTK chip with 38400 baud and 5Hz refresh rate.

I have uploaded the 2 sketches on my DropBox, so if anyone here has time, and could help me get this up and running I would be a VERY happy man.
I really want to be able to use both the OSD and the GPS with RTH and PosHold etc functionality.

the files are located here.
https://www.dropbox.com/sh/6dq4cacq9g58njs/IWIVXbxS6h

PS. 2.0 is working as far as Baro/Acc/Gyro/Mag is concerned. I havent tested GPS yet..
I am unsure if the GPS should be attached on the OSD card or directly on the FC board. Unfortunately the guy selling me this has stopped answering my emails, after becoming a bit rude and such.
2.1 is the version I got from the guy selling me both the FC and the OSD, but ALAS; when uploading it, and opening CONF, it does not work as expected.. values goes crazy.. impossible to even calibrate ACC.

any help is MUCH appreciated!

best regards
Mathias

oterpoter
Posts: 61
Joined: Sat Nov 05, 2011 2:11 am

MW_2.0 working, 2.1 does not.. Anyone here could look at my

Post by oterpoter »

Noone? Any help is of great importance!
Thx
Ps. This is NO april fools day joke. ;)

tovrin
Posts: 705
Joined: Tue Sep 20, 2011 4:08 pm

Re: MW_2.0 working, 2.1 does not.. Anyone here could look at

Post by tovrin »

did you clear EEPROM before loading new firmware? (clear eeprom is a standard arduino sketch that is in the examples section i believe)

if you disable everything but the gyro (acc/mag/baro/gps) and try to fly it with 2.2 (2.1 if you absolutely have to) what happens?

post a picture of your gui screen, and/or any relevant video.

oterpoter
Posts: 61
Joined: Sat Nov 05, 2011 2:11 am

MW_2.0 working, 2.1 does not.. Anyone here could look at my

Post by oterpoter »

Hi!
I always clear the EEPROM before I load the sketch, so it is not the culprit.
I will put some images of the GUI asap.
Strange how the 2.0 sketch works, and the 2.1 goes bananas. Ans i have uncommented the same boards and all. Must be a silly mistake I am doing..
Thx for replying.
As for 2.2.. i haven't uploaded that sketch yet, since I know that the OSD works with 2.1..i really want the 2.1 to work..

oterpoter
Posts: 61
Joined: Sat Nov 05, 2011 2:11 am

Re: MW_2.0 working, 2.1 does not.. Anyone here could look at

Post by oterpoter »

Today I have tried to upload 2.2 version of MultiWii, but same problem applies here.
I have checked the SENSORS in my working sketch, and compared the I2C values for the sensory boards, and there I could see a difference.
I tried to copy the adress values from the working 2.0 code to the 2.2 code, but to no avail.
returning to the original values, the sensors goes crazy when I start the CONF program.
as can be seen here in this video.
http://www.youtube.com/watch?v=-V7vfO7eUt0



in the SENSORS I tried to change values as seen below, but for the Video I went back to the original values..
all help is much appreciated.
I am totally at loss here..

sensors:

#if !defined(BMA180_ADDRESS)
#define BMA180_ADDRESS 0x40 // original value
//#define BMA180_ADDRESS 0x41
//#define BMA180_ADDRESS 0x80 // Mathias added
//#define BMA180_ADDRESS 0x82

#endif


#if !defined(ITG3200_ADDRESS)
#define ITG3200_ADDRESS 0X68 // origial value
//#define ITG3200_ADDRESS 0X69
//#define ITG3200_ADDRESS 0XD0 // Mathias added
//#define ITG3200_ADDRESS 0XD2

#endif

#if defined(BMP085)
#define BMP085_ADDRESS 0x77 // original value
//#define BMP085_ADDRESS 0xEE // Mathias added

#if defined(HMC5883)

#define HMC58X3_R_CONFA 0
#define HMC58X3_R_CONFB 1
#define HMC58X3_R_MODE 2
#define HMC58X3_X_SELF_TEST_GAUSS (+1.16) //!< X axis level when bias current is applied.
#define HMC58X3_Y_SELF_TEST_GAUSS (+1.16) //!< Y axis level when bias current is applied.
#define HMC58X3_Z_SELF_TEST_GAUSS (+1.08) //!< Y axis level when bias current is applied.
#define SELF_TEST_LOW_LIMIT (243.0/390.0) //!< Low limit when gain is 5.
#define SELF_TEST_HIGH_LIMIT (575.0/390.0) //!< High limit when gain is 5.
#define HMC_POS_BIAS 1
#define HMC_NEG_BIAS 2

#define MAG_ADDRESS 0x1E // original value
#define MAG_DATA_REGISTER 0x03 // original value

//#define MAG_ADDRESS 0x3C // Mathias added
//#define MAG_DATA_REGISTER 0x03 // Mathias added

oterpoter
Posts: 61
Joined: Sat Nov 05, 2011 2:11 am

MW_2.0 working, 2.1 does not.. Anyone here could look at my

Post by oterpoter »

Another update;
After fiddeling around with I2C adresses, i apparently have found some adresses that works for my ACC and GYRO.
I still have a problem with the pitch being -5' after ACC calib, and magnetometer/barometer is still going bananas.
I have made another video showing the GuI
http://youtu.be/cyg3rKbihwI

If anyone can help me get this FC, and OSD and GPS to work, I would be very happy!

Cheers
Mathias

Post Reply