Hack a Day (hackaday_rss) rakstīja, @ 2013-12-29 15:00:00 |
|
|||
[SF Tester] (his real name, honestly, with a brother who does QA for Blizzard) recently picked up a Blade SR remote control helicopter. Compared to the cheap coaxial helicopters you can pick up from eBay or Amazon for $30, this heli is a huge step up, but it does have one weakness – it comes with its own transmitter, and binding it to [Tester]‘s shiny new DX9 transmitter is a pain.
The initial attempt at getting the proper values from the stock transmitter into his big-boy transmitter originally consisted of taking the stock transmitter, some servos, attaching them to homebrew protractors, and reading out the values of each axis manually. That’s a brute-force method of improving his new toy, so [Tester] sought out a better method.
The solution came via Arduino’s pulseIn() command. By connecting the stock receiver to an Arduino, [Tester] was able to precisely read the values coming from the stock transmitter and import them into his very fancy Spektrum DX9 transmitter.
Every Fubarino contest entry needs an easter egg, so when the value of the pulses coming from the stock transmitter is exactly 1337 microseconds, the Arduino spits out Hackaday’s URL to the serial console. Cleverly hidden, and a great way to improve an awesome heli. We can’t ask much more than that.
There’s no direct link for this, but you can literally see the code in the image after the break.
This is an entry in the Fubarino Contest for a chance at one of the 20 Fubarino SD boards which Microchip has put up as prizes!