AfroMini in a Plane Hints ?

Post Reply
User avatar
Plüschi
Posts: 433
Joined: Thu Feb 21, 2013 6:09 am

AfroMini in a Plane Hints ?

Post by Plüschi »

My "on the way" afromini should go into an easyglider.

Are there some instructions / links on how to set up the thing?

Is the actual baseflight baro code good for airplanes?

I made up a way to use GPS data to find the heading and merge this with the gyro data. In my tarduino testbed with navi_sim emulating the gps it works nicely as long as the plane moves forward. This way afromini + gps should be able to do RTH or waypoint. No mag needed ...

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

Hiya,
It should "just work".
I think i recently committed something that enables baro alt hold on planes (it added a new cli variable). All of this is untested.
There's some people who had naze32's in planes/flying wings, so.. it works at least to some degree :)
The S1..S4 servos are mapped according to the mixer, probably no documentation but you can peek in airplaneMixer() code to see which one goes where.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: AfroMini in a Plane Hints ?

Post by PatrikE »

I have tested using baropid on Arduinoboard but it needs more work to fly properly!
It kept altitude but it was flying like a dolphin so it's way to powerful as it is.
I don't recommend using it as it works now!

brm
Posts: 287
Joined: Mon Jun 25, 2012 12:00 pm

Re: AfroMini in a Plane Hints ?

Post by brm »

PatrikE wrote:I have tested using baropid on Arduinoboard but it needs more work to fly properly!
It kept altitude but it was flying like a dolphin so it's way to powerful as it is.
I don't recommend using it as it works now!


what about softer pid settings?
and pid calculations have a problem anyway in planes.

edit: you may google for phugoid motion on real planes.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: AfroMini in a Plane Hints ?

Post by PatrikE »

I just tested it on my RTH FixedWing dev.
And it uses same Pid's as BaroPID.
With proper PID tuning it's probably possible to tame it.
I haven't checked TC's implementation just my own homebrew.

User avatar
Plüschi
Posts: 433
Joined: Thu Feb 21, 2013 6:09 am

Re: AfroMini in a Plane Hints ?

Post by Plüschi »

Is your version available ?

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

I think he's referring to fixedwingnav tarduino branch.

i.e. http://code.google.com/p/multiwii/source/detail?r=1660

felixrising
Posts: 244
Joined: Sat Mar 23, 2013 12:34 am
Location: Australia

Re: AfroMini in a Plane Hints ?

Post by felixrising »

So, I've got a Acro Naze32 on a small wing, but looking at a AfroMini instead... is rc pin 4 (and pin5) broken out on the AfroMini or do we need to get out our magnifying glass and fine soldering iron?

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

You mean UART? Of course, its on the bottom as rx/tx pads.

felixrising
Posts: 244
Joined: Sat Mar 23, 2013 12:34 am
Location: Australia

Re: AfroMini in a Plane Hints ?

Post by felixrising »

Yes, UART Nice... that could come in handy... so when are you cooking up another batch?

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

Waiting for stencil, I switched to BMP180 baro (old one is EOL), so I had to redo pcb. Should be in a couple days.

User avatar
Plüschi
Posts: 433
Joined: Thu Feb 21, 2013 6:09 am

Re: AfroMini in a Plane Hints ?

Post by Plüschi »

I did maiden fly my Easystar today. Its still alive (!) and now ready for the AfroMini.

I like to have stabilized / normal on a switch, but i was not able to find such a setting. Is there a simple solution to switch off all stabilizing?

Edit: found it. PASSTHRU_MODE

User avatar
Plüschi
Posts: 433
Joined: Thu Feb 21, 2013 6:09 am

Re: AfroMini in a Plane Hints ?

Post by Plüschi »

I did maiden fly my AfroMini today. Its still alive (!)

Works like expected. Acro / Angle / Horizon switch works, Passtrough works.
I had very small PID values to avoid that constant servo movements. Going to up those tomorrow.

Althold (baro) was difficult. I had the impression the plane pulled up when too low, but once i think it didnt stop climbing. How should i package the baro so it doesent get wind pressure?
Is there a way to properly test althold? Again i had the PID very low, I = zero to avoid pumping. Any tips?

DSC_0139.jpg

brm
Posts: 287
Joined: Mon Jun 25, 2012 12:00 pm

Re: AfroMini in a Plane Hints ?

