Get Your Smarties Or M&Ms From A Vending Machine

There are some debates that split the world down the middle. Serious stuff: M&Ms, or Smarties*? Yes, the two chocolate beans may bear a superficial resemblance to each other, but you’re either a Smartie lover, or an M&M lover. No compromises.

[Maximusvo] has sensibly dodged all questions of brand loyalty in his text if not in his images even though it’s obvious what kind of confectionery he’s working with in his candy vending machine. The hard-shell chocolates are loaded into a hopper, from which a colourful cascade is released onto a scale. When the desired weight has been accumulated, it is tipped into a drawer for the hungry recipient.

Behind it all is an Arduino with a motor to release the beans, a load cell to weigh them, and an LCD display to give a status report. A motor vibrates the chute to ensure they move down it, but as can be seen in the video demo below the break it’s not doing an entirely successful job. There is an external buzzer to indicate delivery, and aside from the wooden construction of the machine there are 3D printed parts in the scale.

Continue reading “Get Your Smarties Or M&Ms From A Vending Machine”

M&Ms And Skittles Sorting Machine Is Both Entertainment And Utility

If you have OCD, then the worst thing someone could do is give you a bowl of multi-coloured M&M’s or Skittles — or Gems if you’re in the part of the world where this was written. The candies just won’t taste good until you’ve managed to sort them in to separate coloured heaps. And if you’re a hacker, you’ll obviously build a sorting machine to do the job for you.

Use our search box and you’ll find a long list of coverage describing all manner and kinds of sorting machines. And while all of them do their designated job, 19 year old [Willem Pennings]’s m&m and Skittle Sorting Machine is the bees knees. It’s one of the best builds we’ve seen to date, looking more like a Scandinavian Appliance than a DIY hack. He’s ratcheted up a 100k views on Youtube, 900k views on imgur and almost 2.5k comments on reddit, all within a day of posting the build details on his blog.

As quite often happens, his work is based on an earlier design, but he ends up adding lots of improvements to his version. It’s got a hopper at the top for loading either m&m’s or Skittles and six bowls at the bottom to receive the color sorted candies. The user interface is just two buttons — one to select between the two candy types and another to start the sorting. The hardware is all 3D printed and laser cut. But he’s put in extra effort to clean the laser cut pieces and paint them white to give it that neat, appliance look. The white, 3D printed parts add to the appeal.

Rotating the input funnel to prevent the candies from clogging the feed pipes is an ace idea. A WS2812 LED is placed above each bowl, lighting up the bowl where the next candy will be ejected and at the same time, a WS2812 strip around the periphery of the main body lights up with the color of the detected candy, making it a treat, literally, to watch this thing in action. His blog post has more details about the build, and the video after the break shows the awesome machine in action.

And if you’re interested in checking out how this sorter compares with some of the others, check out these builds — Skittles sorting machine sorts Skittles and keeps the band happy, Anti-Entropy Machine Satiates M&M OCD, Only Eat Red Skittles? We’ve Got You Covered, and Hate Blue M&M’s? Sort Them Using the Power of an iPhone!  As we mentioned earlier, candy sorting machines are top priority for hackers.

Continue reading “M&Ms And Skittles Sorting Machine Is Both Entertainment And Utility”

Sort Your Candy With A Raspberry Pi And Google Cloud Vision

If you have been off trick-or-treating and returned home with an embarassment of candy, what on earth can you do to mange the problem and sort it by brand?

Yes, it’s an issue that so many of us have had to face at this time of year. So much a challenge, that the folks at [Dexter Industries] have made a robotic candy-sorter to automate the task.

OK, there’s something of the tongue-in-cheek about the application. But the technology they’ve used is interesting, and worth a second look. Hardware wise it’s a Lego Mindstorms conveyor and hopper controlled by a Raspberry Pi through the BrickPi interface. All very well, but it’s in the software that the interest lies. They use the Raspberry Pi’s camera to take a picture to send off to Google Cloud Vision, which they then query to return a guess at the brand of the candy in question. The value returned is then compared to a list of brands to keep or donate to another family member, and the hopper tips the bar into the respective pile.  They provide full build details and code, as well as the video we’ve put below the break. So simple a child can explain it, sort of.

Continue reading “Sort Your Candy With A Raspberry Pi And Google Cloud Vision”

Technically A Hack. Still Questionable. Remote Control Food.

We thought we were going to read an article about, perhaps, a quadcopter that could fetch beer, or donuts. What we got was more along the lines of a donut dragging itself across the floor, rendering it pitiful and advisibly indigestible.

Sometimes people joke about not wanting to get in mind of a crazy person. We understand. While we could certainly follow [Michael Kohn]’s logic, the motivation was alien. Either way, in a rare turn of events there was not a single Arduino to be seen; just reverse engineering, unique solutions, and even a custom board. This is what some of you have been asking for… we think.

