HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Apr 26, 2010, 06:27 PM
Quad Whisperer
Joined Jul 2008
943 Posts
Quote:
Originally Posted by jjbunn View Post
kapteinkuk,

When you wrote the software for your tri and quadcopters, what did you base the algorithms on? Can you recommend a text that describes the operational principles? Clearly your flight software algorithms are excellent, and I would like to reproduce them on an Arduino based controller (yes, I'm aware of the Arduino based AeroQuad design, but I'd like to start from scratch).

Many thanks!

Julian
They where based on my knowledge on how they works.

some pseoudo code:

Stick input and gyro input are centered around zero, exept collective wich start at zero.

quad:

start of mixing

FrontMotor = collective
LeftMotor = collective
RightMotor = collective
BackMotor = collective


RollCommand = RollStick + RollGyro
(Simple dampening, it is in effect only the D part of a PID. The gyro output is a deriative of absolute rotation angle)

LeftMotor = LeftMotor + RollCommand
RightMotor = RightMotor - RollCommand


PitchCommand = PitchStick + PitchGyro

FrontMotor = FrontMotor + PitchCommand
BackMotor = BackMotor - PitchCommand


YawCommand = YawStick + YawGyro

FrontMotor = FrontMotor + YawCommand
BackMotor = BackMotor + YawCommand
LeftMotor = LeftMotor - YawCommand
RightMotor = RightMotor - YawCommand

End of mixing.


Tri:

start of mixing

LeftMotor = collective
RightMotor = collective
BackMotor = collective


RollCommand = (RollStick + RollGyro) * SIN(60)

LeftMotor = LeftMotor + RollCommand
RightMotor = RightMotor - RollCommand


PitchCommand = PitchStick + PitchGyro

BackMotor = BackMotor - PitchCommand
PitchCommand = PitchCommand * COS(60)
LeftMotor = LeftMotor + PitchCommand
RightMotor = RightMotor + PitchCommand


TailServo = YawStick + YawGyro

End of mixing.
kapteinkuk is offline Find More Posts by kapteinkuk
Last edited by kapteinkuk; Apr 26, 2010 at 06:35 PM.
Reply With Quote
Sign up now
to remove ads between posts
Old Apr 26, 2010, 06:33 PM
Quad Whisperer
Joined Jul 2008
943 Posts
New quad software

Here is Quadcontroller V4.1

-Added gyro reversing.
-180Hz PWM frequency.
-Same hardware. (V4)
-All gyros can be reversed.

Gyro direction reversing:

1: Set roll gain pot to zero.
2: Turn on flight controller.
3: LED flashes rapidly 10 times.
4: Move the stick for the gyro you want to reverse.
5: LED will blink continually.
6: Turn off flight controller.
7: If there is more gyros to be reversed, goto step 2, else set roll gain pot back.

Gyro reversing is useful if you want to mount the gyro in a way that reverses its output, eg. mounting the yaw gyro upside down, or when using other gyros with reverse output.
kapteinkuk is offline Find More Posts by kapteinkuk
Reply With Quote
Old Apr 26, 2010, 09:08 PM
Lazy RCer
Seoul, S.KOREA
Joined Oct 2009
31 Posts
thank you for your detailed answer
I mean "T style" like this.

from Vicacopter.

But your control loop based on 120 degrees. can applicapable T style for your binary hex file?

I'm very awaiting your hands-off stabilize video
doorhead is offline Find More Posts by doorhead
Reply With Quote
Old Apr 27, 2010, 12:35 AM
Registered User
Joined Apr 2010
5 Posts
Quote:
Originally Posted by kapteinkuk View Post
They where based on my knowledge on how they works.

some pseoudo code:


(snip)

End of mixing.
Superb ... thanks so much!
jjbunn is offline Find More Posts by jjbunn
Reply With Quote
Old Apr 27, 2010, 01:21 AM
Registered User
Joined Mar 2010
379 Posts
VTOL RC AVATAR SCORPION Prototype model

VTOL RC AVATAR SCORPION Prototype model (2 min 36 sec)


please watch the above line .. amazing stable with 2 motors and 2 sevos ..

i think this would be very easy for master kapteinkuk.. may be he can pipe line this project too..
quaddynamics is offline Find More Posts by quaddynamics
Reply With Quote
Old Apr 27, 2010, 04:00 AM
xxxxxxxxxxxxx
JUERGEN_'s Avatar
Deutschland
Joined Nov 2009
660 Posts
Quote:
Originally Posted by kapteinkuk View Post
Here is Quadcontroller V4.1
. . .


now missing is a BMA180


jürgen
JUERGEN_ is offline Find More Posts by JUERGEN_
Reply With Quote
Old Apr 27, 2010, 08:41 AM
Registered User
NW England
Joined Jul 2005
620 Posts
Hello!

I've been learning Eagle and have drawn a schemetic for a small (38x31mm), single-cell, double layer, ISP pinned V4 board (modified from Thanh's work).

I've also laid out the board and connected everything (mainly for practice as it'll probably have to be all rerouted with the corrections). However please could someone check the connections, schematics, practicality of it before I go any further (buy the components, etch the board).

I've put replaced the large pots with the following ones for which I had to draw a component in Eagle :

http://uk.rs-online.com/web/search/s...duct&R=177-223

