A Lego cup holder with a glass of water and electronics on a breadboard

LEGO Cup Holder Helps You To Stay Hydrated

Eat more fruit, exercise more, drink more fluids; early January is traditionally the time to implement New Year’s resolutions. Most of the common ones simply require willpower, but if it’s staying hydrated that you’re targeting, then some help is available. [Pepijn de Vos] designed a LEGO cup holder and an accompanying desktop app that tell you exactly how much water you’ve had so far, making it easier to get to those eight glasses a day.

The basic idea is simple: the cup holder contains a load cell that senses the weight of your drinking vessel. If the weight decreases, then a message is sent to your PC detailing the amount lost. If the weight increases, then the glass must have been refilled and the previous weight is disregarded. This way, the app simply needs to add up all the amounts reported, without having to compensate for the weight of the empty glass.

The tricky bit was integrating a load cell into the LEGO structure. It required some fiddling with Flex System hoses to ensure the platform’s weight rested only on the load cell, while still being stable enough to safely hold a full glass of water. The load cell is read out through an amplifier and A/D converter, while the USB communication is handled by a Teensy 3.

[Pepijn] modified an existing GNOME desktop widget to display a cup icon and the total volume consumed, which seems to work pretty smoothly judging from the video embedded below. All the code and even a complete set of LEGO build instructions are available on the project’s Github page. If simply monitoring your fluid intake isn’t enough of a nudge for you, then check out this device that floods your desk if you don’t drink enough.

Continue reading “LEGO Cup Holder Helps You To Stay Hydrated”

The Cucumber House That LEGO Built

How far are you prepared to go to build a novelty seasonal ornament? Maybe a gingerbread house, or perhaps a bit of 3D printed glitter to hang on your Christmas tree. For [The Brick Wall], none of this was enough. Instead what was needed was a complete LEGO automated factory that builds a log cabin, from the unlikely raw material of cucumbers.

What has been created is the LEGO equivalent of a timber mill, with the various machines served by an overhead gantry crane. The cucumbers are trimmed to square, before being transferred to a saw which cuts out the notches for the interlocking corners. Another saw line chops the sections around door and windows to length, and finally the roof planks are cut in a vertical saw. The video below is reported as taking 83 days to complete from planning to filming, and 18 cucumbers to build the house. We’re not sure the cucumber will become a regular building material, but we salute the effort involved here.

Though this may be one of the biggest we’ve seen, we’ve featured many LEGO machines making things before.

Continue reading “The Cucumber House That LEGO Built”

You Can Build A Lego Rubik’s Cube

Rubik’s cubes are a popular puzzle — one found exciting or infuriating depending on your personal bent. [PuzzLEGO] has designed a LEGO Rubik’s cube, with the latest revision improving on flimsy earlier designs.

The first step was to design a core that would allow the cube to rotate freely without being too loose. This involved a lot of trial and error until [PuzzLEGO] found just the right combination of parts to do the job. From there, it was a matter of introducing the edge pieces and corner pieces without jamming everything up.

It took some experimenting to get everything moving together smoothly, but the end result is pretty impressive. It’s certainly not a build you’d use for speedcubing; the fragility meant that it took 20 minutes to solve just one face. [PuzzLEGO] hopes to make further improvements to increase playability.

If you want to replicate the feat, you’ll need plenty of little Lego bits and pieces, but it’s definitely a replicable build. Alternatively, consider using Lego to build a Rubik’s Solver, instead. Video after the break.

Continue reading “You Can Build A Lego Rubik’s Cube”

New Part Day: Raspberry Pi LEGO HAT

The Raspberry Pi Foundation have been busy little bees for the last couple of years producing their own silicon, new boards and now in collaboration with the LEGO Education team a new HAT to connect to the LEGO SPIKE education platform. This new HAT board will work with every Raspberry Pi board with a 40-pin GPIO header.

Based on the RPI2040 microcontroller, it makes an interesting detour away from dumb slave boards, although it looks like the firmware is closed (for now) so you’ll have to make do with the pre-baked capabilities and talk to it with the supplied python library.

According to the documentation, the communication between the Pi and the RPI2040 nestled beneath the HAT PCB is plaintext-over-serial, freeing up the majority of the GPIO pins for other uses. The board uses a surface mount pass-through type header which allows pins from the Pi to protrude through the PCB, allowing stacking more HATs on top. Curiously they decided to mount the PCB with active parts facing down, giving a flat rear surface to park things on. We suspect that decision was made to improve access to the LPF2 connectors, especially if they were surface mount parts.