The brain of the questionable contraption is a TI MSP430G2231 and a tiny forward only motor driver circuit. The MSP waits for a signal from a hacked IR remote control from a cheap RC car. It then turns those into the appropriate motor control signals which go to some of those nice tiny metal gearboxes.

There were, naturally, a lot of technical issues in mounting the electronics to the food that, well… they didn’t need to be solved, but they were solved. For example, masking tape apparently does not stick well to green peppers, so toothpicks must be employed to pin the tape in place. Hopefully knowledge like this is scheduled for the nightly wipe while we sleep, but we’ll probably hold onto  it till we die, unlike expensive piano lessons.

In the end we had a good laugh, and the idea is so dumb it will probably be an educational Kickstarter next week. Video after the break.

Continue reading “Technically A Hack. Still Questionable. Remote Control Food.”

Venduino Serves Snacks, Shows Vending Is Tricky Business

Seems like just about every hackerspace eventually ends up with an old vending machine that gets hacked and modded to serve up parts, tools, and consumables. But why don’t more hackerspaces build their own vending machines from scratch? Because as [Ryan Bates] found out, building a DIY vending machine isn’t as easy as it looks.

[Ryan]’s “Venduino” has a lot of hackerspace standard components – laser-cut birch plywood case, Parallax continuous rotation servos, an LCD screen from an old Nokia phone, and of course an Arduino. The design is simple, but the devil is in the details. The machine makes no attempt to validate the coins going into it, the product augurs are not quite optimized to dispense reliably, and the whole machine can be cleaned out of product with a few quick shakes. Granted, [Ryan] isn’t trying to build a reliable money-making machine, but his travails only underscore the quality engineering behind modern vending machines. It might not seem like it when your Cheetos are dangling from the end of an auger, but think about how many successful transactions the real things process in an environment with a lot of variables.

Of course, every failure mode is just something to improve in the next version, but as it is this is still a neat project with some great ideas. If you’re more interested in the workings of commercial machines, check out our posts on listening in on vending machine comms or a Tweeting vending machine.

Continue reading “Venduino Serves Snacks, Shows Vending Is Tricky Business”

Hackaday Prize Entry: Harmonicas, Candy, And Van Halen

Watch enough How It’s Made, and you’ll soon become very enthusiastic about computer vision and compressed air. In factories all around the world, production lines automatically sort the wheat from the chaff by running a product underneath a camera and blowing defective product off the line.

For his Hackaday Prize entry, [Fabien] is attempting this same task. He’s building a machine that will rapidly sort candy with computer vision and precisely controlled jets of air. He’s also planning for the Van Halen reunion and building a CNC harmonica.

Right now, the design has a hopper full of M&Ms dropping through a channel where a camera looks at each individual piece of candy. A Raspberry Pi, camera, and OpenMV detect all the red, yellow, brown, and blue M&Ms, and send that information to a computer controlling a suite of pneumatic valves. When these valves open, candy of different colors is shuffled off into it’s own bin. It’s the perfect device for someone responsible for reading Van Halen’s rider.

In an interesting little side project, [Fabien] needed a way to test the pneumatic valves before building the color sensor and candy chute. He had a harmonica lying around, and built something we’re surprised we’ve never seen before. It’s a CNC harmonica, capable of belting out a few tunes. You can check out that testing video after the break.

Continue reading “Hackaday Prize Entry: Harmonicas, Candy, And Van Halen”

Push Button, Receive Candy (or Death)

Will you be handing out candy on Halloween? Maybe you have a party to attend or kids to take around the neighborhood and can’t be home to answer the bell. You don’t want to be The Dark House With No Candy, ’cause that’s a good way to get TP’d. We’re not exactly sure what [Ben]’s catalyst was aside from trying to avoid tempting would-be thieves with an unattended bowl on the porch. Whatever the reason, we’re happy to present Candy or Death, his gamified candy (or death)-dispensing machine.

Okay, so it only dispenses candy for now. [Ben] hasn’t quite worked the kinks out of his death ray. He designed it to sit behind a porch-facing window so it can’t be messed with. All trick-or-treaters can do is push the button and take the candy. It’s built around a cereal dispenser that’s modified to be cranked by a piece of round rod driven with a NEMA-17 stepper motor and an Arduino Uno with a motor shield. The candy slides down a length of aluminium rain gutter into a plastic stacking bin, and the whole thing is built into a nice wood frame.

A few adjustments were necessary to keep it from jamming. The dispenser’s hopper uses rubber blades to govern the flow, and he ended up removing a few and trimming the others. [Ben] has an album up of all his build pics and put his code on the gits. Stick around to see videos of the machine from the front and rear.

Continue reading “Push Button, Receive Candy (or Death)”