Automated Pocky Dispenser

Michael Brand
Feb 28, 2015 · 2 min read

So I found myself with a few extra minutes at work and decided to throw together an automated pocky dispenser. The days of fumbling around trying to open packages of pocky in between meetings is over!

Image for post
Image for post


This device uses incredibly advanced construction techniques. First off (and the most crucial part) is the dispensing container, which is just a straw dispenser. The additional key components are an arduino, stepper motor, driver, and giant red button. One of the balls of the straw dispenser was surgically removed and superglued onto the shaft of the stepper motor, this ball was then taped to the other side of the shaft. This allows the motor to turn the shaft will still having some wiggle room to allow for poor alignment.

Image for post
Image for post

Note: Everything is stuck together with double sided sticky tape to keep the system robust and functioning for years to come.

If you notice that the motor seems to move a bit jerky that’s because it was programmed that way. By moving 50 steps backwards and 70 steps forward and repeating this motion, pocky jams can be avoided. (I have yet to have a stuck pocky). As an extra preventive step the direction toggles each time the button is pressed.

The electronics setup is equally as janky as the mechanical setup. An arduino is connected to a stepper motor driver which is wired up to the motor. The giant red button is connected to a GPIO on the arduino. Check out the poorly written code here

Image for post
Image for post

There you have it, all the tools you need to make the greatest addition to any coorporate office. Maybe now I’ll get that raise.

Future Work

Obviously the next logical step is to connect this to the cloud for statistical gathering of office pocky habits. (not even google has that data)


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store