api.ning.comapi.ning.com/.../aioprossetup.docx · web viewjumper.with this set up you don't...

74
#55 Use those power to ower GPS and rerqd note The only way to get power to the S1-S3 is if you power via the extended power holes as seen in this picture Then your GPS will have power and that way you dont have to use I2c to power it ( YOU MUST REMOVE THE YELLOW PIN) when powering this way and use a UBEC Megapirate ng is Adupilot #108 Power connection to the board

Upload: others

Post on 07-Apr-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

#55

Use those power to ower GPS and rerqd note

The only way to get power to the S1-S3 is if you power via the extended power holes as seen in this picture Then your GPS will have power and that way you dont have to use I2c to power it ( YOU MUST REMOVE THE YELLOW PIN) when powering this way and use a UBEC

Megapirate ng is Adupilot

#108

Power connection to the board

I am sure that most of you are already aware of this:

I have just finished some testing of the Power inputs on the CRIUS AIO PRO, I soldered two pin headers to the "EXTEND POWER IN" connected a power source to them & removed the yellow

Page 2: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

jumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut them off from the rest of the board, also this means that there is power to "S1~S3" port (eight pin serial port).

Book mark #113

Page 3: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut
Page 4: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut
Page 5: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Above by blue lightening Aug 03

Above by crius1.jpg - 89.8 KB - Views: 96 Posted by: FPVSlacker on Aug 07, 2012 03:21 PM

Page 6: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Bove

IMG_1450.jpg - 230.1 KB - Views: 48 Posted by: wingspinner on Aug 04, 2012 04:05 AM

Notice orientation to front is different with aducopter megapirate?? (From post 123)

Page 7: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

#156

Hello Carl1864,

Here some features of the ArduPlaneNG v2.40r2 that I have added Vs the original ArduCopter v2.40 version. These new features are very useful because they can be used in live mode without a PC (or a groundstation) in the field, and I really enjoy to use them during the flights:- Flight plan reset (erasing all the waypoint stored in memory): When you are in MANUAL mode, if you switch ON then OFF the Switch on Ch7 (A14 pin on AIOP), this cleanup the flight plan.- Storing/Adding a new WayPoint: When you are in STABILIZE mode, if you switch ON then OFF the Switch on Ch7 (A14 pin on AIOP), this add the current 3D GPS position (Latitude, Longitude, altitude) as a new Waypoint in the flight plan.

So, in flight if you switch to AUTO mode the plane follows all the recorded 3D WayPoints stored in the flight plan. (you may store up to 100 wp...)If the TP_CL_NAV parameter is set to 1 the full autonomous navigation is running in closed loop if it set to 0 the plane return to home...During an full autonomous nav in AUTO mode, if you switch ON then OFF the Switch on Ch7 (A14 pin on AIOP), the RTL mode is set and the plane return to the HOME automatically in a full autonomous flight. When it reach the HOME position it goes in large circles until you take the control again.

The mode switch channel (MANUAL, STABILIZE, AUTO) is connected on PIN A15 on the AIOP (ch6 for my transmitter)This work very well and I am using these features every time...

Of course, you may also use the AP Mission Planner with a PC through the USB cable or with the Xbee telemetry to create and edit the flight plan stored in memory...

#167 (for gps I think)

MISO(output) read tx - would connect to the flight control board pin labeled rxMOSI(input) read rx - would connect to the flight control board pin labeled txVCC would connect to the flight control board pin labeled to vcc (the voltage needs to be the same 5v or 3.3v)GND would connect to the flight control board pin labeled gnd

you don't need the other pins

remember that tx has to go to rx and vice versa

Bookmark 201

Page 8: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

The Echo 10 port on the board. Would this work with it? If so there's 3 pins on the board and 4 on the sensor. Thanks, JD

http://www.ebay.com/itm/130672026992...84.m1439.l2649

Jul 17, 2012, 12:10 AM #201

Report

Kipkool

Registered User

France, IdF, Paris

Joined Jun 2011

197 Posts

Hi

To use those sonic sensor, you need 4 wires:- Trigger- Echo- VCC - Gnd