Post by brm »

Plüschi wrote:I did maiden fly my AfroMini today. Its still alive (!)

Works like expected. Acro / Angle / Horizon switch works, Passtrough works.
I had very small PID values to avoid that constant servo movements. Going to up those tomorrow.

Althold (baro) was difficult. I had the impression the plane pulled up when too low, but once i think it didnt stop climbing. How should i package the baro so it doesent get wind pressure?
Is there a way to properly test althold? Again i had the PID very low, I = zero to avoid pumping. Any tips?

DSC_0139.jpg


first add a small deadzone then
add a pt1 element with a cutoff frquency of 20 to 40 hz for the servos.
this would dampen the changes.

a cascaded pi loop would also be nice - maybe this would be better for gimbals...

the baro needs more work... the p value needs to be a function of the altitude.
lower pressure means lower p settings.

User avatar
Plüschi
Posts: 433
Joined: Thu Feb 21, 2013 6:09 am

Re: AfroMini in a Plane Hints ?

Post by Plüschi »

I have done a dozen flights with afromini and taranis now and this works good. The taranis speaks out altitude and Vbatt nicely. Vario works but the constant beeping is somewhat disturbing.
Above 200m height i start to feel unsafe. If i loose the plane out of sight it gets difficult to find it again. I need a GPS telling me bearing and distance to home. Accurate enough to "manually" fly the plane back.

I dont want to invent new things, i would like to use the existing frsky telemetry path and the existing taranis telemetry display. Which messages should i use to have bearing + distance displayed?

noobee
Posts: 66
Joined: Fri Feb 25, 2011 2:57 pm

Re: AfroMini in a Plane Hints ?

Post by noobee »

any chance you would consider an ms5611-based baro in the future?

thanks!

timecop wrote:Waiting for stencil, I switched to BMP180 baro (old one is EOL), so I had to redo pcb. Should be in a couple days.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

Not until it stops being way too expensive.

bhines
Posts: 2
Joined: Tue Apr 01, 2014 2:42 pm

Re: AfroMini in a Plane Hints ?

Post by bhines »

Plüschi wrote:I have done a dozen flights with afromini and taranis now and this works good. The taranis speaks out altitude and Vbatt nicely. Vario works but the constant beeping is somewhat disturbing.
Above 200m height i start to feel unsafe. If i loose the plane out of sight it gets difficult to find it again. I need a GPS telling me bearing and distance to home. Accurate enough to "manually" fly the plane back.

I dont want to invent new things, i would like to use the existing frsky telemetry path and the existing taranis telemetry display. Which messages should i use to have bearing + distance displayed?


would you post your pids please? going to fly a wing, but never tuned naze32 before so nice to have a place to start.


prm wrote:first add a small deadzone then
add a pt1 element with a cutoff frquency of 20 to 40 hz for the servos.
this would dampen the changes


WhaT? how :roll:

User avatar
Gaijin
Posts: 82
Joined: Sat Jan 14, 2012 8:00 am

Re: AfroMini in a Plane Hints ?

Post by Gaijin »

Excellent,

Ublox Neo-6M and AfroMini in the post, I plan to use it for RTH on failsafe / panic in an FPV Delta Wing.

Would someone mind extracting and posting the servo out layout from airplaneMixer for those of us less able :D e.g left elevon to Servo 1, right elevon to Servo 2 etc

It might be worth adding a little more board space for a GPS pin header breakout on the next revision, it would be nice and neat to just plug the gps straight in drawing the 5v supply straight from the servo input rails without making a Y cable.

At £30 for one of these and a Neo6M GPS it's an awesome solution for Fixed wing FPV pilots, these will sell like gangbusters when the word gets out.

P.s If I connect a battery or bec to the PPM Input Or servo outputs will it pass through to supply a bluetooth module connected to the serial connection, I'm planning to bury mine in the foam eventually.

User avatar
Plüschi
Posts: 433
Joined: Thu Feb 21, 2013 6:09 am

Re: AfroMini in a Plane Hints ?

Post by Plüschi »

Gaijin wrote:It might be worth adding a little more board space for a GPS pin header breakout on the next revision


+1

crashlander
Posts: 506
Joined: Thu May 05, 2011 8:13 am
Location: Slovenia

Re: AfroMini in a Plane Hints ?

Post by crashlander »

