
Having a fully automated cotton candy vending machine in your possession is a great thing, but not if you do not have full access to its software. With [Block’s Retro Repairs] getting ghosted by the manufacturer on regaining account access to the machine he bought used for $300, there was little left but to try and break into the system.
We previously covered the journey in getting the vending machine back into a state where it’d actually reliably produce cotton candy again, a process which is quite tedious and temperamental. After a lot of fiddling with sensors and temperature settings this was fixed, but still left the issue that as a vending machine it should allow the owner to set prices and such. Sadly this could only be done remotely via a special account, which access to had been left with the previous owner.
Despite the very custom exterior, the vending machine runs what is effectively an Android system, consisting of an industrial computer board wired into a lot of stepper drivers and other control boards. To the extreme delight of everyone involved, it was possible to access the Ct Terminal application with adb and its product database on the device’s storage. Unfortunately writing back a changed database file didn’t change anything in the UI, so for a few months the project languished.
After nearly bricking the system and ending up factory resetting the control software including temperatures, it actually improved the performance of the machine and produced cotton candy, so that was one win. Ultimately the solution was to modify the original app, but a combination of weak coding skills and the app being in Chinese led him to use free LLM coding chatbots to assist here.
This resulted in a custom settings menu being added with the ability to modify pricing, no need for online access any more and a very nice cotton candy vending machine for the private arcade where presumably friends and family can enjoy cheap or even free cotton candy. Finally having the machine sealed against ant intrusion was also a major improvement.

Back in 2002(?) my high school got one of those coke vending machines with the gantry and belt that dumped the bottle off to the side. My buddy and I spent countless hours trying to fine a way to hack the button pad interface looking for service codes to override the machine.
We eventually talked to a tech working on it. He knew what we were up to and told us the codes… only for us to find out you had to have access to the inside of the machine for them to work. But he gave us two nearly expired drinks for free so we called it win.
Memories of debugging MDB protocol still make me shiver.
Company I worked for did a project with one of the two big names in vending machines. I learned a lot. Believe me, if you thought of a way to hack the machine, they’ve already thought of it and fixed it. One of their engineers was visiting and told us stories. One of their female workers has very long skinny arms, and she’s the “can you reach in and grab it” tester. You know the “Do Not Tip Machine” stickers? Those things are wicked heavy, and they have found them on top of deceased people who were rocking the machine to try to get free stuff. There are sharp blades and catches to counter the “coin on a string” trick. All sorts of clever countermeasures. And when they find a machine that’s been beaten, they ship it back to the factory to figure out how it was done.
Yeah, it was a very fun project…came to nothing in the end because they tested consumer reaction to the product after development!? I could have had a machine for my garage, but the things weigh hundreds of pounds and I couldn’t justify dragging one home.
So a bit further back in time, early 90s, there was a rather grumpy old man who ran a grocery store gas station for the trailer park he owned; mostly single wide trailers dating back to the 70s. Anyway he knew cans were being stolen from his vending machines. Like everything else, they were much older models that he restocked himself. In response to the theft he hung fishing treble hooks inside the machine.
A few mornings after this modification he came to open the store and found one of the lanky armed teenagers from the trailer park laying there with his arm in the machine. The old man opened the store and went about his morning routines and only then did he call the sheriff to come get the kid.
Keep in mind this was very rural Georgia around 1993. Not advocating booby traps for stupid teens just to prevent them stealing sugary drinks, but the teen was dumb enough he got caught multiple times doing this.
I remember a tecnician once left the joy stick panel loose on an arcade machine, and we kids discovered we could lift it up and reach down and toggle the credit lever racking up 100’s of credits. We would play for a couple of hours then turn around and sell the rest of the credits to the kid patiently waiting his turn. One day while reaching down, my finger hooked a ring. I pulled it up and there was the spare key to the rear panel. A day later the tecnician returned and closed the joystick panel but we had the keys. It was a longer reach from the rear of the machine but we could just manage to toggle the credit lever. This went on for weeks until we discovered the key also opened up the money box which we would dutifully empty all the quarters into our large coke cups. It was a lot of fun. Alas, we we’re little rascals!
Similar. Accessed the machine from the tight space in back-to-back machines. Never resold credits, and I don’t think the coin box was accessible. But we got really good at Shinobi!
I just saw this machine’s twin in Faneuil Hall (Quincy Market) in Boston last week. Pretty clever, but I wasn’t in the mood for colored cotton candy.