So you have to use pin 9 for trigger ( on the PDF doc it's written Trigger for cam, but it's not, it's for ultrasonic ) and 10 for echo.

This one should work yes.

207

Did someone try MegaPirateNG on a quadcopter ?

really not stable for me... trying to tune PIDs...

208in reply

Just lower Rate P to 0.09-0.1

213

Ok, I think I figured out the aux thing...

A12-A15 are aux1-aux2-aux3-aux4, and you set in the gui what you want them to control.

So far so good. So I programmed Aux2 to turn on or off the baro , so I can control acc and baro.

I tried flying with accelerometers on and I didn't have the problem with the throttle.

Page 9: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

I tried one more flight with the the acc off and baro off and the crazy thing is that when I have the quad in a hover, without me touching the gas, the throttle would jump up unaxpectedly... quite annoying...

How would I fix this?could it be caused by me powering the board from a ESC? should I use external power?

232

I am using MultiWii 2.1 & have a HC-SR04 sonar.

Please can anyone tell me if & how to get it working, is it just a case of defining the right parts in the sketch or is there more to it, if possible at all?

242

hat's where you should check... baro is default on.. but the function alt hold is not default on...

to cover the baro.. this will work

Page 10: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

http://i284.photobucket.com/albums/l...uadyellow3.jpg

292 Spektrum connections

Spektrum RX should have the channels printed on it?

-yaw = input from RX - RUDDpitch = input from RX - ELEVroll = input from RX - AILEthrottle= input from RX – THRO

313 Blue tooh and gps connections

LIKE

341

One more plus of MPNG. MWC hit the ESC with 500Hz without any alternative.In MPNG you have choices: 125, for really lame ESCs, 400, that covering almost all, and 490 for

Page 11: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

"nerds"I am using RCTimer 30A ESCs in MPNG at 400Hz without any issue !

351

The config is minimal.

#define PIRATES_SENSOR_BOARD PIRATES_FREEIMU_4

#define SERIAL_PPM ENABLED (or not)if PPM then below ...#define TX_CHANNEL_SET TX_standard (or JR type)

#define CONFIG_BARO AP_BARO_MS5611_I2C

if using GPS then...#define GPS_PROTOCOL GPS_PROTOCOL_NMEA...#define SERIAL2_BAUD 38400 // GPS port

then frame type, your own...#define FRAME_CONFIG QUAD_FRAME#define FRAME_ORIENTATION X_FRAME

All in APM_config.h

373 MPNG support added for AIO Pro

Originally Posted by Sir Alex History:+ Added support for CRIUS ALL IN ONE PRO V1* Bug fixed in OSD code* Changed default Rate P to 0.1 (from 0.18)

That's all.

This is last 2.6 release, Now I'm porting 2.7...

Originally Posted by Sir Alex

Hi all,I'm just released MPNG 2.6 R6 with CRIUS AIO PRO v1 support. Could you please, try this firmware and report back.Download it from: http://code.google.com/p/megapirateng/downloads/list

Just set in APM_Config.h:

Code:

Page 12: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

#define PIRATES_SENSOR_BOARD PIRATES_CRIUS_AIO_PRO_V1

Use regular Arduino IDE 1.0.1 to compile it.

382

Successful Arducopter set up showing config for PIDS

I am using the same DJI F450 frame setup with an APMv2 and I use my modified firmware ArduCopter v2.6xp3 and the flights of my two versions of quads are very similar. The only little difference is in the PID setting about the Stabilize Roll/Pitch Proportionnal parameters which have been reduced from 4.5 to 2.5 for the AIOP Vs the APM2. All the parameters are still the same for the APMv2 and for the AIOP v1...

MPNG 2.6 R6 works fine without board rotation ie same as mWC now

#426

APM set up

.# 435

Bug in setting up GPS

Hello Ben,This is a small residual but a minor bug (thanks for pointed this), so use :

Page 13: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

#define GPS_PROTOCOL GPS_PROTOCOL_AUTOas I am used with my MT3329 Mediatek GPS on my F450 quad_X, the GPS is automatically detected.

#444 Minor bug corrected

Originally Posted by wazzer

Hi BL

I still get these errors,

ArduCopter.cpp: In function 'void init_camera()':ArduCopter.pde:-1: error: 'CH_CAM_PITCH' was not declared in this scopeArduCopter.pde:-1: error: 'CH_CAM_ROLL' was not declared in this scopeArduCopter.cpp: In function 'void camera_stabilization()':ArduCopter.pde:-1: error: 'class Parameters' has no member named 'camera_pitch_gain'ArduCopter.pde:-1: error: 'class Parameters' has no member named 'camera_roll_gain'ArduCopter.pde:-1: error: 'CH_CAM_PITCH' was not declared in this scopeArduCopter.pde:-1: error: 'CH_CAM_ROLL' was not declared in this scope

Ben

Hello Ben,This minor bug is now corrected, so the current release is now:ArduCopterNG v2.7 R1a

______________________________________________________________

462 Blue lighteningsetup on ARdu 2.7

475

RTH Setup

During first FPV tests RTH resulted too slow: about 3m/s - More than 3 minutes to return home from 600m...batteries could go off before coming home.Following EOSbandi wiki I changed in GPS.ino NAV_SPEED_MAX from 300 to 500 and now quad is returning home pretty faster at 5m/s. About 2 minutes to return home from 600m...even against some wind!

Luciano

499 GPS settings

Congrats that you have the NG working with GPS.

Page 14: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

I've NG2.7a installed but can't get my GPS (CN-06) working.

In Ublox I've set baudrate 115200 / Measument Period 100ms / 10.00 Hz Measument Freq / 2 cycles / 5.00 Hz Navigation Freq.

What do I have to change in ArduinoSketch?The Baud rate for NG is 38400bps. (115200bps is for MWC)

_________________________________________________________

505 GPS in code

Ublox I've set baudrate 115200 / Measument Period 100ms / 10.00 Hz Measument Freq / 2 cycles / 5.00 Hz Navigation Freq.

my APM_Config

#define GPS_PROTOCOL GPS_PROTOCOL_NMEA/*GPS_PROTOCOL_NONE without GPSGPS_PROTOCOL_NMEAGPS_PROTOCOL_SIRFGPS_PROTOCOL_UBLOXGPS_PROTOCOL_IMUGPS_PROTOCOL_MTKGPS_PROTOCOL_HILGPS_PROTOCOL_MTK16GPS_PROTOCOL_AUTO auto select GPSGPS_PROTOCOL_UBLOX_I2CGPS_PROTOCOL_BLACKVORTEX*/

#define SERIAL0_BAUD 115200 // Console port #define SERIAL2_BAUD 115200 // GPS port#define SERIAL3_BAUD 57600 // Telemetry (MAVLINK) port

Page 15: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

How to power board with BEC Remove yellow jumper. Post 509

#528

MPNG vs AP use MPNG for the AIOP board

MPNG - is almost same code with original ArduCopter except hardware drivers. APM has separate ATMEGA for processing RC Inputs, we have all in one solution...Most of sensors on APM2 is connected via SPI interface, we uses I2C for all sensors (it's most important difference). APM supports some sonars from Maxbotix, we use cheap sonar DYP-ME007... We doesn't have dataflash logging.All features like RTH, PosHold, Missions etc... supported by MPNG software.

540

Originally Posted by nebstress Can You use PPM-SUM Rx with this?

If so would it be possible to PPM-SUM from Throttle (pin A8)?

Thank you.In the MPNG PPM-SUM works on A8 pin by default, just enable it in APM_Config.h

564

PPm Sum enabled for tx

Please can anyone help me, it is probably something simple but I am new to MP & have been trying to do this all night but just keep getting errors when compiling.

This is the 'untouched' code, I want to enable PPM-SUM & need "TX_set2" channel assignment.

Code:// RC configuration// Uncomment if you uses PPM Sum signal from receiver#define SERIAL_PPM DISABLED

Page 16: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

#define TX_CHANNEL_SET TX_mwi/*

TX_set1//Graupner/Spektrum

PITCH,YAW,THROTTLE,ROLL,AUX1,AUX2,CAMPITCH,CAMROLLTX_standard //standard PPM

layout Robbe/Hitec/SanwaROLL,PITCH,THROTTLE,YAW,MODE,AUX2,CAMPITCH,CAMROLLTX_set2 //some

Hitec/Sanwa/othersPITCH,ROLL,THROTTLE,YAW,AUX1,AUX2,CAMPITCH,CAMROLL

TX_mwi //MultiWii layoutROLL,THROTTLE,PITCH,YAW,AUX1,AUX2,CAMPITCH,CAMROLL*/

Thank you in advance.

612

Quote:

Originally Posted by bluelightning (#610)Hello,May be someone can help me... I have just received the Crius CN-06 GPS to do testing on the AIOP v1So, I have followed the setup procedure explained in the paper "CRIUS ALL IN ONE PRO v1.3.pdf".

1. I have installed the u-blox center 7.0,2. connected the CN-06 GPS to a FTDI cable3. and then set the connection to the u-center at 9600 bauds rate

The FTDI cable seems connected as shown in the green icon at the top left, BUT unfortunatelly there is NO DATAS In/out from the GPS as shown in the communication icon at the bottom right of the u-center.So, I am not able to set the good parameters for 115200 bauds and 10 Hz rate

see attached the screen copy and the connection diagram of my GPS to the FTDI cable... May be I have done something wrong here ?

Thanks for your inputMine does the same, you need to power cycle(turn it off & on), when you have set the correct Com port & Baud simply unplug & replug the USB.(The default Baud is 9'600bps)

615

Hello nebstress,

Ok, finaly I got the GPS working with the u-center

Page 17: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

I have cycled a lot of time the baudrate (from 9600 to 115200) then suddently the connection has been set ok for 9600 bauds... stange.. but it works now.So I have been able to change the setup with the u-center

See attached.

next step is to test it in flight on the ArduPlaneNG v2.x...

Thanks for your help Attached Thumbnails

Page 18: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

618

You can use the gps at 115200 in megapirate just edit the the define for the port speeds

#define SERIAL0_BAUD 115200 // Console port #define SERIAL2_BAUD 115200 // GPS port < change this#define SERIAL3_BAUD 57600 // Telemetry (MAVLINK) port

My fmp-04 runs at 155200 with megapirate with no problems

630

Page 19: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Hello nebstress,

I have tested now on ArduPlaneNG 2.x and the Crius CN-06 GPS works great at115200 Bauds, here the working setup:

#define GPS_PROTOCOL GPS_PROTOCOL_NMEA#define SERIAL2_BAUD 115200 // setup for the CRIUS CN-06 Ublox GPSsee the photo attached, I get a solid GPS lock signal. Attached Thumbnails

639

How to Configure the Crius AIOP Extend Board GPS

Just got my Crius AIOP Extend Board a few days ago and got around to configuring it last night. Unfortunately, the on-board GPS ships in the default, as shipped from uBlox, configuration which is actually setup for automobiles and doesn't work very well for aerial vehicles. That's the bad news.

The good news it has the awesome LEA-6H uBlox chipset which has considerably better performance than MediaTek GPS and you'll be really happy once you get it reconfigured. If you just use it at the as shipped 9600 baud, 1hz update, automobile averaging mode you might as well stick with the old MediaTek because it probably will actually work better than the un-reconfigured uBlox on loiter,

Page 20: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

etc..

Download the following stuff:1. The uBlox configuration utility from http://www.u-blox.com/images/Support...up-6.2.0.0.zip

2. The Ardupilot configuration file that puts the LEA6H into high performance aerial vehicle mode, 38400 baud, 4hz update rate (maybe 5, can't remember), no averaging, etc. etc.- http://code.google.com/p/ardupilot-m...ate%253Dclosed

After that it's pretty simple. Using the AIOP cable the purple wire goes to GND on the adapter, Orange goes to 3v/5v (I've found 3v works even though the board expects 5v), Yellow to TX, and Green to RX. By stripping the wires back about 10mm I was able to slip them into the end of an extension cable on the end of a FTDI/USB adapter (photo below) to provide a temporary solution.

Once you've made the connections, download and install the U-center software from uBlox and run it. Select the Com port that your FTDI/USB adapter is attached to and set the baud rate to 9600.

Once it's connected check if it's working by going to View/Binary Console. You should see activity. If not, check your wiring, com port, and baud rate.

To finish the job, go to Tools/GPS configuration, and select the file you just downloaded. Check the "Store configuration..." box and click on "File >>> GPS". Because we are running at 9600 baud it will fail midway through when it reconfigures the baud rate to 38,400. Set the com speed to 38,400 and run it again.

When complete, go to Receiver>> Action>> then click Save Config - all done. Disconnect everything and you are good to go.

To use it for MegaPirates change the GPS definition in the configuration file to the uBlox GPS and also check that the GPS baud rate is 38400. Recompile and run it. I don't know what is required for multi-wii but I assume it can support uBlox binary mode and not just NMEA mode.

It's an amazing GPS. I could get a solid 3D fix inside my house on the bottom storry of a two story house with a thick spanish style tile roof.

BTW, just a note any update rate better than about 3-4 per second appears not to make much difference in performance as long as the GPS doesn't do any averaging of the position fixes and just feeds them directly to the serial port. That's the major configuration option that makes all the difference. Turns out the tried and true MediaTek apparently does this averaging (apparently called automotive mode) and that causes some of the issues we see with loiter and other position hold related modes. One of these days I'll check the configuration on my Media Teks and determine if this can be reconfigured.

I hope this helps folks. Please let me know if I've made any mistakes and I'll correct them.

Page 21: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Cheers,

WingSpinner

Page 22: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

646 (See following that negates this answer to post

Quote:

Originally Posted by Jeppie @ joekel

Page 23: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Where -which tab- could I find "AP_GPS_BlackVortex.cpp" in de MegaCopterNG2.7-code?(I searched at every page -opened with Arduino-, but couldn't find it)Its a file in your libraries dir!

c:\........\arduino-1.0.1\libraries\AP_GPS\

AP_GPS_BlackVortex.cpp >> you can open this file with Wordpad and edit it..

remove;Quote:

const prog_char AP_GPS_BLACKVORTEX::_ublox_init_string[] PROGMEM ="$PUBX,40,gga,0,1,0,0,0,0*7B\r\n" // GGA on at one per fix"$PUBX,40,vtg,0,1,0,0,0,0*7F\r\n" // VTG on at one per fix"$PUBX,40,rmc,0,0,0,0,0,0*67\r\n" // RMC off (XXX suppress other message types?)""; Replace;Quote:

const prog_char AP_GPS_BLACKVORTEX::_ublox_init_string[] PROGMEM ="$PUBX,40,GGA,0,1,0,0,0,0*5B\r\n" // GGA on at one per fix"$PUBX,40,VTG,0,1,0,0,0,0*5F\r\n" // VTG on at one per fix"$PUBX,40,RMC,0,0,0,0,0,0*47\r\n" // RMC off "$PUBX,40,GSA,0,0,0,0,0,0*4E\r\n" // GSA off "$PUBX,40,GSV,0,0,0,0,0,0*59\r\n" // GSV off "$PUBX,40,GLL,0,0,0,0,0,0*5C\r\n" // GLL off ""; And save.

Reopen arduino and uploud too your copter 651

Quote:

Originally Posted by Jeppie @joekel (and nebstress)Thank you so much for the fast reply and the solution to connect GPS (CN-06) to the Crius PRO board under MegaCopterNG2.7.In MegaPlanner I get the message GPS_fix now.I'm so HAPPYMPNG does not require any code modifications. Just select GPS_UBLOX driver and it will configure GPS receiver automatically!

MPNG 2.7 R3 released!

668

Page 24: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Thought that this thread was for CRIUS ALL IN ONE PRO v1.0 Multi Rotor Flight Controller for megapirate & Multiwii not other controllers, there is a thread for black vortex. People are getting confused enough with parts on multiwii and megapirate

Alex on trying the code last night I tried setting GPS from

#define GPS_PROTOCOL GPS_PROTOCOL_NONE

to

GPS_PROTOCOL_UBLOX <<< Select this for UBLOX LEA-6 (CRIUS GPS boards and others)

and it does not find my GPS that is on the CRIUS Extend Board...

If I reset the code back to GPS_PROTOCOL_AUTO auto select GPS

it finds it 1st time!!

is the GPS_PROTOCOL_UBLOX <<< Select this for UBLOX LEA-6 (CRIUS GPS just for UBox LEA-6 ?

669Thank you Sir Alex

MPNG 2.7 R3 works for me with the Extend Board on default settings!

I set:#define GPS_PROTOCOL GPS_PROTOCOL_NONEto#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX

Its the first time I have had GPS working with MegaPirate on this FC

690

Originally Posted by wazzer Hi Guys

I have just compiled and loaded MPNG 2.7r3 onto my AIOP board

I have loaded APM Planner 1.1.97 mav 1.0

I set ALL the baud rates while compiling MPNG to 115200 and i set comport 1 to 115200

I set the APM planner to com1 and 115200 but i still cant connect to my board

Page 25: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

So what have i missed?

Thanks guys

BenYou don't need to change any of the Bauds in the firmware.

When connecting to PC check which COM port it is using (look in 'Device Manager'-'Ports(COM & LPT)' if unsure) & just set Mission Planner to that Com Port & click Connect.

AND 692

The COM Port is on your PC, you open the COM Port to connect the CRIUS AIOP to the Mission Planner. (You don't need to do anything in the firmware for this).Once you have connected the CRIUS AIOP to your PC your need to find out which COM Port it is on, you can do this by going to "Device Manager" then "Ports(COM & LPT)", when you know the correct COM Port you set that in the Mission Planner & click 'Connect'.

If you are using the latest MegaPirateNG '2.7 R3' you don't need to do anything to the GPS module, it needs to have its default settings.As long as your GPS module has its default settings then you just need to change:

#define GPS_PROTOCOL GPS_PROTOCOL_NONEto#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX

698

Quote:

Originally Posted by Sir Alex Strange... I'm recheck Config messages sent to UBLOX, it enables only UBX output protocol (and NMEA and UBX for input)@Sir Alex

Did some test with the "GPS_PROTOCOL_UBLOX" and i found a bug in the UBLOX_SET_BINARY string, i think.Quote:

#define UBLOX_SET_BINARY "$PUBX,41,1,0003,0001,38400,0*26\n\265\142\006\001 \003\000\001\006\001\022\117" Change to;Quote:

Page 26: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

#define UBLOX_SET_BINARY "$PUBX,41,1,0003,0001,38400,0*26\r\n\265\142\006\001\003\000\001\006\001\022\117" There was no Carriage Return at the end of the PUBX command, like in the manual;Quote:

Message Structure:"$PUBX,41,portId,inProto,outProto,baudrate,autobau ding*cs<CR><LF>" Now the default RCtimer U-blox NEO-6M GPS module works with MegaPirateNG '2.7 R3' in #define GPS_PROTOCOL GPS_PROTOCOL_UBLOX

699Hmmm.... why my UBLOX works well (on the BlackVortex board), maybe it's UBLOX firmware issue.But ok, I will add \r to next MPNG, thank you!

703

I power my CRIUS AIOP from the 'Extend Power In' so can get power from the S1~S3 port as well:

705

Hi all, just a small note, not seen it mentioned so far but do remember the voltage you put into the external power connector will be the same at the serial port.12V into the board 12V out of the serial port power pins. think the ublox GPS has a reg on board, some others may not.Sorry if this has been mentioned before, better safe than sorry don't you think!716

Yep Ubec is the way to go but remember to remove the yellow jumper when powering this way

Page 27: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

734

Powering CRIUS AIOP

Quote:

Originally Posted by wongtukul hi all..

I am newbie, andI still confuse about how to power this aio pro board from esc...

is the power come from only one esc, and the rest escs just connect the signal wire ?, or i can connect all the three esc cable (5v, grnd, signal) ?

note :Because at quadrino board i cannot power from all escs, just one esc, and the rest is just connect the signal wire to board..You can connect all the ESC's (GND,5v,SIG) with no problem!

Just remember that you wont get power to the 'S1~S3' port from the ESC's, to power 'S1~S3' port you must remove 'Yellow Jumper' & connect power (UBEC) to 'Extend Power In' connection. (this is also how you power CRIUS Extend Board) 749

my ALT / Baro Sensor is not working on MPNG 2.7R3 - has someone the the same problem?Have you set the Baro to 'AP_BARO_MS5611_I2C' in APM_Config.h?

it should look like this:Code:// Select your baro sensor#define CONFIG_BARO AP_BARO_MS5611_I2C/*

AP_BARO_BMP085_PIRATESAP_BARO_MS5611_I2C

756

Always delete libraries folder in Arduino before upgrade MPNG FW! And use fresh copy from new distro.Also you can select sketch path in Arduino Preferences and it will use libraries in it (rather default folder in Arduino itself)

733

Originally Posted by wongtukul Hi.. Nebtress

If i powered the board from outside power with bec 5 volt, do i have to remove and isolate

Page 28: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

all red escs pin ?No just remove Yellow jumper.

777

Originally Posted by wongtukul

Hii all..

I am planning to use megapirate, so can aio pro do all automatic escs calibration like arducopter does http://code.google.com/p/arducopter/wiki/AC2_ESC, If can't..., how is the method for all escs calibration at once ?

Yes, you can use this calibration method with Crius AIOP with MPNG.

797

Only DYP-ME007 sonar is supported.

801

Hi,

I found the reason why the Buzzer / Piezo on MPNG was not working although the PIEZO pin in defines.h was set to 32 and Piezo was enabled in APM_Config.h:

#define COPTER_LEDS ENABLED has to be enabled!

875 Setup set up

Hi everyone I have just uploaded the new release of megapirate 2.7 R4 and here are my settings (and its rock solid with these) Video to follow later today.

Frame: F450Motor's: 2212-850KVEsc's: RcTimer ESC 20A FlashedProps: 102 X 4.5 glass fiber reinforced

Page 29: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

880

Did you read the "README" file in the MegaPirate.zip, always a good place to start

The only tab you need to touch is the "APM_Config.h", you need to define the Board, Multi type, x or + config, Baro & GPS. Did you read the "README" file in the MegaPirate.zip, always a good place to start

The only tab you need to touch is the "APM_Config.h", you need to define the Board, Multi type, x or + config, Baro & GPS.

929

It should always be TX to RX & RX toTX.

TX=Transmit Data(or Data out)RX=Receive Data(or Data in)

So you need TX to transmit the data to RX, you can't have TX to TX other wise the data wont go anywhere.

932

Page 30: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

936

How to configure return to land

http://code.google.com/p/arducopter/wiki/AC2_RTLMode

From Multicopter UK re UBLOX gps

This problem has already been solved, there is code already in MegaPirate 2.7 R3 that sets the correct settings on boot up you just have to define UBLOX:

Quote

All you need to do is open MPNG 2.7 R3 with Arduino go to AMP_Config.h & change:

#define GPS_PROTOCOL GPS_PROTOCOL_NONEto#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX

RE U Blox firm ware etc

Comment by David Ankers on March 14, 2010 at 7:54pm

Some thing we found with these modules that I'd like to pass on.

Sometimes the first ever fix can seems to take a while, this is normal but can be worrying. Leave the GPS on for 15 minutes so it can populate its sat location table (it downloads some data and apparently this can take 15 minutes).

Watch out for some of the newer firmware, it can half the update rate. I believe these are a 4Hz unit with version 5 and with version 6 they become a 2Hz unit. This could be old information, please check.

If using with a Quad, use the u-center to set the filter type to pedestrian, this way position hold is a little better.

Page 31: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Tutorial on UBLOX GPS is here

http://diydrones.com/profiles/blogs/tutorial-programming-your?xg_source=activity

http://www.multikopter.co.uk/forum/index.php/topic/379-tutorial-programming-your-ublox-gps-module/

http://www.multikopter.co.uk/forum/index.php/topic/381-gps-testing-in-u-center/

932

See below to help with connecting the receiver. I drew it up as it's easier than explaining it. You can power the board using the BEC off an esc by simply plugging that complete connector into the 2-12 servo pins area or pull the yellow jumper and solder direct power to board (on the back it's marked). I think it's max 12v though... not sure a fully charged 3s qualifies. You can always use a 6v UBEC too. Connecting it either way.

933

The normal connector (same at both ends) will carry the power as well as a signal to your RX the others are just for signal, it doesn't matter what colour they are (the FC & your RX can't tell what colour they are )

938

Power distribution

Yes, as long as the Plush 40A can handle a 4s battery (which I think it does). I'm pretty sure all BEC's provide 5volts. Whether its a 10amp ESC or a 50amp. A lot of UBEC's give the option for 6volts. But both 5volts and 6volts work for the AIO.

The big thing is to pull the jumper if you are going to wire voltage in through the solder points near pin 33. If you powering through the motor pins (off an ESC) then leave the yellow jumper on.

And yes, power goes into the AIO and then gets distributed to your receiver from there.

976

Loading megapirate with Arduino

First you configure the FW in Arduino 1.0.1, ie: select/define: controller (CRIUS_AIOP_PRO_V1), Sensors (Baro MS5611_I2C), Frame type(ie:Quad), orientation(ie:X), etc then compile it & upload to the CRIUS AIOP.

What you have read does not apply to MegaPirate but to Arducopter, so in MegaPirate you do all the configuring (frame type, frame orientation, etc) in Arduino 1.0.1 not the Mission Planner.Then you connect to the Mission Planner & go to the "Configuration" tab & then do the "Radio

Page 32: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Calibration, Flight Modes, Hardware Options(setup/Cal. Mag), Arducopter Level(Acc. Calibration), etc.

978

When using Arduino 1.0.1 you only need to go to the "APM_Config.h" tab then first define:Code:// Select your sensor board#define PIRATES_SENSOR_BOARD PIRATES_CRIUS_AIO_PRO_V1

Then:Code:// Select your baro sensor#define CONFIG_BARO AP_BARO_MS5611_I2C

Then(If using uBlox GPS Module):Code:// For BlackVortex, just set PIRATES_SENSOR_BOARD as PIRATES_BLACKVORTEX, GPS will be selected automatically#define GPS_PROTOCOL GPS_PROTOCOL_UBLOX

Then Frame (If different than Quad X) :Code:#define FRAME_CONFIG QUAD_FRAME/*

QUAD_FRAMETRI_FRAMEHEXA_FRAMEY6_FRAMEOCTA_FRAMEOCTA_QUAD_FRAMEHELI_FRAME

*/

#define FRAME_ORIENTATION X_FRAME/*

PLUS_FRAMEX_FRAMEV_FRAME

*/

987

Quick question, when loading MPNG via Arduino how do you save the changes made to the APM_Config - just save? Does it need a new name so as not to overwrite anything?

Cheers guys.the best way to do it is just save as Crius and your done!! that way you have the original there all the time...you just have to load the Crius one then

1027

Page 33: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Configuring tx channels

next question: Where can I configure my Transitter Channels to make function happen as:Position HoldAltitude HoldReturn to Launch positionetc.etc.

I can see my transmitter in APM configuration switch channels 5-9 but I do not see where I can attribute the above function to the channels ?Should be also in APM_config.h ? Cannot find it...

You go to the "Configuration" tab then "Flight Modes" in the Mission Planner.

The modes are controlled on one channel.If you want all six modes you need to setup a three position switch & another switch to make the three position switch do six positions, example setting this up for eR9x HERE (Unless you have a six position switch already)

Check link below for spektrun dx set up

http://diydrones.com/profiles/blogs/setting-up-6-different-flight-modes-on-a-spektrum-dx7-using-just

1035 GPS wiring

Page 34: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

1038 Config compass in Mission Planner

The CRIUS AIOP does have a Compass, in the Mission planner go to “Configuration” tab then “Hardware Options”, there you activate the compass & calibrate it, you can even set your declination yourself if you don’t want to rely on ‘Auto Dec’.

Bookmark 1052

1102

Hello Dimitrios,Here the good method for the mode switch and the use of the FailSafe for RTL. I recall that you must use a receiver which is able to handle the RSSI signal to activate a true FailSafe state on the receiver outputs.With the mission planner you need to check that :- the Radio 8 channel is used to switch the MODE (MANUAL, STABILIZE, AUTO) during a normal flight,- the Radio 7 channel is used to CLEANUP the FPL (in MANUAL mode) memory and SAVE_WP (in STABILIZE mode) or RTL (in AUTO mode).

The transmitter use a 3 buttons switch to select the modes in normal flight. There are 3 positions :- Flight Mode 6 corresponding to MANUAL (High position with PWM 1750 +),

Page 35: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

- Flight Mode 3 corresponding to STABILIZE (Middle position with PWM 1361-1490),- Flight Mode 1 corresponding to AUTO (Low position with PWM 0 -1230).

So, how to set the RTL mode when the receiver is switched to the FailSafe mode ?You need simply to set the Flight Mode 2 (PWM 1231-1360) to RTL with the mission planner and with the ATV of your transmitter set the max value of the Switch mode so as to have a PWM between 1231 - 1360 µs (i.e. 1300 µs) and then store on your receiver this position as the FAILSAFE value.So, then the transmitter is switched off the receiver set the channel 8 to this Flight Mode 2 corresponding to RTL... Don't forget to set back the ATV of your switch mode of your transmitter to the max value corresponding to the Flight Mode 1 (AUTO mode).

That's All and this work very well with true Failsafe receivers...

see attached the screen of the mission planner radio configuration for the ArduPlaneNG v2.x R5

1109

Originally Posted by CHRISGA1A Hi all, I'm trying to figure out the flight modes. I haven't tried them all but here is what I found. Most are self explanatory but I'll include them anyway.

Acro - Stable, but wont auto level. No attitude limitStabilize - Auto levelLoiter - Position hold with altitude holdPos Hold - Position hold without altitude holdLand - Auto landRTL - Return to launch

Page 36: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Simple mode - Head free, or carefreeAlt Hold - Altitude hold

Anyone know what these do?

OF_LOITER ?Toy ?

Please change if anyone feels this is incorrect, or add if I missed any modes.(I haven't viewed APM for almost 24 long hours)

Thanks,Chris

1162

Originally Posted by turbodriven I know that not many of you here are running Multiwii 2.1 but this question might transfer over to MP?

Assuming I have GPS, what is the best way to setup Aux 1 and Aux 2 switches with three position switches for each. I'm not sure I fully understand all the options yet. Currently I just have Level, Baro and Mag to activate together on one position of one 3 way switch and then "ARM" on a single position of another 3 way switch (technically, at this point they could both just be on 2 position switches). GPS antenna is in the mail so I don't have that option just yet but will soon.

___________SWITCH 1__________SWITCH 2________pos1__pos2__pos3__pos1__pos2__pos3Level _________________XBaro _________________XMag__________________XARM____________________________________XGPSHOMEGPSHOLDPASSTHRU??HEADFREE??HEADADJ??It is really down to personal preference which functions you want to use and on which switches.

With your switch setup at the moment you have a choice between Acro mode or Height + Head lock.

I have mine set:

Page 37: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Two position switch with "L"=Acro "H"=Self Level

Three Position switch with "L"=0 "M"=Height Hold "H"=Position Hold

Two Position switch with "L"=0 "H"=Return to Home

1168 GPS

Originally Posted by mamut

HiI am using your configuration/ArduPlaneNG2xR5 except the GPS -is LEA6 on the extention board.I am getting HDOP 9999 and no satellite, so no fix, can you help me?

Hello Mamut,

I haven't yet tested the extension board, but I think that it will work too. I recommend you to test this method for the startup of the AIOP + GPS:1) connect the power to the AIOP,2) when the led B is fix while led A and C are off (after that the initialisation is complete),3) disconnect the power to the AIOP and then reconnect the power.

I think that you will be able to see the yellow (ready) and green (GPS lock) leds on.I have noticed that the Crius NEO-6 GPS need to be prepowered first so as to get the lock... May be

Page 38: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

this is due to the lithium battery which is not able to keep the startup info for long time...I hope this will help you

1181 Bluetooth connections

The Bluetooth module goes to the FTDI port:

1187

Bluetooth app for Android / MPNG

Originally Posted by turbodriven I have my bluetooth module working beautifully with my Multiwii 2.1. I can change any/all PID and other settings from my Samsung Galaxy SII phone very easily.

But is there a purpose for the module if running Megapirate? There are no android programs supporting MP is there?There is an android app!

The main use for the BT module in both MegaPirate & MultiWii is to be able to use the GUI's without the USB cable.Especially useful considering how easily the USB connector breaks .

Bookmark 1202

Page 39: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Originally Posted by helidex

Cant find this Android app, what's it called and where will I find It??.

"Copter GCS" Where do you normally find Android App's

Or HERE for free

1282

Shield GPS and Flight controller

Originally Posted by DanielCV

Look at this topic here: http://www.rcgroups.com/forums/showthread.php?t=1714506Maybe that helps - doing similar for FC as is done here for the GPS ?

That is a Groundplane for the GPS, I have a tiny one in the Box that covers my FC because the GPS antenna is just on top of the box not far from the FC:

Page 40: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut
Page 41: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Bookmark 1228

1241

Hello,on AIOP now made my first flight test hovering at 20cm-50cm altitude and all seems working fine, except I needed to use a little bit of trim on my transmitter, but this seems to be normal beside the board should hover automatically in stabilize mode, but maybe level was not made 100% correct.

My next questions:

1- As I want to try flying in simple mode, compass module should be activated and calibrated. But as I still have no Bluetooth module, I can only connect with USB, and so moving the copter in compass calibrate mode is very difficult as the USB cable is short and can only do small eight with it - I did it and it wrote a new value into compass calibration... is that enough to fly in simple mode ?

2- Where can I connect LEDs to be always ON, when Lipo is connected ?

3- I am not sure if battery monitor option from Arducopter works in AIOP ? How to configure it in APM PLanner ?

1. That should be OK, have you check in the Mission Planner to see if the compass responds as it should do ie N=N, S=S, etc?

2. You can connect LEDS anywhere behind the Lipo, usually anywhere on the power train/distribution is fine.

Bookmark 1279

1321 Sonar

Originally Posted by careyer Hi, i have a few questions regarding:

Sonar:Can anymone explain how to connect the DYP-ME007 sonar to AIOP in order to make it work with MPNG? Thanks in advance!

OSD:There have been several questions about support/compatabilty for the MinimOSD - none of them was answered. Is anyone successfully using MinimOSD with AIOP? Can you please share your knowledge?

Current SensorIs there a way to use a current sensor with AIOP?

Sonar is pretty easy, the pins are labeld on the back of the ESC rail. Trigger to trigger, echo to echo Then vcc to + and ground to - on the ESC rail. Enable sonar in the APM.

Page 42: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

All done

I have found that sonar only works in loiter mode.

As far as the OSD, I don't use one, cant help. I also asked the same question about the battery monitor, but received no reply.

1324 Sonar

Originally Posted by careyer Hi, i have a few questions regarding:

Sonar:Can anymone explain how to connect the DYP-ME007 sonar to AIOP in order to make it work with MPNG? Thanks in advance!

OSD:There have been several questions about support/compatabilty for the MinimOSD - none of them was answered. Is anyone successfully using MinimOSD with AIOP? Can you please share your knowledge?

Current SensorIs there a way to use a current sensor with AIOP?

Sonar is pretty easy, the pins are labeld on the back of the ESC rail. Trigger to trigger, echo to echo Then vcc to + and ground to - on the ESC rail. Enable sonar in the APM. All done

I have found that sonar only works in loiter mode.

As far as the OSD, I don't use one, cant help. I also asked the same question about the battery monitor, but received no reply.1360 SonarP.S. pretty strange about the sonar - my sonar 100% works in any mode, not only in loiter. Can be seen by both telemetry(height value), and by both how copter behaves. And btw - i would highly reccomend tweaking MAX_SONAR_RANGE to 200cm, as theese cheap china sonars, give extremely narrow beam, which corresponds in really weird height readouts on slighttest tilt on heights above 2meters. Tested and confirmed, via log comparison and video comparison on how the copter behaves. Thats why i do plan to switch to MB1260, although some code tinkering will be required..

Kevin, i am not using an extender board, but nevertheless, i power the board off a separate dc-dc(ubec). For sonar, connect only signal pins and gnd, +5v take elsewhere(in my case a small power distribution board). As an advice, which may be simplier for you to empement - connect the power cable from one of the esc, to the esc rail(with the jumper removed), and you will have "dual" power, one on the esc rail, and the other on the aio board itself.

Page 43: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

1366 sonar link

Registered User

Joined Apr 2012

15 Posts

http://dx.com/p/hc-sr04-ultrasonic-s...-133696?item=3 this one works.

1372 Sonar setupA bit on sonar, i think it maybe usefull for the community

To connect the DYP-ME007 or one of the many clones(HC-SR04 and alike), and to roubleshoot the connection, you may need this small walkthrough

Check the wiring connections1) Trig must go to the signal pin of D9 connector2) Echo must go to the signal pin of D10 connector3) Power, any, regulated +5v, with common ground to the flight controller board. I reccomend(!) - if you are powering the FC board externally, and have removed the yellow jumper - connect one of the ESC power connectors to the ESC connector on the board.

Check that the sonar emmits ultrasonic and actually works4) Once powered - you MUST be able to hear small "clicks" from the sonar, another way - is to use iAnalyzer software on the iPhone, as i have found out, that iPhone is extremely sensitive to ultrasound(i used an ultrasonic cleaning bath, and a phone rang.. on the other end a person was unable to hear anything except buzzing), you should see something like this:

Page 44: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

As you see below - the spikes are actually sonar working(iphone from sonar ~5cm away). If the sonar works, then go to next phase5) It's really a good idea to see with an oscilloscope the returning signal, but that can not be reccomended to everyone, and the person who knows how to use one, probably won't be needing this guide

Page 45: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

6) In APM_config make sure the value is#define MAX_SONAR_RANGE 2007) In APM Mission Planner, make sure you have the sonar checkbox enabled(!), and the sonar WILL work.

8) In APM mission planner - you will see even the slightest movement of the copter, or you own hand waving at front of a sonar.

