Naza v1/v2/Lite GPS adapter for APM 2.6 GPS/Neo M8 BY Pawelsky

Started by sundaram, September 05, 2015, 05:48:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sundaram

Original mod is by Pawelsky from RC Groups thread. http://www.rcgroups.com/forums/showthread.php?t=2290346

Was lucky to have got a  DJI Naza Lite from gunu for a very reasonable price. He has accidentally fried his GPS. Though that GPS is also rewired now, reliability was doubtful so wanted to try this MOD.

Ordered three sample cards from

https://oshpark.com/shared_projects/Ehm2RZPY

Components are from various sources. Thanks to Sorav for getting all the parts in one lot. Basically the adapter has a 3.3 voltage regulator and a I2C level shifter. The card hosts a Arduino Pro Mini with firmware for DJI Naza forming interface for other GPS's. Latest firmware available in RC Groups thread.



Components on the card are

1 * TI LM1117 fixed 3.3V LDO regulator in SOT-223 package
2 * Tantalum 10uF/16V capacitors in SMD A package
2 * BSS138 N-MOSFET in SOT-23 package
5 * 10kΩ resitor in 0805 package
1 * 1x13 straight 2.54mm header pins (divided into 1, 1, 2, 2, 2, 5 sections)
1 * 1x4 right angle, low profile 2.54mm header pins (e.g. Adam Tech PH1RB)
1 * 4 pin Molex Picoblade 1.25 mm, right angle connector (MX-53048-0410)
1 * 5 pin Molex Picoblade 1.25 mm, right angle connector (MX-53048-0510)
1 * Arduino Pro Mini 16MHz/5V board (with Sparkfun compatible pinout - A4/A5 pins broken out next to A2/A3)

The components layouts



Utmost care for Polarity of Tantalum is must.

sundaram

If you also want to add a reverse polarity protection (so the board is not fried when the power is connected the wrong way) you'll need and additional P-Channel MOSFET and an enhanced (v0.5) version of the PCB. Details can be found https://oshpark.com/shared_projects/PzZUZTg8.

Other than the extra MOSFET the rest of the board assembly is the same.


Himadri Roy

For once you have tasted flight you will walk the earth with eyes skywards for there you have been and there you will long to return
- Leonardo Da Vinci

https://www.youtube.com/himadrifpv

Himadri Roy

Sir from where did you order the boards? Seeedstudio? What was the cost of the boards?
For once you have tasted flight you will walk the earth with eyes skywards for there you have been and there you will long to return
- Leonardo Da Vinci

https://www.youtube.com/himadrifpv

sundaram

Note the VIN - PMU/FC solder pads at the bottom of the board. You should have these soldered in order for the adapter to work:

