Hackaday Links Column Banner

Hackaday Links: April 11, 2021

Bad news, Martian helicopter fans: Ingenuity, the autonomous helicopter that Perseverance birthed onto the Martian surface a few days ago, will not be taking the first powered, controlled flight on another planet today as planned. We’re working on a full story so we’ll leave the gory details for that, but the short version is that while the helicopter was undergoing a full-speed rotor test, a watchdog timer monitoring the transition between pre-flight and flight modes in the controller tripped. The Ingenuity operations team is going over the full telemetry and will reschedule the rotor test; as a result, the first flight will occur no earlier than Wednesday, April 14. We’ll be sure to keep you posted.

Anyone who has ever been near a refinery or even a sewage treatment plant will have no doubt spotted flares of waste gas being burned off. It can be pretty spectacular, like an Olympic torch, but it also always struck us as spectacularly wasteful. Aside from the emissions, it always seemed like you could at least try to harness some of the energy in the waste gasses. But apparently the numbers just never work out in favor of tapping this source of energy, or at least that was the case until the proper buzzword concentration in the effluent was reached. With the soaring value of Bitcoin, and the fact that the network now consumes something like 80-TWh a year, building portable mining rigs into shipping containers that can be plugged into gas flaring stacks at refineries is now being looked at seriously. While we like the idea of not wasting a resource, we have our doubts about this; if it’s not profitable to tap into the waste gas stream to produce electricity now, what does tapping it to directly mine Bitcoin really add to the equation?

What would you do if you discovered that your new clothes dryer was responsible for a gigabyte or more of traffic on your internet connection every day? We suppose in this IoT world, such things are to be expected, but a gig a day seems overly chatty for a dryer. The user who reported this over on the r/smarthome subreddit blocked the dryer at the router, which was probably about the only realistic option short of taking a Dremel to the WiFi section of the dryer’s control board. The owner is in contact with manufacturer LG to see if this perhaps represents an error condition; we’d actually love to see a Wireshark dump of the data to see what the garrulous appliance is on about.

As often happens in our wanderings of the interwebz to find the very freshest of hacks for you, we fell down yet another rabbit hole that we thought we’d share. It’s not exactly a secret that there’s a large number of “Star Trek” fans in this community, and that for some of us, the way the various manifestations of the series brought the science and technology of space travel to life kick-started our hardware hacking lives. So when we found this article about a company building replica Tricorders from the original series, we followed along with great interest. What we found fascinating was not so much the potential to buy an exact replica of the TOS Tricorder — although that’s pretty cool — but the deep dive into how they captured data from one of the few remaining screen-used props, as well as how the Tricorder came to be.

And finally, what do you do if you have 3,281 drones lying around? Obviously, you create a light show to advertise the launch of a luxury car brand in China. At least that’s what Genesis, the luxury brand of carmaker Hyundai, did last week. The display, which looks like it consisted mostly of the brand’s logo whizzing about over a cityscape, is pretty impressive, and apparently set the world record for such things, beating out the previous attempt of 3,051 UAVs. Of course, all the coverage we can find on these displays concentrates on the eye-candy and the blaring horns of the soundtrack and gives short shrift to the technical aspects, which would really be interesting to dive into. How are these drones networked? How do they deal with latency? Are they just creating a volumetric display with the drones and turning lights on and off, or are they actually moving drones around to animate the displays? If anyone knows how these things work, we’d love to learn more, and perhaps even do a feature article.

Learn Multirotors From First Principles

Multirotors, or drones as they’re popularly called, are so ubiquitous as to have become a $10 toy. They’re no less fun to fly for it though, and learning how they work is no less fascinating. It’s something [Science Buddies] has addressed in a series of videos examining them from first principles. They may be aimed at youngsters, but they’re still an entertaining enough watch for those of advancing years.

Instead of starting with a multirotor control board, the video takes four little DC motors and two popsicle sticks to make a rudimentary drone frame. Then with the help of dowels and springs it tethers the craft as the control mechanisms are explained bit by bit, from simple on-off motor control through proportional control to adding an Arduino and following through to how a multirotor stays in flight. It’s instructional and fun to watch, and maybe even for some of us, a chance to learn something.