But in any case - theese sonars are crap. The good stuff is MB1260 XL-MaxSonar-EZL0 but it doesent seem to work in megapirates. Will get one, as soon as i will have some spare time, and tinker with the code to make it work.

1425 GPS set up Ground Plane AntennaInterference is a big problem, you need to mount the GPS antenna as far away from everything else as possible & consider using a Ground plane.

Example

1428 BT Blue tooth

Originally Posted by WiseDuck So is it possible to send new mission data over bluetooth to the controller? And then execute the mission? If that's the case, gosh, I need to buy that BT module asap! Nothing sucks more than having to bring your laptop to the field just to make tiny adjustments to PID values and coordinates.

Page 46: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Yes you can do everything except load firmware.

1479 Blue toothYour BT module already has the correct Baud rate, RCTimer CRIUS BT modules come ready configured to 115200bps .

To pair your BT module you have to enter the pairing code usually '1234'.

When connecting BT to PC you first need to add the BT module as a device & when that's done you can then pair it.

At first I thought you said you were having trouble powering the BT module, the red LED should flash when its powered & then go solid once paired to another device.

Have you connected it correctly to the FTDI port, TX to RX, RX to TX, GND to GND, 5v to VCC?

1551BT setupGo here

http://wiki.openpilot.org/display/Do...ooth+Telemetry

