Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Cellphones Iphone Build Technology

High Speed DIY M&M Sorting Machine Uses iPhone Brain 85

HughPickens.com writes: Canoe Tech reports that M&M sorting machines are a popular project for people who like combining electronics, programming and machine building. Most of them send a single M&M down a chute to a simple color sensor where the color sensor will then take a second or two to figure out the color. A servo motor will then rotate a chute that will direct the M&M into the correct pot. But a new project created by the nameless blogger behind the reviewmylife blog that uses an iPhone 5s as its brain is capable of sensing different colors and so can "sort" the M&Ms as they fall past. The iPhone communicates the information via Bluetooth to an Arduino board, which in turn fires off the correct electro magnet controlled gate. One practical application of the sorter could be creating a bowl of M&Ms — with all the brown ones removed.
This discussion has been archived. No new comments can be posted.

High Speed DIY M&M Sorting Machine Uses iPhone Brain

Comments Filter:
  • I don't get it (Score:5, Interesting)

    by Anonymous Coward on Friday December 26, 2014 @01:33PM (#48676365)

    I must be getting old. I did this in college 20+ years ago in my process automation course. I assure you that color-sorting photocells don't take a second or two to figure out the color.

    It was all done with standard industrial stuff on Allen Bradley PLCs.

    People do this for a hobby? I don't get it.

    • Re: (Score:1, Funny)

      by Anonymous Coward

      I bet you did not even use an iPhone, pleb.

      • by OzPeter ( 195038 )

        I bet you did not even use an iPhone, pleb.

        And if you read TFA (which I bet you didn't) on the top of the list of improvements is to ditch the iPhone.

        Try to get rid of the whole iPhone / Bluetooth setup. I think to do this you could try using a Raspberry Pi with a high speed (60/120FPS) capable camera directly attached. The Pi probably has the processing power to do the image processing.

        • They could use a PLC. Like they did 20+ years ago...

          • by OzPeter ( 195038 )

            They could use a PLC. Like they did 20+ years ago...

            These days you could run an application as simple as this directly in the camera from someone like Cognex [cognex.com]. (of course such a camera is capable of doing way more processing)

            • Cognex cameras are the bomb. Where I worked, we had one system that did QA on time-release tablets, and could analyze around 30-40 tablets/second. Only problem is Cognex is well aware of their reputation, and charges accordingly.
          • by itzly ( 3699663 )
            For a hobbyist, a PLC isn't as cheap or as easy to get as a Raspberry Pi, or iPhone.
          • An Arduino's probably much more accessible and versatile, particularly for the price...

            That said, using a camera to do simple color detection is overkill, it's just that mobile cameras are so ubiquitous and there's A LOT of off-the-shelf software for hacking upon them.

    • I must be getting old. I did this in college 20+ years ago in my process automation course.

      When I was in grade school 30+ years ago, we sorted coins with toilet paper tubes and white glue. No fancy electronics was needed. As for sorting M&M's by color, I only need my index finger for that.

    • You don't get that some people's hobby is to learn about electronics and build things for their own benefit?

      That's quite sad.

      • No. This is where I say Whoosh.

        It isn't that it's not a worthwhile thing to do. It's that (A) the iPhone solution is meh, and (B) this whole subject is meh and not worthy of Slashdot. It has been done so often as to not be newsworthy.
        • While I don't get the Whoosh, I do agree that this is not slashdot worthy. The iPhone part however could be nothing more than wanting to dip into programming on an iPhone.

    • by drolli ( 522659 )

      Moreover, this task is actually so simple that if i did it for a hobby i thought first: should not take mora that 3 ttl chips to implement it, but then i thought: woulf be interesting to get the transistor count below 10 per color channel if built directly using transistors, resistors and diodes.

      But only if i get the headline "guy replaces iphone, bluetooth module and arduino by 20 transistors".

  • Practical (Score:5, Funny)

    by twitnutttt ( 2958183 ) on Friday December 26, 2014 @01:35PM (#48676383)

    One practical application of the sorter could be creating a bowl of M&Ms — with all the brown ones removed.

    Wow, and to think that until I read this line, I was thinking to myself, "How useless."

  • by HughPickens.com ( 3830033 ) on Friday December 26, 2014 @01:36PM (#48676387) Homepage
    "One practical application of the sorter could be creating a bowl of M&Ms - with all the brown ones removed."

    According to Dan and Chip Heath, that's just what rock band Van Halen demand in one of the riders to their standard contract. The band's "M&M clause" was written into its contract to serve a very speciïc purpose [businessofsoftware.org]. It was called Article 126, and it read as follows: "There will be no brown M&M's in the backstage area, upon pain of forfeiture of the show, with full compensation." The article was buried in the middle of countless technical speciïcations. When David Lee Roth would arrive at a new venue, he'd immediately walk backstage and glance at the M&M bowl. If he saw a brown M&M, he'd demand a line check of the entire production. "Guaranteed you're going to arrive at a technical error," said Roth. "They didn't read the contract. Sometimes it would threaten to just destroy the whole show."
    • by OzPeter ( 195038 )

      The article was buried in the middle of countless technical specifications.

      Last year I was working on a Stacker/Reclaimer (Sort of but not like this [wikipedia.org]) and was reading through the 500+ page customer specification. Buried in the middle of the electrical section of the spec was a paragraph that said something along the lines of:

      An ashtray shall be welded to the side of the operators control room.

      When I saw that I thought it was probably something similar to the M&M clause.

    • by Matheus ( 586080 ) on Friday December 26, 2014 @02:50PM (#48676735) Homepage

      I hate to be a spoil sport but I have a copy of their rider.

      While their stated intention is true (well at least that they stated it) but the details are quite wrong. The M&M caveat was included in the Backstage Rider which is generally handled by hospitality staff (for such a large production at least). It is not "buried in countless technical specifications" as this article suggests. The terms are also not quite so stated: "M&M's (WARNING: ABSOLUTELY NO BROWN ONES)." This being in a rider whose overriding terms stating that the contract "...may be voided by (Van Halen) unless fully executed..." the surrounding forfeiture of the show may occur but not with full payment (only possible forfeit of paid deposits, expenditures).

      Mr. Roth may have had good intentions when he had that written into their rider BUT his prima donna nature was showing in his lack of understanding of how the show was actually being executed. Specifically those responsible for procuring and maintaining backstage hospitality have absolutely *nothing to do with anything technical what-so-ever and so correlating a brown M&M to an issue with the production was misguided more likely incidental.

    • Very handy if I am going to have Van Halen over for a gig!

    • Now I understand how David Lee Roth was labeled a JERK. He was so full of the other brown stuff...just looking for another payout. Glad he's somewhere sorting through his own crap. Hey David, if you eat a lot of beets you'll see purple shit, man!
  • If only this technology had existed to create bowls of green-only M&M's when I was a teenager, maybe I could've gotten laid!
  • by Scarletdown ( 886459 ) on Friday December 26, 2014 @01:38PM (#48676403) Journal

    Sure, this can sort by colors. But, is it capable of filtering out the Ws?

  • by Anonymous Coward

    One practical application of the sorter could be creating a bowl of M&Ms — with all the brown ones removed.

    Really? When you can order M&Ms directly from the company in whatever colors you want? And if you live in the right place, you can go to M&M's World and get your own messages printed on them.

    But yeah, that's just not practical.

    • It's just odd word choices all around. The headline suggests that this is important because it uses an iPhone as its brains (as if a high-speed M&M sorting machine isn't cool by itself), then the body goes on to says that the sorter's creator's blog uses an iPhone as its brains (wait, I thought it was the sorter itself that did that?), and then it strongly implies that other M&M sorting machines can't detect different colors, which makes one wonder how those machines ever managed to sort any M&M

  • by Virtucon ( 127420 ) on Friday December 26, 2014 @01:57PM (#48676487)

    with all the brown ones removed.

    The brown ones are naked! [youtube.com]
       

  • Are you trying to match the M&M's to the decor of a room or something? Do the brown ones clash with your shoes?

    Ok, sure, I realize that the green ones have some special magic that improves your chances of making a home run in baseball. But I just don't see any way that the brown ones are otherwise special.

  • by Jason Levine ( 196982 ) on Friday December 26, 2014 @02:15PM (#48676575) Homepage

    This makes me wonder if it would be possible to build a machine to sort perler beads. For those who don't know, these are small (under 5mm) plastic beads. You place them on a tray to make a design (Doctor Who, One-up mushroom from Super Mario Brothers, etc), then iron the beads so they melt and fuse. It's an inexpensive (relatively speaking) craft that can be really fun because of the wide range of design possibilities.

    The major problem is that the cheapest way to get beads is by the tub. This is - as you might expect - a tub of various colors of beads... all mixed together. Want a black bead? You need to hunt through the tub to find one. Or you can do what we do and manually sort through thousands of beads and group similar colors together in another container.

    The M&M sorting machine makes me wonder if you could make a machine that would sort the beads. You could even simplify it and only match a specific color bead. Incoming beads would either be sent to the "matching" tray or would go to the "doesn't match" pile. (The latter could be resorted to match another color, repeating until no beads were left.)

    Anyone into robotics know how much a DIY project like this would cost and what level of expertise this would require? This might be an interesting project to tackle with my older son who is in his middle school Lego Robotics team.

    • by Anonymous Coward

      This reminds me of a horror story from the 1940s-1950s era, before tranquilizers, before antipsychotics, when the very best treatment available wasn't much good and people who were, as they said then, crazy, were institutionalized.

      There was this new orderly assigned to the day treatment room where, each day, the patients in need of some social interaction were brought in and sat on benches, each with a half dozen bowls, and spent the day picking colored beads out of a huge vat at the middle of the table, so

    • The kit includes a color sensor... the rest is up to the imagination of the student building it: http://youtu.be/d4k9bWbtJEk [youtu.be]

    • by mlts ( 1038732 )

      This is overall a good exercise.

      For example, finding out if it is easier to just pull one color and have everything drop in an assorted bin versus sorting everything out by known colors and having a reject bin for something that the machine can't figure out. After that, maybe have the machine do another sort operation, so if it sorts correctly 99% of the time, a few sorts later will reduce the occurrence of the wrong color to an acceptably small margin.

      This is the stuff that engineering is made of, and wou

    • Comment removed based on user account deletion
    • by Kjella ( 173770 )

      The major problem is that the cheapest way to get beads is by the tub. This is - as you might expect - a tub of various colors of beads... all mixed together. Want a black bead? You need to hunt through the tub to find one. Or you can do what we do and manually sort through thousands of beads and group similar colors together in another container.

      The only thing you really need to know is - do you think they actually make them in mixed colors? Nah... they make a batch of a gazillion red beads, then blue beads, then green beads, then yellow beads... the tub is just their mix to maximize sales, they know that you'll end up with leftovers and will buy more expensive pure color packs to round it out. It's like how there's a silent conspiracy between hot dog sausages and hot dog bun makers, they avoid matching numbers so you'll always go out shopping more

  • Racism (Score:2, Funny)

    by tgrigsby ( 164308 )

    One practical application of the sorter could be creating a bowl of M&Ms — with all the brown ones

    So you just want to single out the brown ones, huh?

    I'm brown, you insensitive clod!

  • So, what if you wanted to filter out all the W's - can your machine do that? What about skittles, did you want to limit yourself to one type of sweet?

  • [......] uses an iPhone 5s as its brain is capable of sensing different colors [......]

    Brain? Fuck off! This is news for nerds, not news for retards.

  • Neat. But way to slow for an industrial sorting process. Use a fast PLC with a vision system. Use bursts of high pressure air to blow the M&M into the appropriate chute as it goes by on a high speed conveyor. blah, blah, blah. Actually, isn't it faster just to buy the M&M's in bulk, pre-sorted, directly from M&M Mars [mymms.com]?
  • Ok firstly, I'm not cool with this blatant racism but far more important than racism is not targeting the fucking BLUE ones which are an abomination.

    I once purchased a pack and every single one was blue, I was horrified, I washed the bastards in vinegar, then water, then let them dry on a towel*. Disgusting blue ones, ugh.
    *(I'm not joking)

  • The internet is full of articles where people basically lose their shit when someone uses an Arduino instead of discrete logic and here's an article talking about using an iPhone as if its CPU has a special instruction for identifying colour instead of a simple $2 MCU.

    What next? Lets build a Beowulf cluster of Macbook Airs just to turn off the living room lights via the internet! I'm sure the news for retards site will run with it.

  • Anyone knows which is the fastest M&M/Skittles/etc sorting machine in the world?

  • Maria, for those who haven't heard the sad tale, was a dedicated employee at the M&M factory. She got up early every morning, packing the 5 children off to school, and bracing herself for the arduous bus ride to work. Despite her best efforts she was fired from her desperately needed job. Her only failure seems to have been that she dutifully discarded the 'W' candies that passed her inspection station.

Real Users find the one combination of bizarre input values that shuts down the system for days.

Working...