We’ve had multirotor projects aplenty here over the years, but how about something completely different made from popsicle sticks?

Continue reading “Learn Multirotors From First Principles”

Micro Quadcopter Designed In OpenSCAD

Quadcopters are fantastical things, and now come in a huge variety of flavours, from lithe featherweight racers to industrial-grade filming rigs worth tens of thousands of dollars. The Beatle-1 from [masterdezign] comes in at the smaller scale, and its body was created entirely in code.

To create the Beatle-1, [masterdezign] used OpenSCAD, a 3D modelling program that uses code rather than visual tools for producing geometry. Thus, with a series of Boolean operations, extrusions and rotations, a basic lightweight quadcopter frame is created in a handful of lines of text. Then, it’s just a simple job of 3D printing the parts, wiring up four Olimex F1607 motors and hooking up a flight controller and the little drone is ready for takeoff.

The Beatle-1 serves as not only a fun flying toy but also a great example of applying OpenSCAD modelling techniques to real-world applications. Parts are available on Thingiverse for those wishing to roll their own. 3D printed drone frames are popular, and we’ve seen a few around these parts before. Video after the break.

Continue reading “Micro Quadcopter Designed In OpenSCAD”

Web Tool Cranks Up The Power On DJI’s FPV Drone

Apparently, if the GPS on your shiny new DJI FPV Drone detects that it’s not in the United States, it will turn down its transmitter power so as not to run afoul of the more restrictive radio limits elsewhere around the globe. So while all the countries that have put boots on the Moon get to enjoy the full 1,412 mW of power the hardware is capable of, the drone’s software limits everyone else to a paltry 25 mW. As you can imagine, that leads to a considerable performance penalty in terms of range.

But not anymore. A web-based tool called B3YOND promises to reinstate the full power of your DJI FPV Drone no matter where you live by tricking it into believing it’s in the USA. Developed by the team at [D3VL], the unlocking tool uses the new Web Serial API to send the appropriate “FCC Mode” command to the drone’s FPV goggles over USB. Everything is automated, so this hack is available to anyone who’s running a recent version of Chrome or Edge and can click a button a few times.

There’s no source code available yet, though the page does mention they will be putting up a GitHub repository soon. In the meantime, [D3VL] have documented the command packet that needs to be sent to the drone over its MODBUS-like serial protocol for others who might want to roll their own solution. There’s currently an offline Windows-only tool up for download as well, and it sounds like stand-alone versions for Mac and Android are also in the works.

It should probably go without saying that if you need to use this tool, you’ll potentially be violating some laws. In many European countries, 25 mW is the maximum unlicensed transmitter power allowed for UAVs, so that’s certainly something to keep in mind before you flip the switch. Hackaday isn’t in the business of dispensing legal advice, but that said, we wouldn’t want to be caught transmitting at nearly 60 times the legal limit.

Even if you’re not interested in fiddling with drone radios, it’s interesting to see another practical application of the Web Serial API. From impromptu oscilloscopes to communicating with development boards and conference badges, clever developers are already finding ways to make hardware hacking easier with this new capability.

[Thanks to Jules for the tip.]

Lost A Lightweight Quadcopter? Here Are The Best Ways To Find It

Lost aircraft are harder to find when they are physically small to begin with. Not only are they harder to see, but the smaller units lack features like GPS tracking; it’s not normally possible to add it to a tiny aircraft that can’t handle much more than its own weight in the first place. As a result, little lost quads tend to be trickier to recover in general.

Fluorescent tape adds negligible weight, and will glow brightly at night under a UV light.

The good news is that [Eric Brasseur] has shared some concise tips on how to more easily locate and recover lost aircraft, especially lightweight ones. Recovering aircraft is something every aircraft hobbyist has had to deal with in one way or another, but [Eric] really has gathered an impressive list of tricks and techniques, and some of them go into some really useful additional detail. It occurs to us that a lot of these tips could apply equally well to outdoor robots, or rovers.

