Raspberry Pi Shuffler Is Computerized Card Shark

If you’re playing Texas Hold’em or other card games with a small group, you may get tired of shuffling over and over again. [3dprintedLife] was in just such a position, and realized there were no good automatic card shufflers in his budget. Instead, he elected to build one, and put in some extra functionality to corrupt the game to his whims.

The mechanicals of the machine took much development, as accurately handling and dispensing cards is a challenge, particularly with the loose tolerances of 3D printed parts. After developing a reliable transport mechanism, it was more than capable of shuffling a deck well with some basic commands.

However, the real magic comes from installing a camera and Raspberry Pi running OpenCV. This is capable of reading the value and suit of each card, and then stacking the deck in a particular order to suit the dealer’s wishes. It’s all controlled through a web interface and is capable of creating guaranteed wins in Blackjack and Texas Hold’em. Files are on Github for those eager to delve deeper into how the machine works.

The mechanism does such a beautiful job of shuffling, that your friends may not even notice the ruse. It goes to show that you should always have your wits about you when gambling with the aid of machines. Of course, if you wish only to create havoc, this Lego card machine gun may be more your speed. Video after the break.

[via Reddit]

Continue reading “Raspberry Pi Shuffler Is Computerized Card Shark”

Ljusmaskinen Takes The Rave To The Streets (Eventually)

When humanity comes out the other side of this pandemic there will be a mountain of awesome projects to show off in person. For instance, this backpack mounted DMX lighting was built to be worn as a mobile rave rig by Swedish hacker [Tim Gremalm]. In-person raves aren’t happening right now but that just means there’s time to add waaaaay to many features to this thing until lockdowns become a thing of the past.

The frame holding the lighting integrates into this backpack and we assume that’s where the battery is stored. The Y-shaped masts hold four PAR lights. Incidentally, that mean parabolic aluminized reflectors, which are commonly used for stage lighting, but in this case the halogen bulbs have been torn out for a trio of 4 W RGBW LEDs. The yellow rectangles are 10 W Chip-on-Board LED panels that serve as strobe lights.

But merely having the lights does not make it a Rave — this party needs both music and a way to synchronize the lighting effects with it. The music part was already built and used at the West Pride Gothenburg festival (the second largest in Sweden after Stockholm) five years ago. That project, called Festmaskinen, works in conjunction with Ljusmaskinen (the Light Machine). So two people carry the rave on their backs, one with music, the other with the lighting, now that’s a party!

The light controller board uses a set of four Arduino Nano boards along with four voltage regulators to provide control to each of the PAR lights. All of it is stitched together by control from a DMX input board which also controls the COBs. (In this image the DMX board is hidden below the light control board.) Of course you need something that can process the audio and turn it into DMX512 to bring those lighting animations to life and for that he reached for a Raspberry Pi.

[Tim] has a quick demo of the rig at work which we’ve embedded below. What we’re missing is seeing how the top-heavy structure handles when worn as a backpack. Hopefully he’ll be able to get out of his low-ceilinged home and let the stage lights fly before too long!

Making Smalltalk On A Raspberry Pi

Today, you probably don’t think much about object-oriented programming, it’s just part of the landscape. But decades ago, it was strange and obscure technology. While there were several languages that led up to the current object-oriented tools we use today, one of the most influential was Xerox PARC’s Smalltalk language. [Michael Engel] took a C++ implementation of the Smalltalk VM, some byte code for a complete Smalltalk system, a Raspberry Pi “bare metal” library, and produced a Smalltalk workstation running on a bare Raspberry Pi — even a Pi Zero. The code is on GitHub and is admittedly a work in progress.

Smalltalk was interesting — and sometimes annoying — because everything was an object. Literally everything. The system took over the entire machine. It provided the GUI, the compiler, and the run time libraries. That’s probably why it was easy for [Michael] to forego the usual Linux OS for his project.

Continue reading “Making Smalltalk On A Raspberry Pi”

A ZX80 With A Proper Case

A popular project among Hackaday readers is to recreate a piece of home computing or gaming hardware from the past, and in that endeavour we’ve seen some truly amazing projects. Usually they take the form of bare PCBs or custom cases that look nothing like the original, but not [Cees Meijer]’s Sinclair ZX80 clone. It sports a 3D printed replica of the original computer’s vacuum-formed case, which from a distance you could be mistake for the real thing.