when powering with 5V - solder VIN pad with FC pad
when powering with more than 5V - solder VIN pad with PMU pad (note that in this case the Adrduino's built in power regulator will be used to power everything so you must not exceed its voltage and current limitations)



When connecting the adapter it is very important to keep right order of wires. Attached pictures short the proper connection.
Make sure you follow the wire order shown on these pictures as wrong connection will burn your adapter/GPS module.

There are two methods of connecting the adapter to the flight controller
connection via PMU (when you connect to e.g. to Naza v2 with PMU)
direct connection to FC (when you e.g. connect to Naza Lite)

Since the adapter needs to be powered with 5V it is important to understand differences between these two connections:
when connecting via PMU the module is powered with 6V, therefore module's built-in 5V power regulator needs to be used. To do so, the VIN pad at the bottom of the board needs to be soldered together with PMU pad (see first attached picture). Note that in this case the adapter including the GPS module should not draw more than 100mA. Most of the modules will not draw more than that but please check that before connecting (especially when your GPS module uses an actvie antenna).
when connecting directly to FC you are powering the module with FC's 5V so there is no need to use the built in 5V regulator. In this case the VIN solder pad at the bottom of the module shall be connected to FC pad (see second picture) and you don't need to worry so much about the 100mA limitation (but anyway it is a reasonable limit to stay within)
NOTE 1: Make sure you don't connect VIN to both PMU and FC at the same time.
NOTE 2: Remember to change the VIN connection when you change between PMU and FC connecton.

Connecting the GPS and compass to the adapter shall be simple thanks to build in 4 pin (compass) and 5 pin (GPS) connectors.

sundaram

Boards ordered from OSH park Link already posted. Cost of the components please send PM to Sorav as he has ordered all components.

sundaram

Forty five Plus now its become extremely difficult to see small details. Soldering SMDs is next to impossible for me now. Have got a illuminated Magnification stand and soldering has been done under lens.


sundaram

Flashing firmware you can directly flash the pro mini after disconnecting the GPS and Compass using the four pin connector for the FC using a FTDI USB adapter. You need to however Press the reset button on the pro mini when the firmware is beginning to upload.

http://www.rcgroups.com/forums/showpost.php?p=31097392&postcount=320



I am just planning to flash it Using a Chip tool directly on the Promini Arduino chip.

sundaram

Some of the important links from the RC Groups thread of Pawelsky's.

The latest adapter prototype version is 0.4. Below you will find some step by step instructions on how to prepare and use it.

Finding the right GPS/compass module
In order to use this adapter you'll need a Neo 6M or Neo M8N (M8N support added in firmware 20150424) and HMC5883L compass combo. This post collects the ones that have been confirmed working with the adapter:
http://www.rcgroups.com/forums/showp...&postcount=434

GPS module modification (only required for Neo 6M and adapter firmware < 20150424)
This post explains the modification that needs to be done to the GPS module so it can work with the adapter
http://www.rcgroups.com/forums/showp...&postcount=119

GPS/compass module orientation
Once you did the modification you need to find the correct orientation of the module. While the original Naza module has its front marked with an arrow (and this is crucial for the module to operate correctly), the Chinese modules usually don't. This post explains how to solve that problem:
http://www.rcgroups.com/forums/showp...&postcount=134

Connecting to the flight controller
When the module is oriented correctly you need to connect it to your flight controller. This post explains how to do it properly:
http://www.rcgroups.com/forums/showp...&postcount=419
Be very careful - incorrect connection can burn your adapter/GPS module

Understanding the adapter's "language"
The adapter "communicates" with the user using the green status LED. To better understand the blinking patterns please refer to this post:
http://www.rcgroups.com/forums/showp...&postcount=259

Adapter's bootup sequence
http://www.rcgroups.com/forums/showp...&postcount=422

First flight with the adapter
http://www.rcgroups.com/forums/showp...&postcount=430

Firmware upgrade
Should you ever need to update the adapter's firmware, here are the instructions:
http://www.rcgroups.com/forums/showp...&postcount=320

NazaGpsAdapter firmware changelog

--------------------------------------------------
Latest Version 20150611
[FIX] fixed problem with self disabling IOC mode
[FIX] fixed problem with "Update Character Set" message displayed when using MinimOSD

Version 20150424
[NEW] added support for Neo M8N
[NEW] GPS module autodetection (Neo 6M and Neo M8N supported)
[NEW] Neo 6M 3 pin soldering no longer necessary (although recommended)

Version 20150307
initial version of the firmware

sundaram

Used KK flash tool and USBasp Programming tool along with Chip flashing tool. Flashed with latest firmware Version 20150611



Transcripts are as under

Flash the firmware file.

Flashing firmware from file.: C:\-------\NazaGpsAdapter_20150611.hex
D:\----\Quad resources\KK2 Flash Tool\lib\avrdude\windows\avrdude.conf -p m328p -P COM3 -c usbasp -B 8 -e -U flash:w:C:\Users\SANDY\Downloads\NazaGpsAdapter_20150611.hex:i
avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude.exe: Device signature = 0x1e950f
avrdude.exe: erasing chip
avrdude.exe: set SCK frequency to 93750 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file "C:\Users\SANDY\Downloads\NazaGpsAdapter_20150611.hex"
avrdude.exe: writing flash (13194 bytes):
Writing | ################################################## | 100% 8.01s
avrdude.exe: 13194 bytes of flash written
avrdude.exe: verifying flash memory against C:\Users\SANDY\Downloads\NazaGpsAdapter_20150611.hex:
avrdude.exe: load data flash data from input file C:\Users\SANDY\Downloads\NazaGpsAdapter_20150611.hex:
avrdude.exe: input file C:\Users\SANDY\Downloads\NazaGpsAdapter_20150611.hex contains 13194 bytes
avrdude.exe: reading on-chip flash data:
Reading | ################################################## | 100% 7.48s
avrdude.exe: verifying ...
avrdude.exe: 13194 bytes of flash verified
avrdude.exe done.  Thank you.

Its done flashing I hope.

pravesh736


sundaram

Thanks Pravesh. You are my inspiration for all these stuffs.  :hatsoff:

SORAV


sundaram


SORAV

@sundaram sir.

From the logs its clear thet flashing has been done properly.

SORAV

Sir as we already have decided that this naza will be for param & not for you. So,  kindly quote that param is finally getting a super stae quad with M8n gps which is on the way.  ;D ;)

SORAV

Yesterday tested the adapter with M8N gps and only thing that i can say is amazing.......

SORAV

Some more.....

Video coming shortly.

sundaram


sundaram


sundaram


nite

thank you soo much for Explaining in such a nice way. i was scratching my head whole day but u make my day .. thanks alot once again sir.   :thanks: :goodjob:  {:)} :bow:
TBS DISCOVERY, QUANUM VENTURE, EACHINE Q90
ALIEN 6", ZMR250, ROBOCAT 270, QAV280, FLEXYBEE 280,
TURNIGY 9XR Pro, XJT MODULE, FATSHARK HD2, FATSHARK TELEPOTER, FLYSKY FS-T6, TURNIGY 5X,
WLTOYS V686G, TARANTULA X6, SYMA X5C, SYMA X11, EACHINE CG023, EACHINE H8, WLTOYS V911 HELI, HUBSAN X4L

sundaram


nite

TBS DISCOVERY, QUANUM VENTURE, EACHINE Q90
ALIEN 6", ZMR250, ROBOCAT 270, QAV280, FLEXYBEE 280,
TURNIGY 9XR Pro, XJT MODULE, FATSHARK HD2, FATSHARK TELEPOTER, FLYSKY FS-T6, TURNIGY 5X,
WLTOYS V686G, TARANTULA X6, SYMA X5C, SYMA X11, EACHINE CG023, EACHINE H8, WLTOYS V911 HELI, HUBSAN X4L

SORAV

Yes u can use naza with out gps in attitude & manual mode.