Solving A Rubik’s Cube With Just Two Motors

We’ve all seen videos of Rubik’s cube champions who can solve the puzzle in less than 5 seconds. And there are cube-twisting robots that can solve the cube even faster, often in under a second. This Rubik’s cube solver is not one of those robots, but it’s still pretty cool.

The reason we like Dexter Industries’ “BricKuber” is not for its lightning speed — it takes a minute or two to solve the puzzle. What we like is the simplicity of the approach to manipulating the cube. Built from LEGO parts, including Mindstorms motors and a BrickPi controller, the BricKuber uses only two motors to work the cube. One motor powers a square turntable upon which the cube sits, while the other powers an arm that does double duty — it either clamps the cube so the turntable can rotate a layer, or it rakes the cube to flip it 90° on the turntable. With a Pi Cam overhead, the rig images all six faces, calculates a solution to the cube, and then flips and twists the cube to solve it. It’s simultaneously mind-boggling and strangely relaxing to watch.

All the code is open source, and we strongly suspect a similar and possibly faster robot could be built without the LEGO parts. You might even be able to build one with popsicle sticks and an Arduino.

Continue reading “Solving A Rubik’s Cube With Just Two Motors”

Will Your Next Whip Pack Memory Chainmail Tires?

NASA’s Glenn Research Center is experimenting with nickel-titanium memory alloy tires that resemble chain mail. It’s an intriguing angle — the tires can withstand heavier loads and at higher speeds. They’re airless and immune to puncture. Presumably they’re not literally chainmail but closer to a sweater in construction.

This tire is a culmination of a number of fascinating research drives. NASA has been experimenting with tensegrity structures as a means of building in space without spending a ton of rocket fuel on heavy hardware. These structures use tensioned cables to maintain a three-dimensional structure. The tires use the stiffness of the wire as well as internal stiffeners to maintain shape, without the need for a whole rim.

In addition to structural tensegrity, the memory alloy also helps keep its original shape by resisting deformation — it springs back into its original shape. When ordinary materials are stretched, you’re stretching the bonds between the atomic structures. NASA’s NiTi alloy goes through an “atomic rearrangement” when stressed, easing the forces put on those structures. As a result, the alloy can withstand 10% deformation versus 0.3% for spring steels, or about 30 times the deformation that a normal alloy could withstand without having permanent deformation occur — dents, basically. NASA’s tires can actually compress down to the axle and then pop back.

Continue reading “Will Your Next Whip Pack Memory Chainmail Tires?”

Just In Time For The Holidays: Give The Gift Of Cray

The name Cray, as in [Seymour Cray] is synonymous with supercomputing. If you hurry, you can bid on a Cray J90/J916 on eBay. You might want to think about where to put it though. It is mounted on a trailer, requires 480V, and the shipping is $3,000!

First introduced in 1994, the J90 was an “entry level” machine. This particular machine supported up to 16 CPUs (each CPU was actually two chips) running at a blazing 100 MHz. The memory system was more impressive, achieving 48 GB/s.

The Cray T90 computer was much faster (and more expensive) but none of these computers had the performance of a typical PC’s graphics card these days. Even your phone may have more raw computing power, depending on how you choose to measure. Don’t fear, though. Cray Research still makes supercomputers that can eat your phone for lunch.

Still, at the time, this was big iron. The I/O system used SPARC processors that would have been entire workstations in that era. The eBay listing says it might need a little work — we weren’t clear if the seller meant in general or just the cooling system, but you can assume this is a fixer-upper. Apparently, the Retro-Computing Society of Rhode Island restored a similar beast so it can be done.

If your holiday budget doesn’t have room for a real supercomputer, here’s one that is 1/10 the size and much less expensive. Or, you could just pretend.

Count YouTube Subscribers With This Red Play Button Award

Professional YouTubers live and die by the number of subscribers they have. It seems like a brutal way to make a living to us, but to each his own. Still, if you’re going to do it, you might as well do it right, and keeping track of how you’re doing with this Play Button Award subscriber counter might make sense. Or it might drive you nuts.

