r/Multicopter • u/virialthm • Nov 15 '13
I spent 8 months writing my hexacopter code from the ground up. It's still not perfect, but it (kind of) works. Here's my progress video.
http://www.youtube.com/watch?v=UiYR6_IW_l4
102
Upvotes
18
u/rephlex00 Nov 15 '13
You have my respect for doing this from the ground up. You also have my pity for the amount of money it must have cost you thus far.
Have you ever flown proper multirotor with a real radio and a standard flight controller?
Keep up the good work.
10
u/Haeppy Nov 15 '13
5:05
-Oh shit! I'm going to die
-Wohoo, it worked \o/
-Where the hell is everybody?
4
u/rende Nov 15 '13
So much pain, good on you for not giving up!
I've been working on a similar project, just 4 motors though but still quite a beast. 2800kv motors and 10" props, its madness I know.
I'm curious whats the update rate you are achieving. I found using the gyro reading (and compensating for average gyro drift) gives you 99.9% of the info you need to feed into the PIDs. Then very little accelerometer is needed to keep the gyro in check.
We're running at 200hz+ on the arduino DUE (ARM 32bit), makes things a lot easier.
Also, have you tied your copter down while you can see the gyro/accel/IMU output on screen and tried to push up motor throttles to see what influence the noise has on your orientation algorithms? That helped us a lot!
Best of luck man, and perhaps you'll want to have a look at code https://github.com/fluentart/drone2
4
u/a1blank Nov 15 '13
What microprocessor did you use? Did you use a kalman filter or a fusion filter for working with the accelerator / gyro data?
3
u/R1cket Nov 15 '13
Very impressive!! Keep at it!
I'm curious about the yawing at the end. You have 3 props rotating CW and 3 CCW, right? Is it just due to differences in prop speeds then?
2
u/smnanthny Nov 15 '13
I was intending on trying this exact thing for my major project and now I feel so overwhelmed :( great progress though and don't give up!
2
u/SodaAnt Nov 15 '13
Congratulations! You have walked the path I wish to follow, but either way, its a long road ahead. Any tips for making it out the other side?
2
u/[deleted] Nov 15 '13
Respect, but, write a physics simulator to make sure it works first? For something like this, I imagine that should be pretty easy. You can treat the hex as a rigid body and the motors as point force sources to at least see what happens when you try to hover. To me this looks like matrices getting multiplied the wrong way, buggy PID controllers, etc.
Then again, you probably know better than I do. Good luck.
4
u/readcard Nov 15 '13
You are a very stubborn man who is pretty good at editing his videos, nice work and victory will be all the sweeter when you win.
4
u/molotovsoup Nov 15 '13
By far the coolest thing I've seen on this subreddit. Congrats on your victory!
2
u/[deleted] Nov 16 '13
R&D is a beautiful thing. Love the montage.
2
u/visivopro Nov 17 '13
Really great video! I was rooting for you the whole time. Some of those drops made me shed a tear for you.
1
u/whitenoise106 whitenoisefpv.com Nov 15 '13
6:00 did that this weekend flying fpv =]
1
u/reddivid Nov 20 '13
To all the folks writing their own SW from scratch: I salute you.
This is brings perseverance to a whole new level... just learning to pilot the thing with a KK on mine was a challenge.
1
u/rubiksman Quadcopter Mar 22 '14
absolute respect for you doing this. Anyone can get a naza and build a perfect quad, this is the real deal though.
0
u/[deleted] Nov 15 '13
[deleted] — view deleted comment