Dog Plays Chess On ESP32

The ESP32 is s remarkably powerful microcontroller, where its dual-core processor and relatively high clock speed can do some impressive work. But getting this microcontroller designed for embedded systems to do tasks that would generally be given to a much more powerful PC-type computer takes a little bit more willpower. Inspired by his dog, [Folkert] decided to program an ESP32 to play chess, a famously challenging task for computer scientists in the past. He calls this ESP32 chess system Dog.

One of the other major limitations of this platform for a task like this is memory. The ESP32 [Folkert] is using only has 320 kB of RAM, so things like the transposition table have to fit in even less space than that. With modern desktop computers often having 32 or 64 GB, this is a fairly significant challenge, especially for a memory-intensive task like a chess engine. But with the engine running on the microcontroller it’s ready to play, either in text mode or with something that can use the Universal Chess Interface (UCI). A set of LEDs on the board lets the user know what’s going on while gameplay is taking place.

Continue reading “Dog Plays Chess On ESP32”

Retrotechtacular: Making Enough Merlins To Win A War

From the earliest days of warfare, it’s never been enough to be able to build a deadlier weapon than your enemy can. Making a sharper spear, an arrow that flies farther and straighter, or a more accurate rifle are all important, but if you can’t make a lot of those spears, arrows, or guns, their quality doesn’t matter. As the saying goes, quantity has a quality of its own.

That was the problem faced by Britain in the run-up to World War II. In the 1930s, Rolls-Royce had developed one of the finest pieces of engineering ever conceived: the Merlin engine. Planners knew they had something special in the supercharged V-12 engine, which would go on to power fighters such as the Supermarine Spitfire, and bombers like the Avro Lancaster and Hawker Hurricane. But, the engine would be needed in such numbers that an entire system would need to be built to produce enough of them to make a difference.

“Contribution to Victory,” a film that appears to date from the early 1950s, documents the expansive efforts of the Rolls-Royce corporation to ramp up Merlin engine production for World War II. Compiled from footage shot during the mid to late 1930s, the film details not just the exquisite mechanical engineering of the Merlin but how a web of enterprises was brought together under one vast, vertically integrated umbrella. Designing the engine and the infrastructure to produce it in massive numbers took place in parallel, which must have represented a huge gamble for Rolls-Royce and the Air Ministry. To manage that risk, Rolls-Royce designers made wooden scale models on the Merlin, to test fitment and look for potential interference problems before any castings were made or metal was cut. They also set up an experimental shop dedicated to looking at the processes of making each part, and how human factors could be streamlined to make it easier to manufacture the engines.

Continue reading “Retrotechtacular: Making Enough Merlins To Win A War”

A Wobble Disk Air Motor With One Moving Part

In general, the simpler a thing is, the better. That doesn’t appear to apply to engines, though, at least not how we’ve been building them. Pistons, cranks, valves, and seals, all operating in a synchronized mechanical ballet to extract useful work out of some fossilized plankton.

It doesn’t have to be that way, though, if the clever engineering behind this wobbling disk air engine is any indication. [Retsetman] built the engine as a proof-of-concept, and the design seems well suited to 3D printing. The driven element of the engine is a disk attached to the equator of a sphere — think of a model of Saturn — with a shaft running through its axis. The shaft is tilted from the vertical by 20° and attached to arms at the top and bottom, forming a Z shape. The whole assembly lives inside a block with intake and exhaust ports. In operation, compressed air enters the block and pushes down on the upper surface of the disk. This rotates the disc and shaft until the disc moves above the inlet port, at which point the compressed air pushes on the underside of the disc to continue rotation.

[Resetman] went through several iterations before getting everything to work. The main problems were getting proper seals between the disc and the block, and overcoming the friction of all-plastic construction. In addition to the FDM block he also had one printed from clear resin; as you can see in the video below, this gives a nice look at the engine’s innards in motion. We’d imagine a version made from aluminum or steel would work even better.

If [Resetman]’s style seems familiar, it’s with good reason. We’ve featured plenty of his clever mechanisms, like this pericyclic gearbox and his toothless magnetic gearboxes.

Continue reading “A Wobble Disk Air Motor With One Moving Part”

This Go-Kart Rides On A Pallet

Many beginner woodworkers, looking to offset the introductory costs of starting a hobby, will source their wood from pallets. Generally they’re easily found and can be low or no cost, but typically require a bit of work before they’re usable in a project. [Garage Avenger] is looking to do something a little outside of the box with his pallet project, though. He’s using raw pallets as a chassis for a four-speed go-kart, partially for the challenge and excitement and also to one-up a Pinterest post.

Almost immediately, though, the other major downside of working with pallets arose which is that they’re generally built out of low-grade pine which is soft and flexible. Flexibility is generally not a good thing to have in a vehicle frame so plenty of the important parts of this build were strengthened with steel tubing including the rear axle, steering mounts, and a few longitudinal supports to strengthen the overall frame. After working out some kinks with ordering a few of the wrong parts, and mounting the steering box backwards, it was time to test out the four-speed engine (and brakes) on the the go-kart, making it nearly ready for the road.

