Europe Loses Six Minutes Due To Sagging Frequency And International Politics

You might be reading this six minutes early. Assuming that the Hackaday editors have done their job, this article should have appeared in your feed right on the half-hour. We have a set schedule to keep you supplied with the tastiest of hardware hacks and news. For some of you though perhaps there has been a treat, you’ve seen it and all the other stories six minutes early.

Have you perfected time travel? Sadly not unless there’s something you’d like to send to our tips line last week, but the culprit is equally fascinating. A dispute between Serbia and Kosovo has caused the frequency of the interconnected continental European electricity grid to drift below its usual 50 Hz figure for a sustained period, and as a result all clocks that use the mains frequency as a time reference have been getting ever slower.

How Can a Continental Power Grid Dip?

Think for a minute of a modern car on a hot day. When you turn on the air conditioning you will hear a slight dip in the engine revs as it accommodates the extra load. So it is with an alternating current power grid; a simple example is a power station supplying a city. In periods such as cold nights when the demands of the city go up, the result would be that the power station needs to work harder to satisfy it, and until that happens there would be a slight dip in its line frequency. Power grids compensate for this by increasing and decreasing the available generating capacity in real time, maintaining a mean frequency such that the “grid time” of a clock controlled by it matches an atomic clock as closely as possible over time.

Screenshot of Swissgrid live frequency data

In the case of continental Europe, grids across multiple countries are connected (PDF), and the task of maintaining that mean frequency falls upon Swissgrid which currently shows a sagging 49.976 Hz frequency. The time deviation of -346 seconds puts this close to a six minute loss and clocks running on this frequency will make you late to your next appointment.

It is at this point we leave the realm of electrical engineering and enter that of international politics, normally something far removed from Hackaday’s remit. It is fair to say that the history between Serbia and Kosovo is extremely delicate, and to understand some of the context of this story you should read about the war at the end of the 1990s. After the conflict the Serbian-majority region of what is now Kosovo refused to pay the Kosovan utility for its electricity, eventually leading to the Kosovans refusing to pay for that region’s share of the power received by Kosovo from Serbia. The resulting imbalance between demand and supply was enough to drag the supply frequency down across the whole continent, and though a short-term agreement has been reached the problem still remains on the grid.

Clocks and Mains Frequency

So if you are a continental European and you find yourself six minutes behind your British or American friends, don’t worry. We know that among our readers are people with significant experience in the power generation world, perhaps some of you would like to use your six minutes to give us a bit of insight in the comments. Meanwhile here at Hackaday we maintain an interest in the mechanics of power distribution even if some might say that it is Not A Hack. We’ve taken a look at utility poles, and examined how power grids are synchronised.

As for those slow clocks, the use of mains frequency to keep accurate time is quite brilliant and has been used reliably for decades. Tightly regulating grid frequency means that any clock plugged into an outlet can have the same dead-on accuracy for the cost of a few diodes. These clocks count the zero crossing of the alternating current. There may be moment to moment drifts but the power utility injects or removes cycles over the long term so the sum of crossings is dead on over the course of the day. It’s an interesting phenomenon to experiment with and that’s why we see it in microcontroller projects from time to time.

Linux Fu: Regular Expressions

If you consider yourself a good cook, you may or may not know how to make a souffle or baklava. But there are certain things you probably do know how to do that form the basis of many recipes. For example, you can probably boil water, crack an egg, and brown meat. With Linux or Unix systems, you can make the same observation. You might not know how to set up a Wayland server or write a kernel module. But there are certain core skills like file manipulation and editing that will serve you no matter what you do. One of the pervasive skills that often gives people trouble is regular expressions. Many programs use these as a way to specify search patterns, usually in text strings such as files.

If you aren’t comfortable with regular expressions, that’s easy to fix. They aren’t that hard to learn and there are some great tools to help you. Many tools use regular expressions and the core syntax is the same. The source of confusion is that the details beyond core syntax have variations.

Let’s look at the foundation you need to understand regular expression well.

Continue reading “Linux Fu: Regular Expressions”

Zip Tie Quadcopter Frame Is As Cheap As They Come

We’ve seen some cheap quadcopter builds over the years, but this one takes the cake. After seeing somebody post a joke about building a quadcopter frame out of zip ties and hot glue, [IronMew] decided to try it for real. The final result is a micro quadcopter that actually flies half-way decently and seems to be fairly resistant to crash damage thanks to the flexible structure.

The first attempts at building the frame failed, as the zip ties (unsurprisingly) were too flexible and couldn’t support the weight of the motors. Eventually, [IronMew] realized that trying to replicate the traditional quadcopter frame design just wasn’t going to work. Rather than a body with arms radiating out to hold the motors, the layout he eventually came up with is essentially the reverse of a normal quadcopter frame.

Zip ties reinforced with a healthy coating of hot glue are arranged into a square, with a motor at each corner. Then four zip ties are used to support the central “pod” which holds the battery and electronics. No attempt is made to strengthen this part of the frame, and as such the heavy central pod hangs down a bit in flight. [IronMew] theorizes that this might actually be beneficial in the end, as he believes it could have a stabilizing effect when it comes time to record FPV video.

