Reverse Engineering Quadcopter Protocols

Necessity is the mother of invention, but cheap crap from China is the mother of reverse engineering. [Michael] found a very, very cheap toy quadcopter in his local shop, and issued a challenge to himself. He would reverse engineer this quadcopter’s radio protocol. His four-post series of exploits covers finding the right frequency for the radio, figuring out the protocol, and building his own remote for this cheap toy.

[Michael] was already familiar with the capabilities of these cheap toys after reading a Hackaday post, and the 75-page, four language manual cleared a few things up for him. The ‘Quadro-Copter’ operated on 2.4GHz, but did not give any further information. [Michael] didn’t know what channel the toy was receiving on, what data rate, or what the header for the transmission was. SDR would be a good tool for figuring this out, but thanks to Travis Goodspeed, there’s a really neat trick that will put a 2.4GHz nRF24L01+ radio into promiscuous mode, allowing [Michael] to read the transmissions between the transmitter and quadcopter. This code is available on [Michael]’s github.

A needle in an electromagnetic haystack was found and [Michael] could listen in on the quadcopter commands. The next step was interpreting the ones and zeros, and with the help of a small breakout board and soldering directly to the SPI bus on the transmitter, [Michael] was able to do just that. By going through the nRF24 documentation, he was able to suss out the pairing protocol and read the stream of bytes that commanded the quadcopter.

What [Michael] was left with is a series of eight bytes sent in a continuous stream from the transmitter to the toy. These bytes contained the throttle, yaw, pitch, roll, and a ‘flip’ settings, along with three bytes of ‘counters’ that didn’t seem to do anything.  With that info in hand, [Michael] took an Arduino Nano, an nRF04L01+ transceiver, and a Wii nunchuck to build his own transmitter. If you’re looking for a ‘how to reverse engineer’ guide, it generally doesn’t get better than this.

You can check out a video of [Michael] flying his Wiimoted quadcopter below.

Continue reading “Reverse Engineering Quadcopter Protocols”

Real World Race Track Is Real Hack

[Rulof] never ceases to impress us with what he comes up with and how he hacks it together. Seriously, how did he even know that the obscure umbrella part he used in this project existed, let alone thought of it when the time came to make a magnet mount? His hack this time is a real world, tabletop race track made for his little brother, and by his account, his brother is going crazy for it.

His race track is on a rotating table and consists of the following collection of parts: a motor, bicycle wheel, casters from a travel bag, rubber bands (where did he get such large ones?), toy car and steering wheel from his brother, skateboard wheels, the aforementioned umbrella part and hard drive magnets. In the video below we like how he paints the track surface by holding his paint brush fixed in place and letting the track rotate under it.

From the video you can see the race track has got [Rulof] hooked. Hopefully he lets his brother have ample turns too, but we’re not too sure. Some additions we can imagine would be robotics for the obstacles, lighting, sounds and a few simulated explosion effects (puffs of flour?).

Continue reading “Real World Race Track Is Real Hack”

Fallout 4 Gets Logic Gates, Is Functionally Complete

Fallout logic. This is literally called Fallout logic. This is far more confusing than it should be.
Fallout logic. This is literally called Fallout logic. This is far more confusing than it should be.

Fallout 4, the latest tale of post-apocalyptic tale of wasteland wanderers, got its latest DLC yesterday. This add-on, Contraptions Workshop, adds new objects and parts to Fallout 4‘s settlement-building workshop mechanic. This add-on brings more building pieces, elevators, and most importantly logic gates to Commonwealth settlements.

The Fallout logic gates are used in conjunction with electric generators, lights, and automated sentries used to build settlements. Although a simple NAND would do, there are several types of logic gates including AND, OR, XOR, NOT, NAND, NOR, and XNOR.

The in-game explanation for these gates is very, very weird. AND, OR, and XOR “transmit power or not depending on the combination of power to their inputs”. NOT, NAND, NOR, and XNOR are apparently different, “only transmitting power if their inputs are connected directly to the output of other logic gates”. The reason for this arbitrary distinction between different sets of gates is currently unknown except to a few programmers and project leaders at Bethesda. It should be noted {AND, OR, XOR} is not functionally complete.

With implementations of logic gates in video games comes some very interesting if useless applications. Already Fallout 4 has light boxes, allowing for huge animated billboardsFallout speakers, the wasteland’s equivalent of Minecraft’s note block, can be used to play simple melodies. You can do anything with a NAND, so we would expect automated, sequenced versions of animated billboards and monophonic synthesizers to appear in short order.

Functional completeness can add a lot to a game. Since Minecraft added redstone logic to the game, we’ve seen some very, very impressive block-based builds. The Minecraft CPU generally regarded as being the first, most complete CPU took about three months to design and build. This build didn’t use later additions to the redstone toolbox like repeaters, pistons, and the now-cheaty command blocks.

Brutal Water Cannon Defeats Summer Heat; Kills It On Documentation