Internally it’s not a ZX80 at all, but a Raspberry Pi Zero running an emulator. But  with a case like this one that’s not the point. It doesn’t have the full-length PCB of the original but a modern ZX80 membrane keyboard, and the Pi appears to be hiding somewhere in the “hump” used by the Astec UHF modulator on the original. There is more information in a blog post, and the model can be downloaded via Thingiverse. Handily, the files also include the original CAD file from RS DesignSpark, should you wish to modify it to your own tastes. If somebody could mate it with Tynemouth Software’s ZX80 kit then our cup would run over.

Of course, this isn’t the only retrocomputer for which a replacement case can be found.

DJing Without The Truckload Of Equipment; Secret Ingredient Is Raspberry Pi

There is a romance to notions of a byegone age of DJing — driving a pair of Technics 1200s dwarfed on either side by the stacks, pumping techno bass through the laser-tinged darkness into a hungry crowd. Even if the reality of early evening Saturday wedding parties playing inoffensive crooners for the 50-somethings didn’t really live up to it.

The trouble with DJing old-style was that it required extensive logistics to shift all that equipment not to mention a record collection, so the modern DJ for whom everything has gone digital is truly lucky in the scale of their operation. For some people even that is too much to carry, and [Dennisdebel] has minimised a DJ rig to the next level, by running the popular Mixxx DJing software on a Raspberry Pi hooked up to his DJ controller. You can see the result in the video below the break.

This is more of a HOWTO for installing a set of software packages on the Pi to achieve an aim rather than a special hardware hack, but as he points out the interest lies in regaining control of the process. The DJ space is dominated by commercial offerings increasingly laden with DRM and proprietary cloud offerings, so this represents a means of taking back control of the process. If it’s not hacky enough, you can always add a home-made DJ mixing station.

Continue reading “DJing Without The Truckload Of Equipment; Secret Ingredient Is Raspberry Pi”

Mini “Gaming PC” Nails The Look, Streams The Games

To have a proper gaming “rig”, you need more than a powerful GPU and heaps of RAM. You’ve also got to install a clear side-panel so lesser mortals can ogle your wiring, and plenty of multicolored LEDs to make sure it’s never actually dark when you’re up playing at 2 AM. Or at least, that’s what the Internet has led us to believe.

The latest project from [Michael Pick] certainly isn’t doing anything to dispel that stereotype. In fact, it’s absolutely reveling in it. The goal was to recreate the look of a high-end custom gaming PC on a much smaller scale, with a Raspberry Pi standing in for the “motherboard”. Assuming you’re OK with streaming them from a more powerful machine on the network, this diminutive system is even capable of playing modern titles.

But really, the case is the star of the show here. Starting with a 3D printed frame, [Michael] really went all in on the details. We especially liked the little touches such as the fiber optics used to bring the Pi’s status and power LEDs out to the top of the case, and the tiny and totally unnecessary power button. There’s even a fake graphics card inside, with its own functional fan.

Even if you’re not interested in constructing custom enclosures for your Raspberry Pi, there are plenty of tips and tricks in the video after the break that are more than worthy of filing away for future use. For example, [Michael] shows how he fixed the fairly significant warping on his 3D printed case with a liberal application of Bondo and a straight-edge to compare it to.

This isn’t the first time we’ve seen a Raspberry Pi masquerade as a high-end computer, but it’s surely the most effort we’ve ever seen put into the gag.

Continue reading “Mini “Gaming PC” Nails The Look, Streams The Games”

Plant’m If You Got’m And Keep’m Alive

Having a few plants around is a great way to liven up your living and/or working space. They look nice, you get to watch them grow and change, and some types of plants can actively improve the room’s air quality. But let’s face it — even the easy ones require a baseline level of care that can easily fall by the wayside. After all, the poor things can’t scream out for water or get up and find a sunnier spot for themselves.

[Ine Hocedez] was tired of watching her plants die and not knowing why. The two main culprits involve water and light, though there can be other issues like soil pH and bugs. It’s easy to get the balance wrong, so why not automate everything?

Plant’m is a complete, portable package that [Ine] designed for a school project. A soil moisture sensor dictates the watering schedule via Raspberry Pi, and water is automatically pumped from an elevated tank.

The lamp is meant to supplement the sunlight, not replace it. But that’s the real beauty of this botanical box — [Ine] can just pick it up and try a different spot if the plant droops or shows burnt spots.

Got the sunlight part down for your plant, but can’t remember to water it? Re-purpose an old Keurig and give it an automatic drip.