A Christmas-themed LEGO train engine and coal car

ESPHome Powers Festive LEGO Train Set

While the basic concept of LEGO bricks might have changed little since the mid-20th century, some components such as motors and sensors are still affected by technological progress and end up obsolete and unsupported. [Roberts Retro] ran into this problem when he was building a festive train setup and realized he didn’t have the speed controller to match his train engine. Without that part, the engine would only run at full speed and derail as soon as it hit a curve. The official speed controller had been discontinued and was hard to find, so he had to build his own.

The basic components needed were an H-bridge driver to operate the motor and an ESP8266 to generate PWM signals. In order to keep the bricky appearance of the train engine intact, [Robert] hollowed out a few cheap imitation LEGO bricks to house the electronics. He also cut out slots for JST connectors, which are far more convenient to work with than LEGO’s brick-style connectors.

Two imitation LEGO bricks with electronics insideThe ESP8266 runs ESPHome, which enables [Robert] to control the entire setup using Home Assistant. The train is programmed to run a few laps at the top of the hour and play choo-choo sounds from a mini MP3 player hidden in the coal car. That car also holds a standard AA battery holder to power the system, which makes it easy to swap the batteries without having to partially disassemble the train.

There are various ways to control LEGO creations using standard computer platforms: we’ve seen the ESP32 powering a LEGO tank, for instance. If you need a bit more computing power, there’s even an official LEGO Raspberry Pi HAT.

Continue reading “ESPHome Powers Festive LEGO Train Set”

More Detail On That Fantastic Lego OLED Brick

It’s always great when we get a chance to follow up on a previous project with more information, or further developments. So we’re happy that [“Ancient” James Brown] just dropped a new video showing the assembly of his Lego brick with a tiny OLED screen inside it. The readers are too, apparently — we got at least half a dozen tips on this one.

We’ve got to admit that this one’s a real treat, with a host of interesting skills on display. Our previous coverage on these bedazzled bricks was disappointingly thin on details, and now the original tweets even seem to have disappeared entirely. In case you didn’t catch the original post, [James] found a way to embed a microcontroller and a remarkably small OLED screen into a Lego-compatible brick — technically a “slope 45 2×2, #3039” — that does a great job of standing in for a tiny computer monitor.

Continue reading “More Detail On That Fantastic Lego OLED Brick”

Gaze Upon The Swimming Mechanical Stingray, Made With LEGO

Stingrays have an elegant, undulating swimming motion that can be hypnotic. [Vimal Patel] re-created this harmony with his fantastic mechanical mechanical stingray using LEGO pieces and a LEGO Technics Power Functions motor. The motor is set in a clever arrangement that drives the motion remotely, so that it and electrical elements can stay dry.

The mechanical stingray sits at the end of a sort of rigid umbilical shaft. This shaft connects the moving parts to the electrical elements, which float safely on the surface. This leaves only the stingray itself with its complex linkages free to move in the water, while everything else stays above the waterline.

We’ve seen some impressive LEGO creations before, like this race car simulator and pneumatic engine, and the mechanical action in this stingray is no exception. Interested in making your own? The part list and build directions are available online, and you can see it in action in the video embedded below.

Continue reading “Gaze Upon The Swimming Mechanical Stingray, Made With LEGO”

Building A LEGO Pneumatic Engine

Pneumatic engines aren’t something we use every day, but they’re compelling things to see working in practice. [Nico71] built an eye-catching example out of LEGO Technic, and it’s remarkably fully-featured.

The build relies on a single pneumatic cylinder driving a flywheel. Flow to the cylinder is determined by camshaft-controlled valves. The valves themselves are custom-built, composed of hose loops that are kinked to shut off flow. In addition to the basic operating components, the engine also features a throttle valve which uses the same kinked-hose principle. The main control valves are installed in a housing that can be rotated relative to the engine’s frame to vary the timing of the valves relative to the flywheel’s rotation. A gear system allows fine adjustment of the timing. The throttle and timing controls are accessible on a tidy control panel complete with a idle-adjust mechanism.

Those wishing to build one themselves can rejoice, for [Nico71] provides instructions for a small fee. We’ve seen other air engines before, too, often of the 3D-printed variety.

Continue reading “Building A LEGO Pneumatic Engine”

Blender Builds LEGO Models

Blender is a free and open source computer graphics package that’s used in the production of everything from video games to feature films. Now, as demonstrated by [Joey Carlino], the popular program can even be used to convert models into LEGO.

This new feature available in Blender 3.4 allows for the use of instance attributes in a way that a large number of points on a model can be created without causing undue strain on (and possible crashing of) the software. Essentially, an existing model is split into discrete points at specific intervals. The spacing of the intervals is set to be exactly that of LEGO bricks, which gives the model the low-resolution look of a real LEGO set. From there, a model brick is created and placed at each of these points, and then colors can be transferred to the bricks individually.

The demonstration that [Joey] uses is converting a beach ball model to LEGO, but using these tools on other models delivers some striking results. He goes over a lot of the details on how to create these, and it would only be a short step from there to ordering the bricks themselves. Or, using these models and sending them over to a 3D printer straight from Blender itself. Not bad for free software!

Continue reading “Blender Builds LEGO Models”

LEGO Race Car Simulator Is Like A Mechanical Arcade Game

We’ve all played some variant of that simple old racing video game. It’s the one that involves swerving around cars in front without crashing, as the pace steadily increases further. [Dr. Engine] has recreated that very game in the physical world, with the help of LEGO Technic.

The design uses what appears to be a LEGO tank tread to create a treadmill for a LEGO car. The initial design is hand-cranked, but [Dr. Engine] soon upgrades this with a motor. The wide treadmill is then fitted with a steering wheel. This steers the car laterally along the treadmill via a simple pulley system. From there, it was a simple job of adding gearbox to change the speed of the treadmill, and obstacles for the car to dodge. Double-sided table affixed small die-cast cars to the track to fit the theme of the build.

It’s great fun watching the car buck and weave over the undulating track, and we’d certainly love to compete with friends for the high score. We’ve seen similar builds before, too, like this all-LEGO suspension dyno. Video after the break.

Continue reading “LEGO Race Car Simulator Is Like A Mechanical Arcade Game”

Hackaday Links Column Banner

Hackaday Links: October 30, 2022

Sad news for kids and adults alike as Lego announces the end of the Mindstorms line. The much-wish-listed line of robotics construction toys will be discontinued by the end of this year, nearly a quarter-century after its 1998 introduction, while support for the mobile apps will continue for another couple of years. It’s probably fair to say that Mindstorms launched an entire generation of engineering careers, as it provided a way to quickly prototype ideas that would have been difficult to realize without the snap-fit parts and easily programmed controllers. For our money, that ability to rapidly move from idea to working model was perhaps the strongest argument for using Mindstorms, since it prevented that loss of momentum that so often kills projects. That was before the maker movement, though, and now that servos and microcontrollers are only an Amazon order away and custom plastic structural elements can pop off a 3D printer in a couple of hours, we can see how Mindstorms might no longer be profitable. So maybe it’s a good day to drag out the Mindstorms, or even just that big box of Lego parts, and just sit on the carpet and make something.

Continue reading “Hackaday Links: October 30, 2022”