there is a program one of the CC team have made to easily change/setup your BT module

Page 47: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

here

http://forums.openpilot.org/topic/73...tion-software/

You will need Openpilot GCS software....I have it as I also fly the CC board, makes setting up the BT modules a breeze! 1626 OSD On screen displayI think porting the MinimOSD was a nicer idea to port since it is darn CHEAP at goodluckbuy and closer to the APM code.

1632REMZIBI CONNECTED !! Used ARDU hex From the Remzibi appused APM.BIN from here http://diydrones.com/profiles/blogs/...-integration-1connected on tx3 and 2gnd on ftdi port

1634

Originally Posted by turbodriven Can someone answer this newb question?

Why would attaching a fully functioning stand alone OSD benefit by connecting to AIOP? I could see the advantage of a cheap basic module that was able to "use" all the AIOP sensors (like the MinimOSD), but with Rembzibi... it works all by itself already with or

Page 48: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

without AIOP.Both modules almost same except software on it. Remzibi can read GPS postion directly from GPS device. MinimOSD gather all information from MAVLink protocol.

1645 OSD

Originally Posted by careyer Are there Tutorials/HowTo's how to connect MinimOSD/RemzibiOSD to Crius Pro with MPNG? Hints very much appreciated.Many questions about OSDs have been asked in this thread but little been answered.