YouTuber [ibuynewstuff] has reached the vaunted 100,000 subscriber mark, the number required to earn the Silver Play Button award. Sadly, 100k is the bare minimum needed to get YouTube’s attention, and tales of waiting for months for the award to arrive are not uncommon. [ibuynewstuff] worked around the issue by 3D-printing his own temporary play button badge. Mounted to a picture frame with an ESP8266 and an 8 x 80 LED display behind a diffuser, [ibuynewstuff] can keep track of his progress toward the Gold Play Button award at 1,000,000 subs. Hopefully, his Silver award will arrive before then.

Want to replicate this but would rather have something a little more permanent than a plastic play button? Try casting your own Copper Play Button award.

Continue reading “Count YouTube Subscribers With This Red Play Button Award”

Modified Uke Keeps The Beat With A Solenoid

A classic one-man band generally features a stringed instrument or two, a harmonica in a hands-free holder, and some kind of percussion, usually a bass drum worn like a backpack and maybe some cymbals between the knees. The musician might also knock or tap the sound-boards of stringed instruments percussively with their strumming hand, which is something classical and flamenco guitarists can pull off with surprising range.

The musician usually has to manipulate each instrument manually. When it comes to percussion, [JimRD] has another idea: keep the beat by pounding the soundboard with a solenoid. He built a simple Arduino-driven MOSFET circuit to deliver knocks of variable BPM to the sound-board of a ukulele. A 10kΩ pot controls the meter and beat frequency, and the sound is picked up by a mic on the bridge. So far, it does 3/4 and 4/4 time, but [JimRD] has made the code freely available for expansion. Somebody make it do 5/4, because we’d love to hear [JimRD]  play “Take Five“.

He didn’t do this to his good uke, mind you—it’s an old beater that he didn’t mind drilling and gluing. We were a bit skeptical at first, but the resonance sweetens the electromechanical knock of the solenoid slug. That, and [JimRD] has some pretty good chops. Ax your way past the break to give it a listen.

Got a cheap ukulele but don’t know how to play it? If you make flames shoot out from the headstock, that won’t matter as much. No ukes? Just print one.

Continue reading “Modified Uke Keeps The Beat With A Solenoid”

Lisp In 200 Lines

Contrary to popular belief, LISP does not stand for “lots of irritating spurious parenthesis.” However, it is true that people tend to love or hate this venerable programming language. Whichever side of the fence you’re on, many of the ideas it launched decades ago have become staples of other newer languages. How much C code do you think it takes to make a functional LISP system? If you guessed more than 200, you’ll want to go look at this GitHub repository.

Actually, the code isn’t as good as the (sort of) literate programming white paper on the program, but it gives a good overview of how 200 lines of C code can produce a working LISP-like language good enough to create its own eval loop. It does lack memory handling and error detection, so if you really wanted to use it, you’d probably need to spruce it up a bit.

Continue reading “Lisp In 200 Lines”

Exploring The BBC Micro:Bit Software Stack

The BBC micro:bit has been with us for about eighteen months now, and while the little ARM-based board has made a name for itself in its intended market of education, we haven’t seen as much of it in our community as we might have expected.

If you or a youngster in your life have a micro:bit, you may have created code for it using one of the several web-based IDEs, a graphical programming system, TypeScript, or MicroPython. But these high level languages are only part of the board’s software stack, as [Matt Warren] shows us with his detailed examination of its various layers.

The top layer of the micro:bit sandwich is of course your code. This is turned into a hex file by the web-based IDE’s compiler, which you then place on your device. Interestingly only the Microsoft TypeScript IDE compiles the TypeScript into native code, while the others bundle your code up with an interpreter.

Below that is the micro:bit’s hardware abstraction layer, and below that in turn is ARM’s Mbed OS layer, because the micro:bit is at heart simply another Mbed board. [Matt] goes into some detail about how the device’s memory map accommodates all these components, something essential given that there is only a paltry 16 kB of RAM in hand.

You might wish to program a micro:bit somewhat closer to the metal with the Mbed toolchain, but even if that is the case it’s still of interest to read a dissection of its official stack. Meanwhile, have a look at our review of the board, from summer 2016.