I2C GPS with arduino pro mini

Post Reply
Krueger
Posts: 2
Joined: Fri Oct 18, 2013 2:41 pm

I2C GPS with arduino pro mini

Post by Krueger »

Hi there,

actually i am very pleased with multiwii as controller sw for my quad =)! Since humanity is strives for "more" and "better", i want to give my quad an update - G P S =)!
As i have a lot arduinos here i dont want to by a i2c nav board - i want to build my own with a regular arduino. Therefore i have choosen the arduino pro mini (http://arduino.cc/en/Main/ArduinoBoardProMini ; but with mega328p).
For now i have wired everything, as i could get it from EOS code (https://code.google.com/p/i2c-gps-nav/ - thanks dude!!).
The wireing is the following:

For the GPS unit:
Arduino TX0 --> GPS RX
Arduino RX1 <-- GPS TX

Arduino 3.3V (VCC) --> GPS VCC
Arduino GND --> GPS GND

For the i2c to flightcontrol:
Arduino A4 --> FC SDA
Arduino A5 --> FC SCL

Arduino VCC --> FC 3.3V
Arduino GND --> FC GNC

Now i have the problem that the i2c arduino flashes 3 time to init and then just 1 sec on - 1 sec off - 1 sec on ,.. understanding the manual correctly, this should be the signal for a non-existing (or maybe just wrong) communication between the i2c arduino and the gps-module. For my testing, the i2c module is NOT connected to the FC - is this necessary??
The gps module itself works with a u-center and got prepared for 115200 baud and ubx as protocoll. Everything is configured in this matter in the current config file from version 2_2.

My GPS module is a ublox neo-6-m-0-001 (afaik V2 - with eeprom).

Since i tried nearly everything and the result stays the same (not working -.-), i am trying now to get help in this forum =). At first, i thought about writing eos a pm, but i think / hope, that this thread can be used (later) as a manual of solving i2c - nav - board (arduino variant) problems.. =)!!

Cheers,
Krueger

Krueger
Posts: 2
Joined: Fri Oct 18, 2013 2:41 pm

Re: I2C GPS with arduino pro mini

Post by Krueger »

I got it to work,
the solutions are:

1) bug in original latest i2c-gps-nav code; replaced as written in response #2 on https://code.google.com/p/i2c-gps-nav/issues/detail?id=6#c2 the main file
--> solved "no communication possible with ublox neo6 gps module" =)!!

2) problem in communication with i2c-gps-nac simultaneously with serial (bug on my board MultiWii_328P_Flight_Controller ( http://www.hobbyking.com/hobbyking/store/RC_PRODUCT_SEARCH.asp?strSearch=MultiWii+328P+Flight+Controller - THANKY to http://www.rcgroups.com/forums/showpost.php?p=25981828&postcount=274)
--> solved by using direct rx / tx of atmega (BUT! not as written every where else taken TX from (Middle PIN jumper for USB/SPEK / AX2 [same] ) and RX from (LCD_S / AX3 [same]), this does NOT work, i followed the datasheet of the atmega328 and used the check-point on the pcb which is positioned in the middle right of the ftdi chip! - ask for a picture of the wireing - i will upload it on demand!)

3) installed additional bluetooth on fresh created serial line =)! (gnd and vcc(5V) can be taken from anywhere on the pcb ;-)!)

DONE =)! - i hope, that this will help anyone else to solve his problems with i2c-gps =)!

natael
Posts: 33
Joined: Mon Sep 10, 2012 1:21 pm

Re: I2C GPS with arduino pro mini

Post by natael »

Hi,

I'm interested in your diy I2C Nav for my gps neo 6M. I have a custom FC, using a Pro Mini.

Problem is, i'm out of arduino pro mini but i have 2 arduino pro micro lying around !

Can i still follow your tracks ? Are you actually done with this I2C nav ? Are the Pro micro pins the same for this ? I know where are my SDA and SCL on the pro micro (pin 2 & 3)

Thanks

npostma
Posts: 1
Joined: Wed Aug 26, 2015 3:49 pm

Re: I2C GPS with arduino pro mini

Post by npostma »

Sorry to bring this old topic back up. But I have the same problem. My led on the arduino pro mini keeps blinking. Nothing happens.

My setup:

1) Arduino pro mini (5v 16MHZ) --> Neo6 UBLOX (http://www.ebay.com/itm/Ublox-NEO-6M-GP ... 1e9d91366c)

TX --> RX
RX --> TX
VCC --> VCC
GND --> GND

2) I uploaded the I2C_GPS_NAV_V2_2 with the updated source from: https://code.google.com/p/i2c-gps-nav/i ... il?id=6#c2

3) The UBLOX has the config loaded in the u-blox-config.ublox.txt file. Done with the u-center tool.

When I disconnect the arduino and replace it with an ftdi connector, i see the data on baud 115200. So thats seems to be fine. Now my question how do I debug this? How can I see whats wrong or going on?

(I am testing this without an FCB. Adding the HK multiwii 328p board A5 --> SCL, A4 --> SDA, VCC -> VCC, GND --> GND does not make a difference)

Thanks!

Post Reply