To complete the build, some tidying of wiring and fuel lines was done, along with improving some of the non-critical parts of the build like the bucket seat. Of course, adding pallet spoilers and body kit puts the finishing touches on the build and the go-kart is finally ready to tear up the local go-kart track and the less-inspiring Pinterest projects. [Garage Avenger] is no stranger to strange vehicle builds, either. Although it’s a bit out of season for most of our northern hemisphere readers now, his jet-powered street sled is still worth a view.

Continue reading “This Go-Kart Rides On A Pallet”

Retrotechtacular: The Free Piston Engine

We all know how a conventional internal combustion engine works, with a piston and a crankshaft. But that’s by no means the only way to make an engine, and one of the slightly more unusual alternatives comes to us courtesy of a vintage Shell Film Unit film, The Free Piston Engine, which we’ve placed below the break. It’s a beautiful period piece of mid-century animation and jazz, but it’s also  an introduction to these fascinating machines.

We’re introduced to the traditional two-stroke diesel engine as thermally efficient but not smooth-running, and then the gas turbine as smooth but much more inefficient. The free piston engine, a design with opposed pistons working against compressed air springs and combining both compression and firing strokes in a single axis, doesn’t turn anything  in itself, but instead works as a continuous supplier of high pressure combustion gasses. The clever part of this arrangement is that these gasses can then turn the power turbine from a gas turbine engine, achieving a smooth engine without compromising efficiency.

This sounds like a promising design for an engine, and we’re introduced to a rosy picture of railway locomotives, ships, factories, and power stations all driven by free piston engines. Why then, here in 2024 do we not see them everywhere? A quick Google search reveals an inordinately high number of scientific review papers about them but not so many real-world examples. In that they’re not alone, for alternative engine designs are one of those technologies for which if we had a dollar for every one we’d seen that didn’t make it, as the saying goes, we’d be rich.

It seems that the problem with these engines is that they don’t offer the control over their timing that we’re used to from more conventional designs, and thus the speed of their operation also can’t be controlled. The British firm Libertine claim to have solved this with their line of linear electrical generators, but perhaps understandably for commercial reasons they are a little coy about the details. Their focus is on free piston engines as power sources for hybrid electric vehicles, something which due to their small size they seem ideally suited for.

Perhaps the free piston engine has faced its biggest problem not in the matter of technology but in inertia. There’s an old saying in the computer industry: “Nobody ever got fired for buying IBM“, meaning that the conventional conservative choice always wins, and it’s fair to guess that the same applies anywhere a large engine has been needed. A conventional diesel engine may be a complex device with many moving parts, but it’s a well-understood machine that whoever wields the cheque book feels comfortable with. That’s a huge obstacle for any new technology to climb. Meanwhile though it offers obvious benefits in terms of efficiency, at the moment its time could have come due to environmental concerns, any internal combustion engine has fallen out of fashion. It’s possible that it could find a life as an engine running on an alternative fuel such as hydrogen or ammonia, but we’re not so sure. If new free piston engines do take off though, we’ll be more pleased than anyone to eat our words.

Continue reading “Retrotechtacular: The Free Piston Engine”

Hackaday Links Column Banner

Hackaday Links: December 3, 2023

Sure, it does less than originally promised, but hey — at least it’s more expensive. That about sums up Tesla fans’ feelings after the long-awaited Cybertruck reveal at the Texas Gigafactory on Thursday, where Elon Musk himself handed over the keys — or their Cyber equivalent — to a few new owners. These are expensive machines — $61,000 for the two-motor model, and just shy of $100,000 for the three-motor all-wheel-drive model with all the bells and whistles. That’s considerably more than they were expected to cost back in 2019, a fact which may be at least partially behind the drop in Tesla shares after the launch.

Continue reading “Hackaday Links: December 3, 2023”

Machining A Reciprocating Solenoid Engine

The reciprocating engine has been all the rage for at least three centuries. The first widely adopted engine of this type was the steam engine with a piston translating linear motion into rotational motion, but the much more common version today is found in the internal combustion engine. Heat engines aren’t the only ways of performing this translation, though. While there are few practical reasons for building them, solenoid engines can still do this job as well and, like this design from [Maciej Nowak Projects], are worth building just for the aesthetics alone.

The solenoid engine is built almost completely from metal stock shaped in a machine shop, including the solenoids themselves. The build starts by making them out of aluminum rod and then winding them with the help of a drill. The next step is making the frame to hold the solenoids and the bearings for the crankshaft. To handle engine timing a custom brass shutter mechanism was made to allow a set of infrared emitter/detector pairs to send signals that control each of the solenoids. With this in place on the crankshaft and the connecting rods attached the engine is ready to run.

Even though this solenoid engine is more of a project made for its own sake, solenoid engines are quite capable of doing useful work like this engine fitted into a small car. We’ve seen some other impressive solenoid engine builds as well like this V8 from [Emiel] that was the final iteration of a series of builds from him that progressively added more solenoid pistons to an original design.

Continue reading “Machining A Reciprocating Solenoid Engine”