I2C error
Posted: Thu Mar 14, 2013 8:26 pm
i am using Crius MultiWii SE V2.0 for making a QuadcopterX.
Initially, when i connected the board to my computer without the props, and opened the MultiWii config GUI , it was working fine and the GUI showed the sensor readings correctly as i moved and rotated the board.
Then i got this manual -
http://www.robson.fr/wp-content/uploads ... -22-12.pdf
I used the MultiWii 2.1 as well as MultiWii 2.2 source code and made the required changes in the config.h file
#define QUADX
&
#define CRIUS_SE // Crius MultiWii SE
But when i uploaded the code on the board and opened the GUI , it did not show the sensors readings and the I2C error was fluctuating between -32000 to +32000.
Also the blue LED is blinking rapidly.
here is a pic of the GUI after uploading the MultiWii 2.2 code -
I also tried the same with this additional change in the config.h file
/*************************** Internal i2c Pullups ********************************/
/* enable internal I2C pull ups (in most cases it is better to use external pullups) */
#define INTERNAL_I2C_PULLUPS
/**************************************************************************************/
and with this code uploaded , then also the GUI did not show any significant sensor values and the I2C error was moving between -32000 and 32000
( the blue LED still blinking ).
here is the pic of the GUI with this setting
Please help me how with this problem.
Here is the description of the FC -CRIUS MultiWii SE v2.0
The Multiwii SE V2.0 is a gyro/accelerometer based flight controller that is loaded with features. With expandability options and full programmability, this device can control just about any type of aircraft. This is the ideal flight controller for your multi-rotor aircraft.
Features:
• FTDI/UART TTL socket for debug, upload firmware or LCD display
• I2C socket for extend sensor, I2C LCD/OLED display or CRIUS I2c-GPS NAV board
• Separate 3.3V and 5V LDO voltage regulator
• ATMega 328P Microcontroller
• MPU6050 6 axis gyro/accelerometer with Motion Processing Unit
• HMC5883L 3-axis digital magnetometer
• BMP085 digital pressure sensor
• On board logic level converter
Flight mode:
• One of the following basic mode
- Acro
- Level
- Alt Hold
- Head Lock
• Optional mode
- HeadFree (CareFree)
- GPS Hold (Need GPS receiver + I2C-GPS NAV Board)
- GPS Return to home position (Need GPS receiver + I2C-GPS NAV Board)
The receiver that i have used is FUTABA R149DP .
so please help me how can i reduce the I2C errors and get the correct sensors values.
thank you in advance.
Also it would be really helpful if anyone can provide the codes that were previously uploaded in the FC board (the one that was already present in the board before i uploaded the new ones .. .. remember it was working nicely in the starting. ).
thanks a lot in advance.
Initially, when i connected the board to my computer without the props, and opened the MultiWii config GUI , it was working fine and the GUI showed the sensor readings correctly as i moved and rotated the board.
Then i got this manual -
http://www.robson.fr/wp-content/uploads ... -22-12.pdf
I used the MultiWii 2.1 as well as MultiWii 2.2 source code and made the required changes in the config.h file
#define QUADX
&
#define CRIUS_SE // Crius MultiWii SE
But when i uploaded the code on the board and opened the GUI , it did not show the sensors readings and the I2C error was fluctuating between -32000 to +32000.
Also the blue LED is blinking rapidly.
here is a pic of the GUI after uploading the MultiWii 2.2 code -
I also tried the same with this additional change in the config.h file
/*************************** Internal i2c Pullups ********************************/
/* enable internal I2C pull ups (in most cases it is better to use external pullups) */
#define INTERNAL_I2C_PULLUPS
/**************************************************************************************/
and with this code uploaded , then also the GUI did not show any significant sensor values and the I2C error was moving between -32000 and 32000
( the blue LED still blinking ).
here is the pic of the GUI with this setting
Please help me how with this problem.
Here is the description of the FC -CRIUS MultiWii SE v2.0
The Multiwii SE V2.0 is a gyro/accelerometer based flight controller that is loaded with features. With expandability options and full programmability, this device can control just about any type of aircraft. This is the ideal flight controller for your multi-rotor aircraft.
Features:
• FTDI/UART TTL socket for debug, upload firmware or LCD display
• I2C socket for extend sensor, I2C LCD/OLED display or CRIUS I2c-GPS NAV board
• Separate 3.3V and 5V LDO voltage regulator
• ATMega 328P Microcontroller
• MPU6050 6 axis gyro/accelerometer with Motion Processing Unit
• HMC5883L 3-axis digital magnetometer
• BMP085 digital pressure sensor
• On board logic level converter
Flight mode:
• One of the following basic mode
- Acro
- Level
- Alt Hold
- Head Lock
• Optional mode
- HeadFree (CareFree)
- GPS Hold (Need GPS receiver + I2C-GPS NAV Board)
- GPS Return to home position (Need GPS receiver + I2C-GPS NAV Board)
The receiver that i have used is FUTABA R149DP .
so please help me how can i reduce the I2C errors and get the correct sensors values.
thank you in advance.
Also it would be really helpful if anyone can provide the codes that were previously uploaded in the FC board (the one that was already present in the board before i uploaded the new ones .. .. remember it was working nicely in the starting. ).
thanks a lot in advance.