Page 1 of 1

Ublox GPS-Red HK boards: How to wire?

Posted: Sun Jan 18, 2015 6:47 pm
by dod22
Hi everyone,

So I've been using this board for about a year now and could never get the GPS functionality to work. I could get signals when i was plugged into the laptop and watching the read outs in the GUI. But when ever i was flying the Pos Hold/RTH had zero effect on the quad.

http://www.hobbyking.com/hobbyking/stor ... odule.html

So i just bought this Ublox unit and changed the baud rate to 57600 but I'm not 100% on how to wire it. I've cut off the connector in the picture and soldered on simple female jumper leads. I wired it presuming the black was ground and just went right from there.

Also what is the other connector coming out of the GPS unit is it the compass?

http://www.ebay.ie/itm/111482740269?ssP ... 1439.l2649

http://i.ebayimg.com/00/s/MTAwMFgxMDAw/ ... V/$_12.JPG


I realize I might not be able to use it with my board and I might need something like a cruis board with an I2C connector board but it was a bit of a hasty ebay purchase.

Thanks

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Mon Jan 19, 2015 12:39 am
by QuadBow
You don't need anything more. Just connect it to serial port 2 and config as follows:

Code: Select all

#define GPS_SERIAL 2         // should be 2 for flyduino v2. It's the serial port number on arduino MEGA
//#define GPS_PROMINI_SERIAL   // Will Autosense if GPS is connected when ardu boots.

// avoid using 115200 baud because with 16MHz arduino the 115200 baudrate have more than 2% speed error (57600 have 0.8% error)
#define GPS_BAUD   38400

/* GPS protocol
 NMEA  - Standard NMEA protocol GGA, GSA and RMC  sentences are needed
 UBLOX - U-Blox binary protocol, use the ublox config file (u-blox-config.ublox.txt) from the source tree
 MTK_BINARY16 and MTK_BINARY19 - MTK3329 chipset based GPS with DIYDrones binary firmware (v1.6 or v1.9)
 With UBLOX and MTK_BINARY you don't have to use GPS_FILTERING in multiwii code !!! */

//#define NMEA
#define UBLOX
Forget the definitions GPS_SERIAL and GPS_BAUD which is recommended by HK - thay all are more or less faulty. Take those mentioned in this post.
That's it!

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Tue Jan 20, 2015 9:21 pm
by dod22
Thanks for that I've changed the my code to match the example to posted but I'm still getting nothing from the GPS.


http://i.imgur.com/rf1S0oE.png

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Tue Jan 20, 2015 9:38 pm
by QuadBow
I notice that catually all variables are at their defaults (zero or 1000). Might it be that you have selected the wrong USB channel?

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Wed Jan 21, 2015 12:05 am
by brewski
dod22 wrote:Hi everyone,

So I've been using this board for about a year now and could never get the GPS functionality to work. I could get signals when i was plugged into the laptop and watching the read outs in the GUI. But when ever i was flying the Pos Hold/RTH had zero effect on the quad.

http://www.hobbyking.com/hobbyking/stor ... odule.html

So i just bought this Ublox unit and changed the baud rate to 57600 but I'm not 100% on how to wire it. I've cut off the connector in the picture and soldered on simple female jumper leads. I wired it presuming the black was ground and just went right from there.

Also what is the other connector coming out of the GPS unit is it the compass?

http://www.ebay.ie/itm/111482740269?ssP ... 1439.l2649

http://i.ebayimg.com/00/s/MTAwMFgxMDAw/ ... V/$_12.JPG


I realize I might not be able to use it with my board and I might need something like a cruis board with an I2C connector board but it was a bit of a hasty ebay purchase.

Thanks

I have a couple of these UBlox 6m with Mag modules. They are made for APM 2.5 so connectors are wired for connection to GPS & I2C mag sockets on these APM boards.
Modules can come preset to 57K and have APM firmware or 9600 with factory default firmware.
To determine the pinouts go to APM 3DR site and you can download connection diagrams as APM is true open source. Just wish I could download a schematic diagram for my Crius AIOP V2 & you have zero chance of getting schematic for HK Multiwii pro :lol:
Once you have pinouts of APM serial port you can then work out which pins to connect to on port2 HK MW Pro. This guide for setting up a Crius AIOP V2 should be valid for your board. It is for MegaPirates but connections are the same for MW. http://www.multi-rotor.co.uk/index.php?topic=1435.0
Unfortunately with the number of boards available for MW no one has written a similar guide.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Thu Jan 22, 2015 12:32 am
by dod22
http://i.imgur.com/nxsO9Bl.png
Thanks for the advice, I might be completely wrong here but when u say pin outs do you mean which wire does what? I opened the case the wires are all labled. But when I have it plugged in and powered on nothing shows in the GUI and the LED on the top of the GPS unit isnt on.

