A Turing-Complete CPU From RAM

Building a general-purpose computer means that you’ll have to take a lot of use cases into consideration, and while the end product might be useful for a lot of situations, it will inherently contain a lot of inefficiencies. On the other hand, if you want your computer to do one thing and do it very well, you can optimize to extremes and still get results. This computer, built from RAM, is just such an example.

The single task in this case was to build a computer that can compute the Fibonacci sequence.  Since it only does one thing, another part of the computer that can be simplified (besides the parts list) is the instruction set. In this case, the computer uses a single instruction: byte-byte-jump. Essentially all this computer does is copy one byte to another, and then perform an unconditional jump. Doing this single task properly is enough to build every other operation from, so this was chosen for simplicity even though the science behind why this works is a little less intuitive.

Of course, a single instruction set requires a lot of clock cycles to work (around 200 for a single operation). The hardware used in this build is also interesting and although it uses a Raspberry Pi to handle some of the minutiae, it’s still mostly done entirely in RAM chips, only cost around $15, and is a fascinating illustration of some of the more interesting fundamentals of computer science. If you’re interested, you can build similar computers out of 74-series chips as well.

DIY Power Station Puts Ryobi Batteries To Work

Anyone with a few cordless tools has probably amassed quite a collection of batteries for them. If you’re a professional contractor, having a fleet of batteries you can swap out during the day’s work is a necessity. But if you’re just doing the occasional DIY project, those batteries are probably going to sit unused more often than not.

Looking to find alternative uses for his growing collection of Ryobi batteries, [Chris Nafis] has come up with a portable power station design that lets him put all that stored energy to use. With support for multiple charging standards and even an integrated work light, this device would be perfect to have around for power outages or to take with you on a camping trip.

Ryobi standardized on an 18 V battery a while back, so [Chris] is using a 10 A DC-DC buck converter to step that down to a more generally useful 12 V. From there he’s got a standard “cigarette lighter” automotive power connector which offers compatibility with a wide range of mobile devices such as small inverters or mobile radios. There’s also dual 2.4 USB “A” ports and a Quick Charge 3.0 compatible USB-C port for charging your mobile gadgets.

As an aside, this project is an excellent example of how powerful 3D printing can be when building your own hardware. Trying to make an interface for a Ryobi battery, without sacrificing a tool as a donor anyway, would be maddeningly difficult with traditional at-home manufacturing methods. But with a pair of calipers and a bit of time in your CAD package of choice, it’s possible to design and build an exact match that works like the real thing.

Which incidentally should make adapting the design to other battery types relatively easy, though editing STLs does pose its own set of unique challenges. A future improvement to this project could be making the battery interface a separate piece that can be swapped out instead of having to reprint the entire thing.

Continue reading “DIY Power Station Puts Ryobi Batteries To Work”

We Ruined Status LEDs; Here’s Why That Needs To Change

Ah, the humble status LED. Just about every piece of home electronics, every circuit module, and anything else that draws current seems to have one. In the days of yore, a humble indicator gave a subtle glow from behind a panel, and this was fine. Then the 1990s happened, and everything got much much worse.

It’s Not The Technology, It’s How You Use It

With great brightness, comes great responsibility.

The 1990s brought us much good: Nirvana, Linux, and of course the blue LED. Much like “Teen Spirit”, the latter quickly fell into overuse: the technology rapidly became the sigil of all that was new and great, much to the ocular pain of the buying public.

This decision ranks up there for stupidity with other such questionable choices as hiring a rental car at the airport, or invading Russia in the winter. A status LED, most would agree, is there to indicate status. It need only deliver enough light to be seen when observed by a querying eye. What it need not do is glow with the intensity of a dying star, or illuminate an entire room for that matter. But, in the desperate attempts of product designers to appear on the cutting edge, the new, brighter LED triumphed over all in these applications. Continue reading “We Ruined Status LEDs; Here’s Why That Needs To Change”

LEGO Microtonal Guitar: Building Blocks Of Music Theory

Is there anything LEGO can’t do, aside from turning to a soft gelatin when a human steps on one? The incredible range of piece sizes that make them such versatile building blocks extends their utility far beyond the playroom floor, as [Tolgahan Çoĝulu] demonstrates with his LEGO microtonal guitar.

His LEGO what now? If you’re in the western world, microtones simply refer to those that fall between the 12 semitones-per-octave shackles of the western scale. Microtones are smaller than semitones, so they can bring a richer flavor to music, as evidenced in eastern cultures. In the past, [Tolgahan] has made microtonal guitars with fixed and adjustable frets using standard fret wire. After his young son copied his design in LEGO, he decided to bring it to life.

