Welcome to Multi-Rotor UK. Please login or sign up.

Wednesday,July 17, 2019, 03:19:08

Login with username, password and session length

Shoutbox

ched999uk:
09 Jul 2019 19:45:42
May the sun shine and winds be light for BFU#8. Son't forget lots of vids for those of us unable to attend.  :D
Gaza07:
09 Jul 2019 18:10:30
Hope you all have a great day  :beer2:
Andy7:
09 Jul 2019 14:05:28
BFU#8 details locked in for this saturday - see the head of the forum thread for all details.
hoverfly:
05 Jul 2019 21:51:05
Good for genital warts as well......or so I'm told.. :hmm
DarkButterfly:
05 Jul 2019 21:48:24
Just fixed a busted SMA connector on my TBS unity pigtail, it suffered badly in a recent crash and split in two, nothing a touch of the soldering iron couldn't fix  :D
DarkButterfly:
05 Jul 2019 19:44:08
 :D
hoverfly:
05 Jul 2019 15:54:23
Without the pollen they won't produce seeds, :D
Bad Raven:
05 Jul 2019 15:30:17
heat egress??
DarkButterfly:
04 Jul 2019 21:52:42
Just had to clean a load of dust from my fatshark LCDs, why can't they be properly sealed to stop the ingress of dust and pollen. :/
atomiclama:
02 Jul 2019 15:26:23
Mine goggs are fine now they have dried out.  No damage done.
Members
Stats
  • Total Posts: 196281
  • Total Topics: 19758
  • Online Today: 78
  • Online Ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 47
Total: 47

Theme Changer





3d - Printworx

Printing 3d Forum

Crius AIOP V1,V1.1 MegapirateNG V2.7r4 Firmware

Started by Gaza07, Saturday,September 08, 2012, 17:20:59

Previous topic - Next topic

Gaza07

Saturday,September 08, 2012, 17:20:59 Last Edit: Sunday,October 14, 2012, 22:16:15 by Gaza07
Heres a copy of the megapirateng v2.7r4 firmware already set up for the Crius AIOP V1 flight controller and any ublox based Gps module  ~~
I have tested this with the Rctimer cn-06 v1 Gps the firware sets the gps to 115200 baud and it works very well  ~~

[attachurl=1]

Gaza07

Sunday,September 16, 2012, 09:37:59 #1 Last Edit: Sunday,September 16, 2012, 10:04:29 by Gaza07
How to upload the MegapirateNG firmware

1. Create a folder in my documents called Arduino
2. Extract the MegaPirateNG_2.7_R4_AIOP.zip  file top the arduino folder you created
3. Browse to this folder "My Documents\Arduino\MegaPirateNG_2.7_R4_AIOP\libraries" and select all folders and copy them to the libraries folder of the Arduino app and allow it to replace any exisitng files, you must do this step as the megapirate firmware has its own library files and will not compile with the standard arduino libraries,
4. Load the arduino app and click file on the top menu then select sketchbook
like in the picture
[attach=1]

Click where it says arducopter at the end of the sub menus and you than have the megapirateng source code loaded in to arduino, set your com port and board type as Arduino Mega 2560  or Mega ADK and then click upload if you downloaded the file from the forum it is already edit to suit the AIOP and is set for a gps on serial 2 using the ublox protocol which automatically sets up any of the ublox gps modules that have no eeprom  ~~

If you not going to use a gps then you need to set the gps protocol to none look in the picture at the <<<<<<<<<

[attach=2]

Click the upload button and if all goes well you will have the megapirate firmware on your board  ~~

if your connecting a gps then connect vcc/vcc  gnd/gnd  rx/tx  tx/rx

hope this helps I will be creating a full manual

next step is the planner



pheasant_plucker

The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

Sunday,September 16, 2012, 10:27:14 #3 Last Edit: Sunday,September 16, 2012, 10:30:12 by Gaza07
Once you have installed the planner select the com port and 115200bps and click connect, you should see a dialog box appear with stuff loading as the planner reads the firmware from the controller, once your connected
The first step I recommend is to click the terminal button this will take you to the cli (commad line interface) you may have to hit return 3 times to get the prompt,
if it fails to connect to the terminal just re connect and try again it can be a little tempremental at times,

One in the terminal type setup then hit return, the prompt should now say setup, then type erase this will earase the storage area of the 2560 chip and make sure there isnt any data left in there that mat corrupt the megapirate settings, once this has completed then type reset and followthe propts to reset the flight controller, following these steps will make sure the chip has no corrupted data from any previous set ups which I have seen happen, heres a screen shot of the cli

[attach=1]

As can be seen the above command have been used in this capture except earse as this board has already been done  ~~

pheasant_plucker

Firmware uploaded, Dead simple I just plugged the usb straight in to the bare board and followed Gary's steps. After the reset on the terminal I had to update the Planner before it would connect. Now to try the GPS, will that take power from the USB too?

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

Sunday,September 16, 2012, 13:38:22 #5 Last Edit: Sunday,September 16, 2012, 13:40:25 by Gaza07
No your going to need the extended power connecting for that its fine to have that and the usb plugged in together  ~~
It can take a while to get a fix for the first time and the cn-06 v1 doesnt like being indoors mine has never got a fix indoors except for the shed  :shrug:

pheasant_plucker

OK no problem but I think I'll fasten everything down to a piece of ply, Battery, Board, GPS and usb cable to make it easier to move around without damaging the USB port. Do you have a connection diagram for the GPS, which serial port to use?

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

yea good idea to support things the usb is very weak
for the gps use  AIOP / GPS  rx2 / tx     tx2 / rx   5v / 5v   Gnd / Gnd
its exactly the same as the multi wii uses  ~~

pheasant_plucker

Cheers mate, sorry to be a pest. I thought I had read somewhere about using a specific serial port, thanks for confirming that.

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

No worries at all Gerry wait untill you get to the weird way MPNG sets the modes of dear  :rolleyes:
Its quite good that both firmwares use the same serial 2 port and also the same prop layout for quadx but the layout changes on other set ups  ~~



Quote from: pheasant_plucker on Sunday,September 16, 2012, 13:59:03
Cheers mate, sorry to be a pest. I thought I had read somewhere about using a specific serial port, thanks for confirming that.

Gerry

pheasant_plucker

Clear now and thoughtfully the wire colours match on the boards.  :bravo:

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

pheasant_plucker

Quote from: Gaza07 on Sunday,September 16, 2012, 13:38:22
No your going to need the extended power connecting for that its fine to have that and the usb plugged in together  ~~
It can take a while to get a fix for the first time and the cn-06 v1 doesnt like being indoors mine has never got a fix indoors except for the shed  :shrug:


Does this have to be from the extended port or will powering by the ESC BEC do the same job. It seems a bit daft to use two regulators when powering the extended power via a UBEC. My preference would be to use one of the ESC's Becs with no extended power, will this work ok?

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

No the esc bec doesnt power the whole board I think it puts power to the i2c port you could take the 5v volts from there, I havent got the jumper on mine and use the extended power and a ubec, it is a strange way to power things, I have see a picture where some one run a couple of wires under the board from the esc bec pins to the extended port and removed the jumper so the esc bec was powering every thing  ;)

pheasant_plucker

Cheers, I have used the external power input to power the board. the reason I asked is that i did a boob and pluged the power plug in the wrong way round. This results in the magic smoke coming out of the 10uf tantalum smd and shorting it. I have now replaced it with a mini radial tant which fits with no issues and the board fires up ok.
Back to the gps, When it's connected and powered the green light comes on but the mission planner still says "No GPS" is this normal until a lock is obtained or should it detect the GPS serial stream?

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

Look on the status screen its one of the tabs under the HUD look through and you should see gps status 1 which means a gps is present but no fix yet status 2 is a 2d fix and staus 3 is a 3d fix, once you get a fix you will see your position in the planner the green light on the gps is only power as fas as I know  ~~

if you have a gps status 0 your gps isn't being detected

pheasant_plucker

GPS status is 0 in the status Gaz. Everything checks out correctly. Tx to RX and visa versa. External power is on and the jumper removed. Any ideas?

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

There is a bug with the ublox gps modules some times they dont startup unless unplugged and then plugged in again give it a try  ;)
mine has done that bit of a pain but no fix for it

pheasant_plucker

The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

Monday,September 17, 2012, 18:51:49 #18 Last Edit: Monday,September 17, 2012, 18:55:34 by Gaza07
Sorry I mean unplug the power and re plug in  :rolleyes:

My wii install has just done the same thing on first power up nothing no green flashing packet light, unplug and re power it light is now flashing no fix though well not yet  ;)

Gaza07

Hi Gerry not heard back from you so im guessing you got a fix, I just flashed MPNG back on to my AIOP and it wasnt working untill I did the power thing,
the green staus light on the board is the gps led it flashed when its searching and should remain lit when there is a fix  ~~

[attach=1]

pheasant_plucker

I didn't get chance to try it again until late on. Plugged in usb and external power then connected the planner. No GPS connection with solid light on GPS. cycled the power to the external port and still the same. Tried this several times. Any ideas where i'm going wrong?

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

Just a thought but was the usb in when you cycled the power, give it another go but also unplug the usb then cycle the power, although this would indicate the bug is in the firmware and not the gps if it works  :rolleyes:

pheasant_plucker

It's working now!
Just got in from work and decided to power up with the external supply first then plug in the USB and it's on. No fix indoors though, pity.

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

Im afraid the little rctimer gps modules are a bit small and dont perform well in doors :rolleyes:
Pleased to hear you have it working now, the green status light flashing then ?

pheasant_plucker

The one on the AIO labeled "C" is the one on the GPS is solid green.

Gerry
The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gaza07

The one on the Gps is only a power indicator, the one on the AIOP is the Gps staus blinking is searching solid lit is Gps fix  ~~

pheasant_plucker

The man serving me in the canteen said "Look, You can see the face of Jesus in the Margarine" The Asian guy next to me replied "I can't believe it's not Budda"
http://www.namfc.co.uk/pictures/fly.gif

Gardo


Hi guys!

I loaded the MegaPirateNG_2.7_R4_AIOP onto my Crius AIOP - works like a charm. Thanks!
One question though - Does this fw set the Crius Extend board GPS to 1 Hz update interval?

/Peter

Gaza07