A Power Button For Raspberry Pi, Courtesy Of Device Tree Overlays

As a standard feature of the Linux kernel, device tree overlays (DTOs) allow for easy enabling and configuration of features and drivers, such as those contained within the standard firmware of a Raspberry Pi system. Using these DTOs it’s trivial to set up features like as a soft power-off button, triggering an external power supply and enable drivers for everything from an external real-time clock (RTC) to various displays, sensors and audio devices, all without modifying the operating system or using custom scripts.

It’s also possible to add your own DTOs to create a custom overlay that combines multiple DTO commands into a single one, or create a custom device tree binary (DTB) for the target hardware. Essentially this DTB is loaded by the Linux kernel on boot to let it know which devices are connected and their configuration settings, very similar to what the BIOS component with x86-based architectures handles automatically.

Ultimately, the DTB concept and the use of overlays allow for easy configuration of such optional devices and GPIO pin settings, especially when made configurable through a simple text file as on the Raspberry Pi SBC platform.

Continue reading “A Power Button For Raspberry Pi, Courtesy Of Device Tree Overlays”

Replaceable Batteries Are Coming Back To Phones If The EU Gets Its Way

Back in the day, just about everything that used a battery had a hatch or a hutch that you could open to pull it out and replace it if need be. Whether it was a radio, a cordless phone, or a cellphone, it was a cinch to swap out a battery.

These days, many devices hide their batteries, deep beneath tamper-proof stickers and warnings that state there are “no user serviceable components inside.” The EU wants to change all that, though, and has voted to mandate that everything from cellphones to e-bikes must have easily replaceable batteries, with the legislation coming into effect as soon as 2024.

Continue reading “Replaceable Batteries Are Coming Back To Phones If The EU Gets Its Way”

High Noon For Daylight Savings Time

The US Senate has approved the “Sunshine Protection Act”, a bill to make Daylight Saving time the default time and do away with the annual time changes. While I can get behind the latter half of this motion, redefining Daylight Saving time as Standard time is, in my opinion, nonsense.

It’s particularly funny timing, coming right around the Vernal Equinox, when the sun stands at its highest right at Noon Standard Time, to be debating calling this time “one PM” forevermore.

Right Idea, Wrong Time

Let’s do a quick overview of the good idea here — doing away with time changes. These are known to cause sleep disturbances and this leads not just to sleepy heads on Monday morning, but to an increased risk of heart attack and accidents in general. When researchers look into the data, it’s the “springing forward” that causes trouble. People who’ve slept one extra hour don’t seem to suffer as much as people who’ve lost one. Go figure.

So maybe it makes sense to stop changing times. If we’re going to settle on one standard time, do we pick Standard time or Daylight Saving time? Admittedly, this is a totally unfair way to pose the question, but there are a number of good reasons to prefer all-year Standard time. The biggest one is winter. Basically, it’s already tough enough to get up on a cold January morning when the sun is not due to rise for another hour or two. Add another hour of darkness on top, and you know why the two previous attempts to run all-year Daylight Saving were short-lived. And why the Swedes drink so much coffee.

France-002886 – Sundial” by archer10 (Dennis) CC BY-SA 2.0.

There’s also the fundamental logic behind our measurement of time that’s stood for centuries, and is embedded in most of our cultural references to time. Ante Meridian and Post Meridian. High Noon, when the hour hand on the clock points straight up, represents the sun itself. But even before clocks, the sun’s halfway point along its daily journey marked the halfway point of the day. That’s not only why we eat lunch when we do, it’s the origin of man’s time-telling itself.

If we change the definition of noon permanently, we’ve decoupled time from the sun. How will we explain time to future children? I’ll accept Daylight Saving time when we start reprinting analog watches with 1 o’clock at the top and start referring to 12 AM as the one that’s just before the sun reaches its peak. As soon as “one noon” replaces “twelve noon”, I’ll get on board. Midnight, when the clock strikes one, just doesn’t send the same shiver down my spine. Sorry, Dracula.

