Schlagwort: vending machine

  • This vending machine draws generative art for just a euro

    This vending machine draws generative art for just a euro

    Reading Time: 2 minutes

    If you hear the term “generative art” today, you probably subconsciously add “AI” to the beginning without even thinking about it. But generative art techniques existed long before modern AI came along — they even predate digital computing altogether. Despite that long history, generative art remains interesting as consumers attempt to identify patterns in the underlying algorithms. And thanks to the “Generative Art 1€” vending machine built by Niklas Roy, you can experience that for yourself by spending a single euro.

    Roy built this vending machine to display at the “Intelligence, it’s automatic” exhibit, hosted at Zebrastraat in Belgium. Rather than AI, Roy gave the machine more traditional algorithms to generate abstract pieces of line art. Each piece uses the current time as the “seed” for the algorithms, so it will be unique and an identical piece will never appear again. And the current piece, shown on a screen in the machine, always evolves as time passes. If a viewer sees something they like, they’ll need to insert a euro coin immediately or risk losing the opportunity to secure the art.

    Once paid, the machine will use a built-in pen plotter to draw the line on a piece of paper. It will also label the art with a unique identifier: the seed number. Then, it will stamp the paper for authenticity. Finally, it will cut that piece from the roll of paper and dispense the art through a chute at the bottom.

    That all happens under the direction of an Arduino Mega 2560 board. It controls the pen plotter, which is a repurposed model called Artima Colorgraf. The coin-op mechanism is an off-the-shelf unit and a Python script, running on a connected laptop, performs the art generation. What message is this vending machine meant to convey? Maybe that art is ethereal or that it has little value — just a euro — to modern society. Whatever the case, it is a work of art in its own right.

    [youtube https://www.youtube.com/watch?v=g9BWODjYZBY?feature=oembed&w=500&h=281]

    The post This vending machine draws generative art for just a euro appeared first on Arduino Blog.

    Website: LINK

  • Venderoo is an Arduino Mega-powered DIY vending machine

    Venderoo is an Arduino Mega-powered DIY vending machine

    Reading Time: 2 minutes

    For now-college student Joel Grayson, making something that combined his interests in mechanics, electronics, and programming while being simultaneously useful to those around him was a longtime goal. His recent Venderoo project is exactly that, as the creatively named vending machine was designed and built from the ground-up to dispense snacks in his former high school to fellow classmates.

    Constructing Venderoo started with a sketch that featured the dimensions, vending mechanism, and the electronics panel on the left. Then through a combination of a CNC router and a jigsaw, Grayson meticulously cut out each plywood panel and assembled them together along with clear acrylic sheets so students could observe the machine in-action. On the electronics side, an Arduino Mega 2560 is responsible for handling selections on the keypad, displaying commands/feedback to users via the character LCD, accepting money, and rotating the motors when it’s time to dispense.

    When a student first approaches Venderoo, they are greeted by a message instructing them to select their snack of choice, after which the price will appear and ask for a combination of $1 or $5 bills, depending on the price. Once the balance has met the threshold, Venderoo will find the location of the snack and spin the appropriate motor thanks to powerful MOSFET drivers.

    To see more about how Grayson’s Venderoo vending machine works, watch the video below!

    [youtube https://www.youtube.com/watch?v=bHHk2FL5Ujs?feature=oembed&w=500&h=281]

    The post Venderoo is an Arduino Mega-powered DIY vending machine appeared first on Arduino Blog.

    Website: LINK

  • A desktop-sized DIY vending machine for your room

    A desktop-sized DIY vending machine for your room

    Reading Time: 2 minutes

    Have you ever wanted your very own vending machine? If so, you likely found that they’re expensive and too bulky to fit in most homes. But now you can experience vending bliss thanks to this miniature vending machine designed by m22pj, which you can craft yourself using an Arduino and other materials lying around the house.

    This project is fun, because it gives makers the opportunity to experiment with vending machine features without a big budget. That even includes more modern payment options, like one might see on a college campus with vending machine that charge to student identification cards. This design lets DIYers work with those features to learn about RFID, security, and more. And, of course, this is a chance to get hands-on experience with vending mechanisms, too.

    The best part is that you can build this with some cardboard and off-the-shelf electronic components. The enclosure and almost all of the mechanical parts are cardboard. The electronics include an Arduino Mega 2560 board, a keypad, an RFID reader module, LEDs, and servo motors. The servos must be full-rotation models, so they can drive the vending mechanisms.

    As designed, this vending machine can serve up to four different treats. But it would be possible to expand that to include many more. The Arduino has plenty of pins available to control additional servo motors, so the sky is the limit. 

    The post A desktop-sized DIY vending machine for your room appeared first on Arduino Blog.

    Website: LINK

  • Make it rain chocolate with a Raspberry Pi-powered dispenser

    Make it rain chocolate with a Raspberry Pi-powered dispenser

    Reading Time: 5 minutes

    This fully automated M&M’s-launching machine delivers chocolate on voice command, wherever you are in the room.

    [youtube https://www.youtube.com/watch?v=hsGhCl0y1FY]

    A quick lesson in physics

    To get our head around Harrison McIntyre‘s project, first we need to understand parabolas. Harrison explains: “If we ignore air resistance, a parabola can be defined as the arc an object describes when launching through space. The shape of a parabolic arc is determined by three variables: the object’s departure angle; initial velocity; and acceleration due to gravity.”

    Harrison uses a basketball shooter to illustrate parabolas

    Lucky for us, gravity is always the same, so you really only have to worry about angle and velocity. You could also get away with only changing one variable and still be able to determine where a launched object will land. But adjusting both the angle and the velocity grants much greater precision, which is why Harrison’s machine controls both exit angle and velocity of the M&M’s.

    Kit list

    The M&M’s launcher comprises:

    • 2 Arduino Nanos
    • 1 Raspberry Pi 3
    • 3 servo motors
    • 2 motor drivers
    • 1 DC motor
    • 1 Hall effect limit switch
    • 2 voltage converters
    • 1 USB camera
    • “Lots” of 3D printed parts
    • 1 Amazon Echo Dot

    A cordless drill battery is the primary power source.

    The project relies on similar principles as a baseball pitching machine. A compliant wheel is attached to a shaft sitting a few millimetres above a feeder chute that can hold up to ten M&M’s. To launch an M&M’s piece, the machine spins up the shaft to around 1500 rpm, pushes an M&M’s piece into the wheel using a servo, and whoosh, your M&M’s piece takes flight.

    Controlling velocity, angle and direction

    To measure the velocity of the fly wheel in the machine, Harrison installed a Hall effect magnetic limit switch, which gets triggered every time it is near a magnet.

    Two magnets were placed on opposite sides of the shaft, and these pass by the switch. By counting the time in between each pulse from the limit switch, the launcher determines how fast the fly wheel is spinning. In response, the microcontroller adjusts the motor output until the encoder reports the desired rpm. This is how the machine controls the speed at which the M&M’s pieces are fired.

    Now, to control the angle at which the M&M’s pieces fly out of the machine, Harrison mounted the fly wheel assembly onto a turret with two degrees of freedom, driven by servos. The turret controls the angle at which the sweets are ‘pitched’, as well as the direction of the ‘pitch’.

    So how does it know where I am?

    With the angle, velocity, and direction at which the M&M’s pieces fly out of the machine taken care of, the last thing to determine is the expectant snack-eater’s location. For this, Harrison harnessed vision processing.


    Harrison used a USB camera and a Python script running on Raspberry Pi 3 to determine when a human face comes into view of the machine, and to calculate how far away it is. The turret then rotates towards the face, the appropriate parabola is calculated, and an M&M’s piece is fired at the right angle and velocity to reach your mouth. Harrison even added facial recognition functionality so the machine only fires M&M’s pieces at his face. No one is stealing this guy’s candy!

    So what’s Alexa for?

    This project is topped off with a voice-activation element, courtesy of an Amazon Echo Dot, and a Python library called Sinric. This allowed Harrison to disguise his Raspberry Pi as a smart TV named ‘Chocolate’ and command Alexa to “increase the volume of ‘Chocolate’ by two” in order to get his machine to fire two M&M’s pieces at him.

           

    Drawbacks

    In his video, Harrison explaining that other snack-launching machines involve a spring-loaded throwing mechanism, which doesn’t let you determine the snack’s exit velocity. That means you have less control over how fast your snack goes and where it lands. The only drawback to Harrison’s model? His machine needs objects that are uniform in shape and size, which means no oddly shaped peanut M&M’s pieces for him.

    He’s created quite the monster here, in that at first, the machine’s maximum firing speed was 40 mph. And no one wants crispy-shelled chocolate firing at their face at that speed. To keep his teeth safe, Harrison switched out the original motor for one with a lower rpm, which reduced the maximum exit velocity to a much more sensible 23 mph… Please make sure you test your own snack-firing machine outdoors before aiming it at someone’s face.

    Go subscribe

    Check out the end of Harrison’s videos for some more testing to see what his machine was capable of: he takes out an entire toy army and a LEGO Star Wars squad by firing M&M’s pieces at them. And remember to subscribe to his channel and like the video if you enjoyed what you saw, because that’s just a nice thing to do.

    Website: LINK

  • Quick Fix — a vending machine for likes and followers

    Quick Fix — a vending machine for likes and followers

    Reading Time: 2 minutes

    Sometimes we come across a project that just scores a perfect 10 on all fronts. This is one of them: an art installation using Raspberry Pi that has something interesting to say, does it elegantly, and is implemented beautifully (nothing presses our buttons like a make that’s got a professionally glossy finish like this).

    Quick Fix is a vending machine (and art installation) that sells social media likes and followers. Drop in a coin, enter your social media account name, and an army of fake accounts will like or follow you. I’ll leave the social commentary to you. Here’s a video from the maker, Dries Depoorter:

    Quick Fix – the vending machine selling likes and followers

    Quick Fix in an interactive installation by Dries Depoorter. The artwork makes it possible to buy followers or likes in just a few seconds. For a few euros you already have 200 of likes on Instagram. “Quick Fix “is easy to use. Choose your product, pay and fill in your social media username.

    There’s a Raspberry Pi 3B+ in there, along with an Arduino, powering a coin acceptor and some I2C LCD screens. Then there’s a stainless steel heavy-duty keyboard, which we’re lusting after (a spot of Googling unearthed this, which appears to be the same thing, if you’re in the market for a panel-mounted beast of a keyboard).

    This piece was commissioned by Pixelache, a cultural association from Helsinki, whose work looks absolutely fascinating if you’ve got a few minutes to browse. Thanks to them and to Dries Depoorter — I have a feeling this won’t be the last of his projects we’re going to feature here.

    Website: LINK