MinimOSD - can be connected to Serial 3 port. Will work without any code changed with MPNG only (since Multiwii doesn't support MAVLink protocol). Depending on OSD firmware - you must update it to latest firmware, because older versions doesn't support new MAVLink v1.0 protocol)

Remzibi OSD must be connected to Serial 1 port. You must enable it by defining OSD protocol in APM_Config.h.

1659 bluetooth

Originally Posted by turbodriven

Please do tell how... in detail. I've already seen the xbee link people posted before... and it doesn't tell how really. I'm dying to get my bluetooth module to work with Copter-GCS!

Edit: This link. Doesn't really show how?? http://code.google.com/p/copter-gcs/

The blueetooth module work fine with everything that use vanilla USART.

But, you need to keep in mind ... on bluetooth side (the air interface) ... there is no speed ... your PC / Mobile ... can connect to the bluetooth and see it running at any serial speed ... doesn't really matter ... since it is automatically converted ...

On the physical in TX-RX pin line .. here the speed is "fixed", but configurable.

These bluetooth module come with default 9600 bps .... the multiwii board, use normally 115200 bps ... so in order to make it to work ... you need to change the speed.

Here is where you need hard googling for find the manual of these little bluetooth converter ...

Here are the commands:

Page 49: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

For change to 115200 you need to give this command:AT+BAUD8