If culture and physics point to Standard Time, why would you want Daylight Saving to be the new normal? When people think of Daylight Saving, they naturally think of those nice long summer days that stretch out into the night. My personal bet is that many folks are confounding summertime with Summer Time. Heck, even the name of the bill proposes to protect sunshine itself, rather than just move the hands of the clock around. These are not good reasons.

Continue reading “High Noon For Daylight Savings Time”

Tech In Plain Sight: Car Doors

There are a lot of common phrases that no longer mean what they used to. For example, you may have used the term “turn on the lights.” What are you actually turning? Where does this come from? Old gas lights had a valve that you did physically turn, and the phrase simply stuck around. Kids of the 90s have no idea why they “dial” a phone number. What about “roll up the car window”?  You don’t often encounter old-fashioned car doors with manual locks or a crank to roll up the window. These days it is all electronic. But have you ever wondered what’s going on inside there?

Let’s take a look at car doors, how they keep you safe, and how that sheet of glass slides into place, sealing against wind, rain, and noise. Of course, there are fancy car doors like suicide doors or sexy-but-impractical gull wing doors. At least one concept car even has a door that disappears under the vehicle when it opens; check out the video below. But even garden-variety doors are marvels of mechanical engineering. A compact structure that is secure and — mostly — reliable. Let’s look at how they do that.

Continue reading “Tech In Plain Sight: Car Doors”

Owning A ShortWave Radio Is Once Again A Subversive Activity

An abiding memory for a teen fascinated by electronics and radio in the 1970s and 1980s is the proliferation of propaganda stations that covered the shortwave spectrum. Some of them were slightly surreal such as Albania’s Radio Tirana which would proudly inform 1980s Western Europe that every village in the country now possessed a telephone, but most stations were the more mainstream ideological gladiating of Voice of America and Radio Moscow.

It’s a long-gone era as the Cold War is a distant memory and citizens East and West get their info from the Internet, but perhaps there’s an echo of those times following the invasion of the Ukraine. With most external news agencies thrown out of Russia and their websites blocked, international broadcasters are launching new shortwave services to get the news through. Owning a shortwave radio in Russia may once again be a subversive activity. Let’s build one!

Continue reading “Owning A ShortWave Radio Is Once Again A Subversive Activity”

Run Your Own Server For Fun (and Zero Profit)

It seems there’s a service for everything, but sometimes you simply learn more by doing it yourself. If you haven’t enjoyed the somewhat anachronistic pleasures of running your own server and hosting your own darn website, well, today you’re in luck!

Yes, we’re going to take an old computer of some sort and turn it into a web server for hosting all of your projects at home. You could just as easily use a Raspberry Pi –even a Zero W would work — or really anything that’ll run Linux, but be aware that not all computing platforms are created equally as we’ll discuss shortly.

Yes, we’re going to roll our own in this article series. There are a lot of moving parts, so we’re going to have to cover a lot of material. Don’t worry- it’s not incredibly complicated. And you don’t have to do things the way we say. There’s flexibility at every turn, and you’re encouraged to forge your own path. That’s part of the fun!

Note: For the sake of space we’re going to skip over some of the most basic details such as installing Linux and focus on those that have the greatest impact on the project. This article gives a high level overview of what it takes to host your project website at home. It intentionally glosses over the deeper details and makes some necessary assumptions.

Continue reading “Run Your Own Server For Fun (and Zero Profit)”

The Tasmanian Tiger’s Comeback Tour, Powered By Science

Scientists estimate that approximately 900 species have gone extinct in the last five centuries alone, to say nothing of the thousands or millions that vanished from life in the billions of years before that.

Conventional wisdom states that once an animal has gone extinct, it’s gone forever. However, a team from the University of Melbourne hopes to change all that, with their new project aiming to bring the Tasmanian Tiger back to life.
Continue reading “The Tasmanian Tiger’s Comeback Tour, Powered By Science”