I got quite confused about the connections so if someone could check it that would be awesome.

The 5v step schematic I have lifted from here :

http://www.sparkfun.com/commerce/pro...oducts_id=8999

As the power is derived from the single cell battery I've assumed the only connections needed to the motors from the controller board is the signal wire? Also the power for the rx comes straight from out of the step-up circuit, before the filter. Is this correct?

I've put the gyros on the back of the board as this seems to be how kapteinkuk and Thran had mounted their HK401 boards. I haven't designed the z-axis gyro board yet but it should be small with only the gyro and a cap on it.

The board is really untidy (names and values everywhere) as I haven't learnt how to resize and place them properly, but I just need things checking before I go any further.

There are 12 vias I'll have to drill and pin by hand but thats part of the fun I guess

Please be gentle
ben123 is offline Find More Posts by ben123
Reply With Quote
Old Apr 27, 2010, 08:47 AM
Registered User
outsider787's Avatar
Canada, ON, Toronto
Joined Dec 2007
417 Posts
Nice work Ben!
Look forward to hearing how your prototype works out.
outsider787 is offline Find More Posts by outsider787
Reply With Quote
Old Apr 27, 2010, 09:33 AM
Registered User
VA
Joined Nov 2009
2,658 Posts
For anyone who was interested in the whole gyro resonant frequency thing, the ST 5xx series is 4.1khz.
pug398 is offline Find More Posts by pug398
Reply With Quote
Old Apr 27, 2010, 09:59 AM
Brushless
cdi3d's Avatar
Joined Mar 2009
2,060 Posts
I am a complete noob when it comes to this stuff but would like to build one of these awesome boards for my tricopter - Is there a step by step to building one that I have overlooked in this thread somewhere? Anyone going to sell them at one point?

Thanks guys!
Mike
cdi3d is offline Find More Posts by cdi3d
Reply With Quote
Old Apr 27, 2010, 11:19 AM
Registered User
barkingside
Joined Mar 2008
40 Posts
Quote:
Originally Posted by doorhead View Post
thank you for your detailed answer
I mean "T style" like this.

from Vicacopter.

But your control loop based on 120 degrees. can applicapable T style for your binary hex file?

I'm very awaiting your hands-off stabilize video
Physically this is a T style but still a Y in practice . X will be same as H
dd016857 is offline Find More Posts by dd016857
Reply With Quote
Old Apr 27, 2010, 12:54 PM
Registered User
Joined Apr 2010
5 Posts
Could somebody clarify what types of propellers are suitable for this design - do two of them need to be pushers, or can they all be standard? I think I may be missing something fundamental here, but am confused why the AeroQuad needs two pushers and two pullers and yet Kaptain's design apparently does not?

Thanks!
jjbunn is offline Find More Posts by jjbunn
Reply With Quote
Old Apr 27, 2010, 02:09 PM
Went to mow a meadow
frank48's Avatar
Joined Feb 2007
1,443 Posts
Quote:
Originally Posted by jjbunn View Post
Could somebody clarify what types of propellers are suitable for this design - do two of them need to be pushers, or can they all be standard? I think I may be missing something fundamental here, but am confused why the AeroQuad needs two pushers and two pullers and yet Kaptain's design apparently does not?

Thanks!
Hi

The original design needs 2 cw rotating props and 2 ccw, however on his latest mini quad the front and rear motors are tilted to the right. All props are the same and rotate in the same direction.

Cheers
Frank
frank48 is offline Find More Posts by frank48
Reply With Quote
Old Apr 27, 2010, 02:18 PM
That tree again!!!!
thanhTran's Avatar
Germantown, MD, US
Joined Sep 2004
6,642 Posts
Quote:
Originally Posted by cdi3d View Post
...Anyone going to sell them at one point?

Thanks guys!
Mike
I've thought about offering complete built boards. It's going to be sometime before things can be sorted out. Cost, license, part choice, testing my board design, etc.

Kaptein is so nice that he gives the code and design away for free and doesn't mind if someone offers a kit. Some kind of comission should go his way if I do sell the board.
thanhTran is offline Find More Posts by thanhTran
Reply With Quote
Old Apr 27, 2010, 07:02 PM
Registered User
Joined Apr 2010
5 Posts
Quote:
Originally Posted by frank48 View Post
Hi

The original design needs 2 cw rotating props and 2 ccw, however on his latest mini quad the front and rear motors are tilted to the right. All props are the same and rotate in the same direction.

Cheers
Frank
Thanks, Frank - on the original design, are the CCW props pusher types or not?
jjbunn is offline Find More Posts by jjbunn
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Quadrotor brushless controller airbotix Multirotor Talk 63 Aug 06, 2010 11:15 AM
Discussion ALPO -Aerobatic Low Parts count Original design. Brian Courtice Foamies (Scratchbuilt) 8 Sep 21, 2009 03:57 AM
Discussion Any tips for my first flight with a low wing plane? Warthog_Fan Fuel Plane Talk 4 Sep 06, 2009 07:53 AM
Help! Need help with Low-cost QuadRotor Hero.sl Coaxial Helicopters 5 Jun 28, 2009 02:26 AM
Question Searching Simple Controller for Free Flight flymax Power Systems 8 Jan 07, 2006 10:07 AM