For give this command (the only way that I know , maybe there are other, but this did works fine to me)

You need to use a USART - USB adapter ... or maybe your PC have a serial interface ...

I think FTDI USB adapter can work fine too ... but I use a ultra cheap USB-Serial adapter from eBay ...

So ... I connect on the USB-Serial adapter the bluetooth module (my adpater provide both 5v and 3.3v .. so I power the bluetooth module in this way) ... select 9600 bps on the USB-Serial port (COMx) on my PC ... (I use Putty for this job, but you may use a different serial terminal) ...

From there I typeATand I should get OKThen I type :AT+BAUD8This will switch to 115200 bps ... so I need to change speed on my PC ... and I can use this module again .. and just type AT ... and get ok

Once configured, the configuration is persistent between power cycle ..and ready to be used on the MegaWii or whatever board you want.

If you want a different speed this is the table:

AT+BAUD8This give you 115200AT+BAUD7This give you 57600

Send: AT + BAUD2Returns: OK2400

1---------12002---------24003---------48004---------96005---------192006---------384007---------576008---------115200

Page 51: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Advanced This topic

View New Content MultiKopter Forums Members Gallery Videos Contact Us Member Map Tutorials Shoutbox

1. MultiKopter 2. → Flight Controllers / Firmware 3. → Crius MultiWii AIO boards