There’s a war on, and while this over-the-top water blaster is certainly an escalation in the Water Wars arms race, that’s not the war we’re referring to. We’re talking about the Documentation War. Hackers, you’re on notice.

Gj3YAOLIf you want to see how a project should be documented, look no further than [Tim]’s forum posts over at WaterWar.net. From the insanely detailed BOM with catalog numbers and links to supplier websites, to scads of build photos with part number callouts, to the finely detailed build instructions, [Tim] has raised the stakes for anyone that documents any kind of build.

And that’s not even touching on the merits of the blaster itself, which has air and water tanks plumbed with every conceivable valve and fitting. There’s even an inline stream straightener made of bundled soda straws to keep the flow as laminar as possible. It looks like [Tim] and his colleagues are obsessed with launching streams of water as far as possible, and although bad weather has prevented an official measurement so far, from the video below it sure looks like he’s covering a huge distance with a stream that stays mostly intact to deliver the full blast to its intended target without losing a drop.

For as much fun as amped-up water guns appear to be, we haven’t seen too many grace these pages before. Going way back we covered a DIY super-soaker. For something much less involved than [Tim’s] masterpiece, you can pull together this pressurized water pistol in an afternoon.

Continue reading “Brutal Water Cannon Defeats Summer Heat; Kills It On Documentation”

Reverse Engineering Hoverboard Motor Drive

The must-have toy of the moment last winter was the “Hoverboard”. We all probably secretly wished them to be the boards from the Back to the Future series of films made real, but the more achievable reality is a self-balancing scooter somewhat akin to a miniature Segway. It seemed every child wanted one, schools banned them, and there was a media frenzy over some of the cheaper models that lacked protection circuitry for their li-ion batteries and thus had a tendency for self-incineration.

[Drew Dibble] is interested in the Power Racing Series (PRS), in which toy electric cars are souped up for competition. Casting around for a source of cheap and relatively powerful motors he lit upon the self-balancing scooters, and waited on Craigslist for the inevitable cast-offs. His resulting purchase had two 350W brushless hub motors and all the associated circuit boards for motor control, gyroscope, and oddly a Bluetooth speaker. The motor control board received an unknown two-wire digital feed from the scooter’s control board, so he set to work investigating its protocol. His write-up of how he did it is an interesting primer in logic line detective work.

Hooking up his logic analyzer he was quickly able to rule out the possibility of the control signal being PWM because all signals followed the same timing. Both lines had data so he was able to rule out I2C, for in that case one line would carry a clock. He was therefore left with a serial line, and taking the 38 microsecond timing interval, he was able to calculate that it had a rather unusual bitrate of 26315 BPS. Each packet had a multiple of 9 bits so he either had 9-bit or 8-bit with parity, and trying all possible parity schemes resulted in parity errors. Therefore the boards used a highly unusual 9-bit non-standard bitrate serial port. Some experimentation led him to an Arduino library, and he was able to get some movement from his motors. Some clever timing detective work later and he could make them move at will, success!

All his code for the project is on GitHub, for his 9-bit SoftwareSerial library and a motor control sketch.

If you want a real Back to the Future hoverboard then you may have to wait a while longer. We have featured a replica made as an unrideable floating artwork though, and a working board that is more of a personal hovercraft.

Continue reading “Reverse Engineering Hoverboard Motor Drive”

Gyroman Walks With Just One Motor

For some reason, we seem to really want our robots to walk on two legs like we do. And this despite how much the robots themselves want to be made out of motors, which match up so naturally with wheels. The result is a proliferation of inventive walking mechanisms. Here’s another.

Gyroman is a 3D printed gyroscope with legs. The gyroscope is geared down to lift one leg and then the other. First-semester physics, that we still find a little bit magical, makes the gyro precess and the robot turns a bit. Time these just right and it walks. See the video below for a demo. (Admittedly, Gyroman looks like he’s had a bit too much to drink as he winds down.)

Continue reading “Gyroman Walks With Just One Motor”

35 MPH NERF Darts!

Did you know the muzzle velocity of a NERF dart out of a toy gun? Neither did [MJHanagan] until he did all sorts of measurement. And now we all know: between 35 and 40 miles per hour (around 60 km/h).

foo_thumbnailFirst, he prototyped a single beam-break detector (shown above) and then expanded his build to two in order to get velocity info. A Propeller microcontroller took care of measuring the timing. Then came the gratuitous statistics. He took six different darts and shot them each 21 times, recording the timings. Dart #3 was the winner, but they all had similar average speeds. You’re not going to win the office NERF war by cherry-picking darts.

Anyway, [MJ] and his son had a good time testing them out, and he thinks this might make a good kids’ intro to science and statistics. We think that’s a great idea. You won’t be surprised that we’ve covered NERF chronographs before, but this implementation is definitely the scienciest!

Thanks [drudrudru] for the tip!