http://imgur.com/qbp6P5G

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Thu Jan 22, 2015 7:38 pm
by QuadBow
It is typical for Hobbyking. They are selling a device, in this case a combo without any manual describing how to connect and how to setup.
There are a lot of documents in the "file" section, however, they steem from users, there is no guarantee that they are right, they are written in different languages, in some cases they are faulty or related to a very special consideration.
In other words: those documents are more or less useless.

You can try to connect the Vcc pin of the GPS device to the Vcc pin of your flight controller, then connect the Gnd pin of the GPS device to the Gnd pin of your flight controller and then connect the Rx pin of the GPS device to the Tx pin of your flight controller (attention it has to be cross-wired!) and the Tx pin of the GPS device to the Rx pin of your flight controller.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Tue Jan 27, 2015 1:10 am
by FengShuiDrone
.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Thu Jan 29, 2015 3:33 pm
by air_n_water
I have the Multiwii Pro From HK with the MTK GPS, using Multiwii 2.3 code and it work fine with that GPS. I also wanted to upgrade to UBLOX NEO 6 and order one that I thought would plug into the Serial 2 and could be configured. I also bought an FTDI card, and downloaded the U-center software. I can connect the UBLOX to the FTDI and see it in the U-center SW. It gets a fix and kicks out What looks like NMEA data. I have it set to Baud 38400.

When hooked to the Multiwii Pro, after uploading a modified sketch with UBLOX defined, I get nothing. I do know that the serial power is 5V and the FTDI I used was 3.3V. Could that be an issue? When I connect the MTK to the FTDI and use a serial terminal program to read the data I get nothing from the MTP GSP.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Tue Mar 03, 2015 4:25 pm
by dod22
Hi air_nd_water have you had any more success? I have an FTDI board that I used to set up a bluetooth board but havent tried plugging the ublox board into it.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Wed Jul 15, 2015 4:54 am
by plantjes
Hi,

A bit late but did you manage to get your GPS working on the red HK board?

I just saw this but have this board working like 1 year...

Benno

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Wed Jul 15, 2015 12:39 pm
by FengShuiDrone
.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Tue Aug 04, 2015 1:51 pm
by air_n_water
I was never able to get the RED HK Multiwii board to see the UBLOX GPS. I gave up and reverted to the old MTK GPS, but the accuracy it terrible. I may try again, since I know the UBLOX is working with the U-center software. Just hooking it up and running baud 57600 with UBLOX did not work.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Wed Aug 05, 2015 9:55 pm
by air_n_water
OK I finally have success on connecting the UBLOX and HK Multiwii Pro FC!!!!! Here is what I had to do. Using Arduino 1.6.3, I setup the sketch for the UBLOX, uncommenting these lines in config.h:

Under Serial Com Speed section
#define SERIAL2_COM_SPEED 38400

Under GPS section
#define GPS_SERIAL 2
#define GPS_BAUD 38400
#define UBLOX

Then I saved that sketch. I opened the Arduino sketch , File - Examples - EEPROM - eeprom_clear and uploaded it to erase all configuration in the FC. Then I opened up my Multiwii Ublox sketch and uploaded it.

Then I took the Copter out and powered it up. Still had no GPS, so powered down and switched the RX/TX wires on FC. Powered up and got 6-7 sats after about 30 seconds. Monitor the deviation in position and it is much better than the MTK and does get those wild jumps that MTK had even after making program mods to solve them. I flew a mission and it was rock steady in about a 7-10 knot wind.

YEAH! Success at last!!! I had done this same thing before without erasing the EEPROM so I think that was the thing that made it work.

Re: Ublox GPS-Red HK boards: How to wire?

Posted: Wed Aug 05, 2015 10:44 pm
by dod22
I tip my hat to you sir :D

I'll give it a go at the weekend and report back