6 Unfollow this topic

CRIUS ALL IN ONE PRO v1.0 Multi Rotor Flight Controller Manual Started by Quadframes, Jul 07 2012 09:58 AM

Prev

Page 3 of 3 1 2 3

Reply to this topic Bump this topic Go to first unread post

Page 52: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

45 replies to this topic

#41 ONLINE   MdG

Advanced Member

Members 30 posts

5 Country:

LocationThe Hague

Posted 20 August 2012 - 11:17 AM

Multicore, on 03 August 2012 - 09:57 AM, said:

Just for information and maybe for an update of the manual:

Today i had a closer look to the pins A0, A1, A2, A3, A4 and A5 of the CRIUS AIO PRO.These pins are connected directly to the ATmega2560 Analog to Digital Converter.This means we can use this pins for example as LiPo voltage checker for each cell (max 6S) when connected to the balancer connector of the LiPo !

The AVCC pin of the ATmega2560 (pin 100) is connected to 5V.So we can convert analog values between 0V and 5V to 10Bit digital values.

Each of these pins can also be used as normal digtal input or output pin.

Here are the pins:

A0 <-> Atmega2560 pin 97 PF0 (ADC0)A1 <-> Atmega2560 pin 96 PF1 (ADC1)A2 <-> Atmega2560 pin 95 PF2 (ADC2)A3 <-> Atmega2560 pin 94 PF3 (ADC3)A4 <-> Atmega2560 pin 93 PF4 (ADC4)A5 <-> Atmega2560 pin 92 PF5 (ADC5)

See also the Atmel manual of the Atmega2560.

Page 53: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Love this board more and more, so much pins and possibilities ...

I think this will not work well !It takes to long time when the Atmel takes the samples for the ADC pins.It will getting a negative effect to the Main-program !

It's better to use the suggested (APM2.0) option like this: http://code.google.c...iki/AC2_CurrentI'm not sure bud hopefully this is "Plug and Play" whit ArduCopterNG 2.7I hope to check/test this next week.

Like This

Quote MultiQuote Report

#42 ONLINE   Quadframes

Advanced Member

Administrators 1,164 posts

81 Country:

Contributor

Posted 20 August 2012 - 11:24 AM

Hi MdG,

please let us know of your findings

Like This

Quote MultiQuote

Page 54: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Report

#43 ONLINE   MdG

Advanced Member

Members 30 posts

5 Country:

LocationThe Hague

Posted 20 August 2012 - 11:46 AM

Hello Quadframes,

Of course I will share the info and findings about this In the software I found this:Parameters.pde

// @Param: VOLT_DIVIDER// @DisplayName: Voltage Divider// @Description: TODOGSCALAR(volt_div_ratio, "VOLT_DIVIDER"),GSCALAR(curr_amp_per_volt, "AMP_PER_VOLT"),GSCALAR(input_voltage, "INPUT_VOLTS"),// @Param: BATT_CAPACITY// @DisplayName: Battery Capacity// @Description: Battery capacity in milliamp-hours (mAh)// @Units: mAhGSCALAR(pack_capacity, "BATT_CAPACITY"),

And in Config.h