Continue reading “New Part Day: Raspberry Pi LEGO HAT”

Wild Lego-Bot Pronks About Your Patio

Legged robots span all sorts of shapes and sizes. From the paradigm-setting quadrupeds built from a pit-crew of grad students to the Kickstarter canines that are sure to entertain your junior hackers, the entry point is far and wide. Not one to simply watch from the sidelines, though, [Oracid] wanted to get in on the quadruped-building fun and take us all with him. The result is 5BQE2, a spry budget quadruped that can pronk around the patio at a proper 1 meter-per-second clip.

Without a tether, weight becomes a premium for getting such a creature to move around at a respectable rate. Part of what makes that possible is [Oracid’s] lightweight legs. Designing the legs around a five-bar linkage tucks the otherwise-heavy actuators out of the leg and into the body, resulting in a limb that’s capable of faster movement. What’s more, 5BQE2 is made from the LEGO plastic building bricks of our heydays. And with a full bill-of-materials, we’re just about ready to head over to our parents’ garage and dust off those parts for a second life.

For some action shots of 5BQE2, have a look at the video after the break. And since no set would be complete without the building instructions, stay tuned through the full video to walk through the assembly process step-by-step.

Here at Hackaday, we’re certainly no stranger to walking automatons, but not all robots use their legs for walking. For a trip down memory lane, have a look at [Carl Bugeja’s] buzzing Vibro-bots and UC Berkeley’s leaping Salto.

Continue reading “Wild Lego-Bot Pronks About Your Patio”

Lego Submarine Gets Balloon Ballast System

Lego is a fun building block which vast numbers of the world’s children play with every day. However, the mechanical Technic line of Lego building blocks has long offered greater options to the budding engineer. [Brick Experiment Channel] is one such soul, working hard on their latest Lego submarine.

The sub is built inside of a glass food container, chosen for its removable plastic lid with a watertight seal. This keeps all the mechanics dry, as well as the custom electronics built to allow a 27MHz RC controller to send signals to the Lego electronics. This is key as higher frequency radios such as Bluetooth or WiFi can’t penetrate water nearly as well.

A magnetic coupling fitted to a Lego motor is used to drive the propeller in the water without the leaks common when trying to seal a rotating shaft. A second coupling on a Lego servo along with a creative steering arrangement allows the propeller to be turned to steer the craft.

The ballast system is simple. A balloon is filled by a Lego motor running an air pump, capable of 3.0 mL a second and capable of creating a maximum pressure of 2.0 bar. When the balloon is inflated, the buoyancy goes up and the sub rises. Run the motor the other way and the balloon is emptied by a clever clutch and valve arrangement, reducing buoyancy and causing the sub to sink.

The sub isn’t perfect. Maintaining a set depth underwater can be difficult with the rudimentary ballast system, perhaps as the balloon changes shape with varying water pressure. Sometimes, Lego axles slip out of their gears, too, and the radio only works for a few meters under water.

However, simply building a Lego sub of any sort is a remarkable feat. It’s interesting to see the variances in the design compared to earlier projects from [Brick Experiment Channel], too, as we’ve featured their earlier subs before. Video after the break.

Continue reading “Lego Submarine Gets Balloon Ballast System”

Working LEGO Space Computers Are A Chip Off The Old Block

We all have our favorite classic LEGO bricks, and wouldn’t be surprised if one or more of the various space computers showed up on pretty much everyone’s list. [dyoramic] loves them so much that they built two different working versions that do different things.

The first one is about six times the size of the original brick. Inside the 3D printed case is an ESP32 and a 1.5″ OLED display. [dyoramic] wired up the top six buttons as inputs and the rest are just for looks. The screen defaults to the classic white cross on green that just sits there looking legit. But start pushing buttons and you’ll find other modes — the cross becomes a radar screen in one, the computer spits out space facts in another, there’s a falling bricks game, and finally, a time and date screen.

The second LEGO space computer build is even bigger — both were designed around the size of their screens. It has a Raspi 4 and shows a dashboard with the weather, time, date, latest xkcd, and a few cryptocurrency prices. [dyoramic] has an even bigger version in the works that will use a 720 x 720 screen and a handful of brown key switches as inputs. We can’t wait to see that one! For now, check out the build and demo of the first two after the break.

What can’t you do with LEGO? It feels like we’ve seen it all, from cameras to microscopes to continuously variable transmissions. Wouldn’t you love to drive one of those around the block?

Continue reading “Working LEGO Space Computers Are A Chip Off The Old Block”