[Tolgahan] and a friend designed and printed a compatible base plate fingerboard and glued it in place on an old classical guitar. Then he and his son spent hours digging through their hoard to look for 1x1s and other 1x pieces to build up the fingerboard.

Here’s where it gets really interesting — they printed a ton of special 1×1 pieces to build up the moveable frets. Since they’re 1x1s, they can also be used to teach music simply by moving them around to the notes of the scale or song being taught, no matter the hemisphere it comes from. Pluck your way past the break to watch the story play out and hear this LEGO guitar for yourself.

If [Tolgahan] and his son had used machine learning to sort their LEGO, it probably wouldn’t have taken so long to find all those 1x1s.

Continue reading “LEGO Microtonal Guitar: Building Blocks Of Music Theory”

How Does Starlink Work Anyway?

No matter what you think of Elon Musk, it’s hard to deny that he takes the dictum “There’s no such thing as bad publicity” to heart. From hurling sports cars into orbit to solar-powered roof destroyers, there’s little that Mr. Musk can’t turn into a net positive for at least one of his many ventures, not to mention his image.

Elon may have gotten in over his head, though. His plan to use his SpaceX rockets to fill the sky with thousands of satellites dedicated to providing cheap Internet access ran afoul of the astronomy community, which has decried the impact of the Starlink satellites on observations, both in the optical wavelengths and further down the spectrum in the radio bands. And that’s with only a tiny fraction of the planned constellation deployed; once fully built-out, they fear Starlink will ruin Earth-based observation forever.

What exactly the final Starlink constellation will look like and what impact it would have on observations depend greatly on the degree to which it can withstand regulatory efforts and market forces. Assuming it does survive and gets built out into a system that more or less resembles the current plan, what exactly will Starlink do? And more importantly, how will it accomplish its stated goals?

Continue reading “How Does Starlink Work Anyway?”

Counter-Strike Gets The RGB LED Treatment

Inspired by the over-the-top stage lighting and pyrotechnics used during e-sport events, [Hans Peter] set out to develop a scaled-down version (minus the flames) for his personal Counter-Strike: Global Offensive sessions. It might seem like pulling something like this off would involve hacking the game engine, but as it turns out, Valve was kind enough to implement a game state API that made it relatively easy.

According to the documentation, the CS:GO client can be configured to send out state information to a HTTP server at regular intervals. It even provided example code for implementing a simple state server in Node.js, which [Hans] adapted for this project by adding some conditional statements that analyze the status of the current game.

These functions fire off serial commands to the attached Arduino, which in turn controls the WS2812B LEDs. The Arduino code takes the information provided by the HTTP server and breaks that down into various lighting routines for different conditions such as wins and losses. But things really kick into gear when a bomb is active.

[Hans] wanted to synchronize the flashing LEDs with the beeping sound the bomb makes in the game, but the API doesn’t provide granular enough data. So he recorded the audio of the bomb arming sequence, used Audacity to precisely time the beeps, and implemented the sequence in his Arduino code. In the video after the break you can see that the synchronization isn’t perfect, but it’s certainly close enough to get the point across in the heat of battle.

With the special place that Counter-Strike occupies in the hearts of hackers and gamers alike, it’s little surprise people are still finding unique ways to experience the game.

Continue reading “Counter-Strike Gets The RGB LED Treatment”

The Art Of USB Dongle Repair

Faced with a broken USB dongle for our wireless devices, most of us would likely bin the part and order a replacement, after all the diminutive size of those things probably means hard to impossible repairability, right? Well, [The Equalizor] took it as a challenge and used the opportunity to practice his microscopic soldering skills just for funsies.

The wireless adapter in question, which came from one of his clients who accidentally bent it while it was plugged into a laptop, refused to be recognized by a computer under any circumstances. After sliding out the metal casing for the USB plug and snapping off the plastic housing, [The Equalizor] discovered that the slightly bent exterior hid a deeply cracked PCB. Then, with an inspection of the severed traces and lifted components, it was simply a matter of reflowing solder a few times to try to make the board whole again. Once the dongle was confirmed working, a new 3D shell was printed for it, replacing the original which had to be broken off.

It might not seem extraordinary to some people, but this video is a good example to show that repairs to delicate electronics in such a small scale are feasible, and can serve to reduce the amount of electronic waste we constantly dump out. Just because some electronics seem dauntingly elaborate or beyond salvaging, it doesn’t always mean there isn’t light at the end of the tunnel. You can see the work performed on this tiny dongle after the break.

Continue reading “The Art Of USB Dongle Repair”