#elif CONFIG_APM_HARDWARE == APM_HARDWARE_PIRATES# define A_LED_PIN              13# define B_LED_PIN              31# define C_LED_PIN              30# define LED_ON            HIGH# define LED_OFF                  LOW# define SLIDE_SWITCH_PIN 59# define PUSHBUTTON_PIN   41# define USB_MUX_PIN      -1# define CLI_SLIDER_ENABLED DISABLED

Page 55: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

# define OPTFLOW_CS_PIN   34# define BATTERY_PIN_1    0# define CURRENT_PIN_1    1

So this gives more hope because the Battery and Current pins are already defined.

Edited by MdG, 20 August 2012 - 11:54 AM.

Like This

Quote MultiQuote Report

#44 OFFLINE   kje1973

Newbie

Members 7 posts

0 Country:

LocationCopenhagen

Posted 21 August 2012 - 10:06 PM

Hello

Im very new to the forum and in the process of building my first y6 copter. I have purchased the AIO Pro, but would like some advice with regards to the cables included with the board. Can i use those cables to conect directly to my reciever, and how should they be connected (or should i buy new

servo cables). Sorry for my comoplete ingnorance but i am like a fish out of water

Kelvin

Like This

Page 58: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Members 7 posts

0 Country:

LocationCopenhagen

Posted 21 August 2012 - 10:42 PM

brillian, thank you

Like This

Quote MultiQuote Report

Prev

Page 3 of 3 1 2 3

Back to Crius MultiWii AIO boards · Next Unread Topic →

Reply to this topic

Page 59: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users

lostinspace

1. MultiKopter 2. → Flight Controllers / Firmware3. → Crius MultiWii AIO boards

Contact Us Mark Community Read Help

Licensed to: www.multikopter.co.uk

1785 Bluetooth setupHeres a tip on how to easily setup your Bluetooth module using what has been made for copter control by the openpilot team for your desktop, dont bother trying to use the android GCS it doesnt work

Page 60: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

Taken fromhttp://wiki.openpilot.org/display/Do...ooth+Telemetry

"B: Using the configuration software"

1-Download coptercontrol GCS software and install it on your computer

2-Install the small program here into the openpilot GCS station executable folder(rightclick the GCS shortcut to see where the install directory is on your computer). This is the bin directory in your OpenPilot installation folder. (Hint: the openpilotgcs.exe executable file is also located in the bin directory.)http://wiki.openpilot.org/download/a...=1321192800000

3-Run the program that you have just placed in the coptergcs directory

Its real easy to setup your BT modules

Cheers!Set up 1828dont reverse your channels in the mission planner as if you upgrade your software you could forget to redo this and well could crash or worse! reverse the channels on your radio that way they are always done

hint:

for mwii, tune roll/pitch PIDfor megapirate, tune roll/pitch RATE (not the pid part)

1846Quote:

Originally Posted by Multor MegaPirate Ninja

Hi there guys, got my crius for quite a while now.

Really not happy with the stabilization at all, it wobbles like fat tire, unresponsive like a cat.oscillates like a horny man D:.

and i dont think its on the P at all, tried going from 0-5, no changes D:i tried everything

My accelerometer keeps resetting it self

I would try to make a video but its really hard to get a good shot.

Page 61: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

I had very similar symptoms. Have you tried multiwii? It's stock settings were a lot more stable for me.

It's also been suggested that RATE PIDs are changed rather than Stabilize PIDS to any effect on stability in MPNG

Quote:

Originally Posted by KevinBuckley70

I finally have bluetooth, GPS etc. running using the latest MPNG on the bench on my Crius AIOP & extender board - after taking the advice I was given at the very start and using a uBEC, rather than trying to power it directly from a 3s LiPo.

It would really help me to know a couple of things before I try to install this on my FlameWheel F450 & try to get airborne:

There are many, many parameters it's possible to fiddle with using the Mission Planner. Before making that first flight, is there anything I NEED to fiddle with, apart from configuring the flight modes & the Tx controls if I am using a brand new copy of the latest MPNG (I already did the changes in the APM_Config to set it up for the AIOP)?

The USB connector fell off the AIOP for the second time tonight, probably terminally. Can I do everything I need to do to get this flying just using Mission Planner over bluetooth?

Is it possible to load new versions of firmware (MPNG) using bluetooth, or will that have to wait until my new board arrives?

I'm not yet familiar with the detailed config of MPNG so knowing what I HAVE to setup, & what I can leave until later, will be really helpful.

To get a grounding as to what does what when you play with your PID's check:

1 - these vids out, they were most helpful to me

MegaPirate PID tuning - rate (acro) (3 min 20 sec)

MegaPirate PID tuning - stabilize (acro) (1 min 45 sec)

MegaPirate PID tuning - rate (acro) (3 min 20 sec)

2 - In regards to what is MOST important read the below, it will cover 95% of what you will encounter

Page 62: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

http://code.google.com/p/arducopter/wiki/AC2_Tweaks

"Basic performance troubleshooting"....

3 - Further on the same page...."In flight tuning"(My number 1 favorite feature) If you have a the ability to assign channel 6 in the mission planner to a variable pot on your radio do so, these will enable you to tweak your settings live at the 'turn of a dial'

Golden Rule: Tune 1 thing at a time, until you know what does what

My approach I use in all my multis:Dial in Rate P (This controls how stable it will sit in the air, its also the platform for all other settings, so take your time)Dial in Stabilize P (This controls how sensitive it is to your input)

The rest of the settings is just gravy, practice plenty and it will come

1893 Explanation of features.

Altitude Hold: Once you have the copter hovering at a certain altitude, engaging AH will make it try to hold it regardless of the way it flies, without you having to correct from throttle. Barometer needs to be protected from sun, wind and prop-wash by a layer of foam, and the FC must not be in an airtight box.

Level: As opposed to Acro or 3D flight, once you let the sticks go, the copter will return to horizontal.

Heading hold: Once engaged, the flight forward will be on that axis, even if your copter front yaws left or right. Magnetic fields generated by motors, escs and power harness influences this alot.

Position Hold: keeps the copter from flying away using the GPS coordinates from the moment you activate the function and stop using TX controls. Coupled with Altitude Hold will keep the copter at a fixed point in space.

RTH: returns the copter to the coordinates at which the GPS unit was powered on and aquired 3D Lock.

Keep in mind that TX commands override most of the functions. Throttle commands will take precedence over AH. PH should be oblivious to yaw input, but pitching and rolling will break the hold. So on, so forth.

Plus, there's alot of fine-tuning of PID variables to make all the functions work as intended,

Page 63: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut

1915With the PID's between your 550 & 450 Quads; very basically, the smaller the Quad/frame the lower the PIDs need to be.1949

Originally Posted by liorz055

did you trim your quad by using the trim buttons ? If you did the correct way to perfectly level your quad is by using auto-trim:http://code.google.com/p/arducopter/wiki/AC2_Flying

Or you can use ch7 for auto-trim as well:http://code.google.com/p/arducopter/wiki/AC2_AutoTrim

Good luck Lior

2154 Setup

I am using DJI frame wheel 450 , rctimer 2830-14 750kv motors and rctimer 30A flashed simonk esc Gemfan 8045 props , ubec and 4s 3000mha batt.

Page 64: api.ning.comapi.ning.com/.../AIOProssetup.docx · Web viewjumper.With this set up you don't have to remove the BEC's (red wires) from the ESC's as removing the yellow jumper has cut