Beginner’s Microquad Research: Hubsan x4, Hobbyking microquad, RC transmitter terminology, and more

Hrm, so besides ukuleles, I’ve also been doing researching into quadcopters for my startup (http://eon.businesswire.com/news/eon/20130516005905/en/accelerator/MIT/MIT-Sloan — you can guess which one is mine).

Yes, I am going to use quadcopters to teach controls. Even though I know almost nothing about quadcopters.
Well, I did fly a quadcopter for the first time last week. It was a Hubsan x4 I got for $43 including shipping off of ebay. I bought it 3/28/2013 and it arrived on 4/20/2013, and all it required was the addition of 4x AAA batteries (and an hour or so of charging) and it was all set to fly.
I bought it after reading this thread, a bit less than a year old (Jul 30 2012), which compares a ton of different microquads: http://www.rcgroups.com/forums/showthread.php?t=1701910
that’s how tiny it is. 
I also tried to fly it outside. In the grass. That was a poor plan. It was super cute, though, because first I set it down in the grass, but it couldn’t take off because it was so tiny that the props were buried in the grass. So I set it on top of a tuft of grass and it took off, but when I crash landed one of the props flew off, and I definitely had to search pretty hard to find a 1” black prop in the grass.
So I learned my lesson and now just fly it indoors, though I’m sure an empty tennis court would work fine too. It’s tiny enough that I can just fly it down the corridor of my dorm though, and stable enough that I can do this out of the box, even with minimal RC plane experience on my part. Err. But I still broke a prop (or rather my friend did, by flying it into a chair, but I had glued on the prop because it kept coming off due to an earlier crash, so I considered it partially my fault). So still out of commission until I get new props from Orlando, FL later this week.
Anyway, so the plot was to try to hack a commercial fully assembled quadcopter and write custom controls for it. I’m sure someone out there is going to read this and laugh in my face (“MIT student sets about reverse engineering Chinese quadcopter”), but whatever, it’s a fine way to learn things when you’re starting out.

” It just appeared to me why it would be interesting! If it’s an Atmega328 we’d be able to buy a dirt cheap micro quad and use our own code on it.”

No one I asked knew about which microquads ran atmegas, though, which is the mcu (microcontroller) I am most familiar with and the one that the hobbyist community is most likely to already have written a lot of flight controller code for. The hubsan, in fact, runs a MINI54ZAN ARM controller.
zoom in the image to see the IC numbers. also, that scar on my hand? hot glue freshman year from small hexalinkagepod. kiddos, watch where that hot glue is dripping, because it can scar you. and if it drops on your hand, run cold water over it immediately.
===========
Anyway, then I realized, you know what, hobby king has sort of already done this. They made a quad that is just missing a 4ch DSM transmitter, aka it is RTF (ready to fly) minus the radio, aka it is BNF (Bind-‘N-Fly).
HobbyKing Pocket Quad Ultra-Micro DSM2 MultiWii Quadcopter (PNF)
It’s a 70mm quad with 45 mm props, whereas the hubsan x4 is 60mm body. So a bit larger. But it is “multiwii based so it’s an atmega 32U4 (the arduino Uno uses the same chip)” (says Charles), yay!
It seems that Spektra might have a license on it that makes official DSM radio controllers way more expensive than their non-DSM counterparts. Compare the 2.007 radioshttp://www.hobbyking.com/hobbyking/store/__8338__Hobby_King_2_4Ghz_4Ch_Tx_Rx_V2_Mode_2_.html, which are $23, to the DSM ones available on hobbyking, which range from $65 to $700. Seven hundred dollars! *dies* http://hobbyking.com/hobbyking/store/RC_PRODUCT_SEARCH.asp?strSearch=dsm+transmitter&x=-1197&y=-32. (source: Charles).
The other potential explanation for the price difference is power of transmitter. For real RC airplane flying outside, people will want “full-range” transmitters which are 100mW or more, while for indoors micro-quadcopter flying, especially the ones that come bundled into the ultra-cheap quadcopters like the hubsan x4, they are probably more like 10mW transmitters. (source: Shane). *
Note: I was confused about 4ch versus 5ch and 6ch transmitters. The 5th and 6th channels are usually extra buttons or knobs, e.g. for mode switching.
Anyway, so with the latter, I only need a transmitter, but I need a DSM transmitter. I was concerned at first about reusability of DSM parts, i.e. whether I could easily read the DSM receiver signals and reinterpret them to control a robot. I don’t want people to just be stuck with parts they can’t use unless they build another quadcopter or something. With the normal 2.007 radio rx/tx, I know it’s pretty easy — Sparkfun has a guide here: https://www.sparkfun.com/tutorials/348 “RC Hobby Controllers and Arduino”. According to Shane and Charles, with DSM radios it should be pretty straightforward as well, as there are also PWM receivers.
More clearly, Shane explains it:

there is the link between the receiver and the transmitter, which is wireless
that is what DSM, DSM2, DSMX, FHSS, and 2.4GHz refer to
then there is the link between the receiver and the microcontroller controlling the quadrotor
that is what PWM, serial, and sbus refer to
so you can mix and match, to some extent…you can have a DSM PWM receiver or a DSM serial receiver
you cannot have a DSM Sbus receiver though
because DSM is a Spektrum technology and S.Bus is a Futaba technology and they are competitors

With respect to the hobbyking microquad kit, Shane says:

the one that came with my microquad is a DSM2 serial receiver
which can bind with any DSM transmitter
but some of the more commercial microquads (less targeted towards RC people, more towards being sold in gift stores) tend to use generic 2.4GHz serial receivers
which are not compatible with DSM
so they sell them with the matching transmitter
and that’s all you can use

me:

and I cannot find a receiver that will pair with that el commercial transmitter easily
so not reusable in that manner either
correct?

Shane:

not likely
unless they happen to use the same generic 2.4GHz chip

==========

The other thing I can get is to get a hobbyking microquad frame, the one without flight controller, motors, props, and batteries. This may be the path to follow in the future if I want to build my own atmega quadrotor from near-scratch, like my fellow builders (Shane: http://www.instructables.com/id/PCB-Quadrotor-Brushless/ , Charles: http://www.etotheipiplusone.net/?cat=89, Jamison: http://thevariableconstant.blogspot.com/p/kawaiicopter-v13.html).
Micro Integrated PCB w/ESCs Quadcopter Frame 235mm (KIT) (USA warehouse)
(doesn’t come assembled)
So, it’s missing a lot of things, including the flight controller
About flight controllers, Charles says:

KK, Ardupilot, and Multiwii are the three well known top level strains
they all work about the same with different levels of integration and size
and available software
KK is fairly basic and self contained
to ardupilot where you can use PC side software and set waypoints and live data streaming and what not
for a micro quad you’d proabbly be gunning for size and weight the most 

my recommendation would be http://www.hobbyking.com/hobbyking/store/__27033__MultiWii_328P_Flight_Controller_w_FTDI_DSM2_Port.html for your list – it’s extremely small and is basically an arduino so you can code hack easily
and it has all n degrees of freedom you could want anyway
i would wager against the “hobbyking native” boards – they are typically based off old KK versions 

With this frame, though, I can use my own transmitter, which means I can use el cheapo 2.4 ghz transmitters from hobbyking. I could also start development on my own flight controller board, initially with the expensive ($40-$60) IMU boards from sparkfun and then eventually down to just using the invensense MPU3050 or MPU6050 ICs ($3 or something).
===========

So at the end of today that’s where I’m at. I’m still forming the shopping list, but I thought I should get this braindump out. I am going to investigate all options — 
  1. the hobbyking atmega kit (just needs a cheap DSM transmitter, but then I could not release the full kit as open source, and the transmitter costs $20 on ebay so the total cost is ~$70 and I don’t know how to legit source DSM transmitters in large quantities for cheap yet — otherwise the total cost is closer to $120)
  2. the hobbyking frame (for research into building my own quad), loading my own firmware onto a commercial quad that is atmega-based (have to find one that is first, or investigate the ARM source code available currently)
  3. and building a pcb quadrotor from scratch.
Additional trade-off: smaller copters are safer and less likely to maul you, but their time constants are also smaller so that they are harder to program controls for.
===========
Appendix
Things Shane said: 

yeah the receivers on the HK microquad are serial output, not PWM
they would feed into a bigger, PWM-output receiver on a model airplane
so you could have two or more serial “satellite” receivers feeding on master PWM receiver
for redundancy on large model airplanes
if one satellite fails, the other still works

additionally
the microquads tend not to use PWM receivers, though, because they’re too big
you can get really small ones or take the case off and desolder all the headers from the big ones
yeah just look for four channel micro receivers
but there are only a few that will actually bind to the HobbyKing radios
and i’m not sure if they have small ones
DSM is a more widely used protocol so you can find DSM receivers of all shapes and sizes

Conversation between Charles and I:

do those flight controllers also have software on them / in the community? 

yes, you do not have to write the software, it comes preloaded 

but is the source code available to work with 

yes it is as far as i know they’re all community/OS projects 

are any of the microquads on the market atmega based? the complete ones on the market like the hubsan x4 

oh that i don’t know unless they specifically advertise one of the big hardware families, i doubt it
the KKs are ATmega1280? based
modern ardupilots are all atmel ARM cores

* Shane said:

one is that the most expensive part is the plastic and mechanicals

two is that their customer base (RC people) is different than the customer base for the little transmitters that come with the micro quads

the RC people want full-range transmitters (100mW Tx power or more)

so they can fly full-size planes outdoors with them

the ones that come with the micro quads are low-power transmitters for indoor use

maybe 10mW

you can get one of those for pretty cheap: http://compare.ebay.com/like/380587527000?var=lv&ltyp=AllFixedPriceItemTypes&var=sbar

beginning ukulele resources

i borrowed an instrument for the summer from Nick

sorry for the terrible lighting and picture quality, but i’m enamored with my new Magic SmartPhone right now 😀

it’s tuned like the ukulele (well, with low-G / low-4th/ linear tuning instead of the standard reentrant C tuning)

and here are some of the resources I’ve been using to learn ukulele. I have some advantage in that I already know how to read sheet music, play piano so I can play strange rhythms, and also got some tips from Nick introducing me to things like what are picking patterns and hammer on / pull offs. but essentially i’m a complete beginner.

top 100 ukulele sites: http://www.topukulelesites.com/

well-done online tuner: http://www.get-tuned.com/online_ukulele_tuner.php

excellent video course: http://ukuleleunderground.com/courses/beginner/ includes “ukulele minutes”, short videos for when I’m feeling scatterbrained

excellent pdf and other resources: http://ukulelehunt.com/2010/02/24/beginner-ukulele-lessons/

more resources, these tend to be videos: http://www.ukuleletricks.com/ukulele-lessons/

This video was excellent (“in 10 minutes”):
https://www.youtube.com/watch?v=APYXhN8yUg0

[Edit 12 Jun 2013] Another excellent site: http://www.ezfolk.com/uke/index.html

Then for some tabs:
Excellent stairway to heaven tab: http://ukutabs.com/l/led-zeppelin/stairway-to-heaven/

The only other full tab I found on that site, but I don’t recognize the song, is Blackbird: http://ukutabs.com/t/blackbird/

Folk music tabs: http://www.kenmiddleton.co.uk/Pages/FreeTabDownloads.aspx
(from: http://www.ukuleleunderground.com/forum/showthread.php?38750-Folk-music-on-a-ukulele)

Canon in C: http://www.songsterr.com/a/wsa/mrpook-canon-in-c-ukulele-easy-tab-s91563t0

and others here: http://www.songsterr.com/a/wa/search?pattern=ukulele

including the crazy while my guitar gently weeps:
http://www.songsterr.com/a/wsa/jake-shimabukuro-while-my-guitar-gently-weeps-ukulele-fingerstyle-with-intro-like-in-sungha-jung-2006-version-tab-s381032t0
that is apparently a “rite of passage” for ukulele players

easier but still beyond my current skill level: http://www.songsterr.com/a/wsa/mrpook-kiss-the-rain-ukulele-tab-s381443t0

low G tabs: http://pdfminstrel.wordpress.com/2-standard-high-g-ukulele-pdfs/low-g-ukulele-tabs-3/

I don’t really get the “tabs” that only have chords. Am I supposed to sing the song and strum the chords? =__= I suspect that’s what’s expected, but I’m not much of a singer and I don’t know many songs well enough to sing their melodies.

Ukulele underground also does play along videos:
https://www.youtube.com/watch?v=GTFRfFKBl2U

And some inspirational videos:
Let’s Dance (bukuro) https://www.youtube.com/watch?v=ZqaYmQZgrB4
I’m Yours (Sungha Jung) https://www.youtube.com/watch?v=E2OEuyF_2u8
and the classic, While My Guitar Gently Weeps (bukuro again) https://www.youtube.com/watch?v=puSkP3uym5k

Hrm, in the meantime, a gazillion projects. More later…

=====
Notes to self
=====
http://www.kenmiddleton.co.uk/Pages/FreeTabDownloads.aspx

Arkansas Traveler
http://www.youtube.com/watch?v=U5JP0LsH76Q
wut. in this version this guy is playing the harmonica and strumming the ukulele at the same time
http://www.youtube.com/watch?v=2qaK5WishAA
Ashokan Farewell (difficult)
http://www.youtube.com/watch?v=Nr-ddFZVrtE
Concertina Reel
http://www.youtube.com/watch?v=YJL7GFHJpcA
Down by the Salley Gardens
http://www.youtube.com/watch?v=-al5oqt3nyM
Fanny Power
http://www.youtube.com/watch?v=dlNx_POdIms
(campanella? http://ukulelehunt.com/2010/03/31/campanella-ukulele/)

On the issue of linear (what I have, low-G) versus reentrant tuning:
http://www.ukuleleunderground.com/forum/archive/index.php/t-52942.html?s=08b159867035343637fc184b0323f4d6
” Songs written for ukulele, especially the early classics from the 20s and 30s nearly always sound better on a reentrant uke. So do bluegrass songs when strummed. Songs written for guitar, rock, blues, etc seem to sound best when played with a low G uke.”
“Check out Herb Ohta Jr. if you’re looking for a specific artist. He’s the top dog when it comes to plain, beautiful low-g ‘ukulele work. Something like his “Sand Castles” is a brilliant piece.”

More tabs:
http://www.chiefnoda.com/ukulele/ has low-G pieces

=====
Bookmarks of what I’m learning next:
=====
http://ukulelehunt.com/2008/10/22/ukulele-strumming/
http://ukuleleunderground.com/lessons/how-to-switch-chords/

fcpx and external hard drives on a mac; or, film editing at MIT: project dx/dt

I’m working on documentary on how sexual violations have affected the MIT community (https://sites.google.com/site/projectdxdt/). More about it someday (edit: you can read my co-producer Chacha Durazo’s blog post on it here: http://blog.chachadurazo.com/2013/05/project-dxdt.html). But the screening is in two days and we’ve just started editing. (Edit: film will be released online within a week. Edit: up at www.youtube.com/watch?v=fIuN7AgpaLAg).

There is a Macathena cluster on campus in building 26 with the video editing software (super fancy) final cut pro X installed. perfect!

Well, some hitches. I had to backup everything off my external hard drive and format it to be some special Mac format, otherwise the hard drive appears as read only on the Mac computers.
http://support.apple.com/kb/TA25066

http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard-drives-and-final-cut-pro-x/

Of course, the point of this is to make sure I can back-up my “project” files in fcpx (the native file format, in a sense). I was going to set my scratch disks onto an external hard drive (http://uncw.edu/filmstudies/tutorials/fcpsdhdd.html) but,

According to
http://forums.creativecow.net/thread/8/1139827 seems like I shouldn’t do all my editing on an external hard drive connected via USB. as of 2011 at least… probably when I bought the drive

Edit your project on a different computer

http://help.apple.com/finalcutpro/mac/10.0.6/#verb8e5fcf4

What the heck is with the different import formats?
Looks like for best quality, since I have plenty of hard drive space, I should go with “optimize” checked (but I can also check proxy media at the same time? What does that do? Mostly I want to know the effect on the final output and the effect on how long I have to spend waiting on the spinning cursor…)
http://www.larryjordan.biz/media-in-fcp-x/

Ran into this issue where all the export options were grayed out (and importing had not changed in hours in background tasks list)
http://forums.macrumors.com/showthread.php?t=1199680

http://www.larryjordan.biz/fcpx-position-tool/

Editing audio keyframes
http://www.premiumbeat.com/blog/fcp-x-audio-tutorial-part-3-using-final-cut/
(hit “r” for the range, then just drag the audio level bar up and down)

Censor effect under “stylize”
https://discussions.apple.com/thread/3165223?start=0&tstart=0

Compressing files .mov to mpeg4
http://askubuntu.com/questions/25514/how-can-i-maximum-compress-video-files
==
Time:
backing up files from external hard drive to local scratch disk – 40 minutes (so all files are local for editing)
importing files into final cut from local scratch disk – 11pm to ?

Export 38 minute video, full size (master, same size as source video) to external hard drive= 1.5 hours
==
Previous blog post about fcpx:
http://www.orangenarwhals.com/?p=105

projects blog (nouyang)