Even simple techniques can be refined. For example, using bright colors on an aircraft is an obvious way to increase visibility, but some colors are better choices than others. Bright orange, white, and red are good choices because they are easily detected by the human eye while still being uncommon in nature. Violet, blue, and even cyan on the other hand may seem to be good choices when viewed indoors on a workbench, but if the quad is stuck in dark bushes, those colors will no longer stand out. Another good tip is to consider also adding a few patches of fluorescent tape to the aircraft. If all else fails, return at night with a UV lamp; those patches will glow brightly, and be easily seen from tens of meters.

Some of the tips are used while the device still has power, while others don’t depend on batteries holding out. [Eric] does a great job of summing up those and many more, so take a look. They might come in handy when test flying quadcopters that are little more than an 18650 cell, motors, and a 3D-printable frame.

Demonstrating The Mars Rover Pendulum Problem With A Drone On Earth

The sky crane system used on the Perseverance and Curiosity Mars rovers is a challenging control system problem that piqued [Nicholas Rehm]’s curiosity. Constrained to Earth, he decided to investigate the problem using a drone and a rock.

The setup and the tests are simple, but clearly illustrate the problem faced by NASA engineers. [Nicholas] attached a winch mechanism to the bottom of a racing-type quadcopter, and tied a mass to the end of the winch line. At first, he built a foam model of the rover, but it proved to be unstable in the wake of the quadcopter’s propellers, so he used a rock instead. The tests start with the quadcopter taking off with the rock completely retracted, which is then slowly lowered in flight until it reaches the end of the line and drops free. As soon as the rock was lowered, it started swinging like a pendulum, which only got worse as the line got longer. [Nicholas] attempted to reduce the oscillations with manual control inputs, but this only made it worse. The quadcopter is also running [Nicholas]’s own dRehmFlight flight controller that handles stabilization, but it does not account for the swinging mass.

[Nicholas] goes into detail on the dynamics of this system, which is basically a two-body pendulum. The challenges of accurately controlling a two-body pendulum are one of the main reasons the sky crane concept was shelved when first proposed in 1999. Any horizontal movement of either the drone or the rock exerts a force on the other body and will cause a pendulum motion to start, which the control system will not be able to recover from if it does not account for it. The real sky crane probably has some sort of angle sensing on the tether which can be used to compensate for any motion of the suspended rover. Continue reading “Demonstrating The Mars Rover Pendulum Problem With A Drone On Earth”

Orphaned Gimbal Gets Second Chance To Fly

A reality of flying RC aircraft is that at some point, one of your birds is going to fall in the line of duty. It could get lost in the clouds never to be seen again, or perhaps it will become suddenly reacquainted with terra firma. Whatever the reason, your overall enjoyment of the hobby depends greatly on how well you can adapt to the occasional loss.

Based on what we’ve seen so far, we’d say [Rural Flyer] has the right temperament for the job. After losing one of his quadcopters in an unfortunate FPV incident, he decided to repurpose the proprietary gimbal it left behind. If he still had the drone he could have slipped a logic analyzer in between its connection with the motorized camera to sniff out the communication protocol, but since that was no longer an option, he had to get a little creative.

Figuring out the power side of things was easy enough thanks to the silkscreen on the camera’s board, and a common 5 V battery eliminator circuit (BEC) connected to the drone’s 7.4 V battery pack got it online. A cobbled together adapter allowed him to mount it to one of his other quads, but unfortunately the angle wasn’t quite right.

[Rural Flyer] wanted the camera tilted down about 15 degrees, but since he didn’t know how to talk to it, he employed a clever brute force solution. After identifying the accelerometer board responsible for determining the camera’s position, he use a glob of hot glue to push the sensor off of the horizontal. Providing this physical offset to the sensor data caused the camera to automatically move itself to exactly where he wanted it.

Continue reading “Orphaned Gimbal Gets Second Chance To Fly”