i2c GPS and HK 328p FC (USB vs BT)

Post Reply
Nickman1200
Posts: 36
Joined: Sat Jul 06, 2013 10:31 am

i2c GPS and HK 328p FC (USB vs BT)

Post by Nickman1200 »

Hi,

I have a problem that Multiwii config show i2c errors when i have my i2c gps connected and i use USB.
BUT i have no i2c errors when i connect to the FC with Bluetooth instead and EZ-Gui.

This would be OK if it where not for that i need Multiwii config to set inverted YAW and i cant get my computer to use Bluetooth instead of USB.

Where in the code can i hardcode YAW so it´s always inverted ?
Or does anyone have sugestion to get rid of the i2c errors when i run USB.

I'm using lates rev of both MultiWii and Config.

EDIT: more information on my gear.
HK 328p with i2c NAV board (running rev 62) connected to i2C Bus.
And this GPS

Nickman1200
Posts: 36
Joined: Sat Jul 06, 2013 10:31 am

Re: i2c GPS and HK 328p FC (USB vs BT)

Post by Nickman1200 »

Is this the right place to change YAW direction in the code ?

output.cpp

#elif defined( TRI )
servo[5] = (SERVODIR(5, 1) * axisPID[YAW]) + get_middle(5); //REAR

To

#elif defined( TRI )
servo[5] = (SERVODIR(5, 1) * (axisPID[YAW]*-1)) + get_middle(5); //REAR

Nickman1200
Posts: 36
Joined: Sat Jul 06, 2013 10:31 am

Re: i2c GPS and HK 328p FC (USB vs BT)

Post by Nickman1200 »

Looks like it's working :)

r3dskull
Posts: 5
Joined: Fri Aug 16, 2013 3:16 pm

Re: i2c GPS and HK 328p FC (USB vs BT)

Post by r3dskull »

Hey Nick did you connect the I2C-GPS-NAV directly to the 3.3v connector for I2C on the HK board?

Nickman1200
Posts: 36
Joined: Sat Jul 06, 2013 10:31 am

Re: i2c GPS and HK 328p FC (USB vs BT)

Post by Nickman1200 »

r3dskull wrote:Hey Nick did you connect the I2C-GPS-NAV directly to the 3.3v connector for I2C on the HK board?


Yes i connected it directly to the i2c bus on the HK board.
SDA - SDA
SCL - SCL
3,3V - VCC
GND - GND

r3dskull
Posts: 5
Joined: Fri Aug 16, 2013 3:16 pm

Re: i2c GPS and HK 328p FC (USB vs BT)

Post by r3dskull »

Nickman1200 wrote:Yes i connected it directly to the i2c bus on the HK board.
SDA - SDA
SCL - SCL
3,3V - VCC
GND - GND


I'm having the same problem when connected to the USB, but not when connecting a minimOSD and checking the I2C errors in the video transmission, I'm guessing that it may related with the USB powering up the board, I've being thinking to solder some pins directly to the 5v I2C bus just before the voltage translator.

Also I haven't check if we can connect a 5v VCC to the I2C-gps-nav and activate the internal pull-up resistors (I disabled them in the firmware) and don't connect the 3.3v VCC at all.

Post Reply