Plüschi wrote:
Gaijin wrote:It might be worth adding a little more board space for a GPS pin header breakout on the next revision


+1

After soldering pins on bottom and pull them out with pcb and than finished with soldering wires directly on MCU legs....
+1

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

Weeeelllll this stuff was never planned to use GPS since its for like you know, miniquads right? :)

crashlander
Posts: 506
Joined: Thu May 05, 2011 8:13 am
Location: Slovenia

Re: AfroMini in a Plane Hints ?

Post by crashlander »

timecop wrote:Weeeelllll this stuff was never planned to use GPS since its for like you know, miniquads right? :)

Cool! But since you forgot to put DJI like disclaimer/warning we all find it nice for mini (and not so mini) planes ;)

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

shit, DJI makes plane frames now?
* quickly editing product description

User avatar
Gaijin
Posts: 82
Joined: Sat Jan 14, 2012 8:00 am

Re: AfroMini in a Plane Hints ?

Post by Gaijin »

:lol:

They will now, everyone knows they monitor TC's every action rather than innovate themselves, he probably has a flock of surveillance phantom's watching him at all times!

crashlander
Posts: 506
Joined: Thu May 05, 2011 8:13 am
Location: Slovenia

Re: AfroMini in a Plane Hints ?

Post by crashlander »

timecop wrote:shit, DJI makes plane frames now?
* quickly editing product description

Ups... :)
Not to my knowledge...
I meant that Afro mini is missing disclaimer that is should not be used on any DJI products + planes :)

Truglodite
Posts: 48
Joined: Sat Jun 22, 2013 2:37 am

Re: AfroMini in a Plane Hints ?

Post by Truglodite »

DJI planes... :lol:

timecop wrote:Weeeelllll this stuff was never planned to use GPS since its for like you know, miniquads right? :)


Just my $.02...
You may have designed the mini with only small copters in mind, however there are some truths that form the matrix of demand for GPS with the mini. 1) Lighter and smaller FC boards are always better no matter what you fly (small or big, F=ma), 2) the mini board is cheaper, 3) a smaller PCB is required for some planes with small fuses (probably nothing DJI will make), 4) additional I/O (beyond the mini) is rarely required in projects that fit under items 1-3 (most FPV'ers have all they need in a mini), and 5) onboard compasses often succumb to inteference (especially bigger rigs with more current, which renders Naze32 a waste of space, weight, & a 5883... unless you are one of the rare dudes who needs the extra I/O and Naze).

Considering all the above, IMHO the mini beats the full Naze from every angle except when it comes to the pinouts. Honestly to me, the lack of pins is an insignificant annoyance in the scope building a typical "gps aircraft". However I imagine many folks are spending extra money and time to shoehorn the full board in a tight spot, just because they lack finer soldering tasks. It's even sadder to think that plane-RTH does not even listen to the 5883. It wouldn't be this way if the mini just had ~1/8" more PCB to place 6 extra pins (maybe 7 pins, because 3v3 is also nice to have). I highly doubt miniquad guys would raise hell about a few extra pins... plus have you seen how many ppl are using GPS on 250s? It's understandable why they do it. Mini's are meant to crash, which means they have a much higher chance of needing GPS coords to recover their tiny frames from deep grass/shrubs/etc. I don't ever use anything but acro on my mini, but the GPS has made some otherwise impossible recoveries very quick/easy. ;)

Kev

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: AfroMini in a Plane Hints ?

Post by PatrikE »

It's even sadder to think that plane-RTH does not even listen to the 5883.

Actually it does!..
But not the Baro!

User avatar
leocopter
Posts: 101
Joined: Mon Jan 27, 2014 7:29 pm

Re: AfroMini in a Plane Hints ?

Post by leocopter »

I've noticed some activity on making the CJMCU board/frame work with Baseflight. Would Baseflight support brushed motors on the Afromini 32 ? Could it be done by adding FETs to the board ? I've built a few successful X darts and x4s with the MicroMWC boards ... The Afromini 32 would certainly be superior to that.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: AfroMini in a Plane Hints ?

Post by timecop »

... ? it has supported brushed motors since several months ago.
just set motor_pwm_rate to > 500, like 8000 (noisy) or 16000 (less noisy) or 32000 (amazing) etc, and make your own brushed drivers. there was a pic of some guy who fit them all into the motor pads breakout area, very neatly.

Post Reply