He mentions that he’s still struggling to get the PID values setup properly in the flight computer, but in the video after the break you can see that it’s flying fairly well for a first attempt. We wouldn’t recommend you tear into a bag of zip ties when it comes time to build your first quadcopter, but it does go to show that there’s plenty of room for experimentation.

We’ve covered a number of unique quadcopter frames if you’re looking for something to set your next build apart from the rest. If you’ve got a big enough bed you can 3D print a very nice frame, but if you’ve got more time than equipment, you could always cut one out of a piece of plywood.

Continue reading “Zip Tie Quadcopter Frame Is As Cheap As They Come”

Google Ups The Ante In Quantum Computing

At the American Physical Society conference in early March, Google announced their Bristlecone chip was in testing. This is their latest quantum computer chip which ups the game from 9 qubits in their previous test chip to 72 — quite the leap. This also trounces IBM and Intel who have 50- and 49-qubit devices. You can read more technical details on the Google Research Blog.

It turns out that just the number of qubits isn’t the entire problem, though. Having qubits that last longer is important and low-noise qubits help because the higher the noise figure, the more likely you will need redundant qubits to get a reliable answer. That’s fine, but it does leave fewer qubits for working your problem.

Continue reading “Google Ups The Ante In Quantum Computing”

Racing The Beam On An ATtiny

For the last thirty or so years, the demoscene community has been stretching what is possible on computer systems with carefully crafted assembly and weird graphical tricks. What’s more impressive is hand-crafted assembly code pushing the boundaries of what is possible using a microcontroller. Especially small microcontrollers. In what is probably the most impressive demo we’ve seen use this particular chip, [AtomicZombie] is bouncing boing balls on an ATtiny85. It’s an impressive bit of assembly work, and the video is some of the most impressive stuff we’ve ever seen on a microcontroller this small.

First, the hardware. This is just about the simplest circuit you can build with an ATtiny85. There’s an ISP header, a VGA port with a few resistors, a 1/8″ audio jack driven by a transistor, and most importantly, a 40MHz crystal. Yes, this ATtiny is running far faster than the official spec allows, but it works.

The firmware for this build is entirely assembly, but surprisingly not that much assembly. It’s even less if you exclude the hundred or so lines of definitions for the Boing balls.

The resulting code spits out VGA at 204×240 resolution and sixty frames per second. These are eight color sprites, with Alpha, and there’s four-channel sound. This is, as far as we’re aware, the limit of what an ATtiny can do, and an excellent example of what you can do if you buckle down and write some really tight assembly.

Continue reading “Racing The Beam On An ATtiny”

Comic Boxes Reflect Owner’s Skills

We are the culmination of our experiences. We build with the tools we’re familiar. We design with the decorations we like. Sometimes this thinking leads to a project that looks like a kindergartener who has dressed in a pink tutu and a camo shirt. Sometimes our experience leads us to make something functional and elegant. [jordanlund] combined his work experience in a library, 3D modeling skills, and love of comic books to turn a hodgepodge pile of scribbled-upon boxes into an orderly collection of comic books in boxes adorned with brass drawer pulls.

3D printing bridged the gap between the brass card catalog drawer pulls he knew well from the library and the crates of comics he kept at home. Custom brackets allowed the drawer pulls, which were meant to be screwed into wooden drawer faces, to work with cardboard boxes. The drawer pulls have a slot for labels so there will be no need to rip off sticky labels later or scrawl with a permanent marker. Perhaps [jordanlund] is merely a bibliophile with a 3D printer but if we didn’t know better, we might think those boxes were meant to have the drawer pulls installed.

Engage your own love of literature with this wordplay riddled appeal for libraries. or make your home library a little more fantasical with a secret door.

A Relay Calculator With DIY Neon Displays, Just Because

This looks like one of those projects that started out as a glimmer of an idea and led down a rabbit hole. But it’s a pretty cool rabbit hole that leads to homebrew neon seven-segment displays on a calculator with relay logic.

It’s a little thin on documentation so far, but that’s because [Mark Miller]’s build is one of those just-for-the-fun-of-it things. He started with a bag full of NE-2 tubes and the realization that a 3D-printed frame would let him create his own seven-segment displays. The frames have a slot for each segment, with a lamp and current limiting resistor tucked behind it; with leads brought out to pins and some epoxy potting, these displays would be hard to tell from a large LED seven-segment. Rolling your own displays has the benefit of being able to extend the character set, which [Mark] did with plus-minus and equal sign modules. All of these went together into a two-banger calculator — addition and subtraction only so far — executed in relays and vacuum tubes. Version 2.0 of the calculator regressed to all-relay logic, which must sound great.

We heartily regret the lack of a satisfyingly clicky video, but we’ll give it a pass since this is so cool. We’ll be watching for more on this project, but in the meantime, if you still need to get your click on, this electromechanical BCD counter should help.