Capturing the spirit of a wine region digitally – An in-depth review of the Swirl Machine

Santa Maria Valley: a relaxed town on California’s Central Coast known for its world-class Pinot Noirs, Santa Maria Style barbecue and friendly, laid back locals. Their visitor’s bureau looked to KPS3 to do something bold. So, we turned a relaxed wine tasting vibe into a complete digital experience, powered by a Swirl Machine. If you are too busy to keep reading, just use it right now – or watch the video. For those who want to dig deeper, enjoy.

What is the Swirl Machine?

The Santa Maria Swirl Machine is an interactive experience that allows users to control the fill level and swirl speed of a glass of Santa Maria Valley wine. The swirl machine then swirls the wine and spills it onto a piece of paper, creating your unique #SantaMariaStyle artwork to keep and share. It also gives you a personality profile and wine recommendations based on your art and swirl style.

From a technical perspective, this was no easy feat. Two raspberry pi’s, an Arduino, stepper motors, suction cups, lead screws, gripper arms, cameras, servers, and—oh yeah—it all had to be waterproof, bulletproof and run 24 hours a day.

As of January 2020, we’ve had more than 2,000 spills from 1,700 users across the globe interacting with more than 10,000 pages on the website. We were covered in publications like TechRepublic, MagPi, and, and Tide even shot us a tweet. We had mayors swirling, newscasters splashing and the industry got a taste of a player that they never thought could make that big of a splash.

The team that built it:

The idea: Credit here goes to Bob Whitefiled, Rachel Curran, and myself. We were driving down to Santa Maria Valley for a meeting and the brainstorm that happened was the foundation for the Swirl Machine.

The construction: Shayna @ Dabblish, Jonathan Rutheiser (the real mastermind behind every element of the Swirl Machine), and myself. Four rounds of machines were built… the first was awesome and totally hand-powered. The second wasn’t bad… the third was sweet but failed halfway into the live demo at the Vintners Festival. The fourth was, well, HUGE… but it worked and is still working!

The hardware: Jonathan Rutheiser and countless hours of internet searches.

The creative: So much creative. From the actual studio set to the landing page to social posts and copy to the profiles that are generated from your spill. Jenna Hubert, Vy Tat, and Matthew Forsythe designed everything you see.

The promotion and media management: The social and PR team that managed the press, stoked the conversation, pinged brands and slid into reporters DMs all day long—Jancy Ulch, Lizbeth Alvarez, and Chrisie Yabu.

The client: The entire Santa Maria Valley team not only was supportive, but they helped create, refine and promote this crazy idea and never once gave up on it!

Special Thanks: Kevin Jones for helping numerous times along the way and Julia Jones for helping handle the digital media side of the promotion.

Here is the technical workflow of the Swirl Machine:

Swirlers visit , a single page, React application hosted in AWS. After joining the swirl queue, users choose their pour and swirl levels. While in the queue, users can watch a video feed of everyone’s swirls, courtesy of camera one. Once it’s a swirler’s turn, they are taken into the full-screen live mode to watch their custom #SantaMariaStyle art come to life.

To initiate the spill, the gripper arm—a servo equipped with a suction cup attached to a venturi powered by an air compressor—moves down to grab a sheet of specialized watercolor paper. The arm brings the sheet up to the paper holder, where it’s clipped into place by a custom gripper. The Arduino then commands the stepper motor, which turns a lead screw and moves the paper to its proper location, the splash zone. Now the magic happens. The Arduino commands the pump to fill the glass to the user’s selected level. Once filled, the system begins to swirl at the user’s selected speed.

Once at max speed, the system triggers the actuator to fire, launching the swirling glass forward and splashing the wine onto the paper. Santa Maria Style art!

During the fill and swirl, camera two records the process, uploading the footage to Amazon S3. The stepper motor then spins the lead screw into the final position—in front of camera three—to capture a photo of the art. Now, wet paper isn’t perfect. It curls, it bends and it shifts. The camera sends the not-so-great photo to an AWS Lamda worker for processing. It detects corners, filters out imperfections and brands the image. The final deliverable is a perfectly cropped, completely unique piece of art that a swirler can cherish and share.

Art tells a story, and Santa Maria Style art tells the story of the user. Once all is said and swirled, users are taken to their custom landing page, where they can download their artwork, their footage from the splash cam and a Swirl-nalysis profile based on their art.

Finally, the hardware resets. The gripper drops the paper, the wine glass goes back to its starting point and the machine sets up to do it all over again.

The Hardware

  • Raspberry Pi 3b+
    • Raspberry Pi Camera Module v1 (for live stream)
  • Raspberry Pi 4
    • Connected to the Arduino Micro to control the machine
    • Raspberry Pi Camera Module v2 (for art still photo)
    • Logitech C920 USB Camera (for splash video)
    • Arduino micro
  • Three cameras
    • Live stream (V1)
    • Swirl art photo (V2)
    • Splash video (C920 Logitech)
  • Air compressor
  • Suction cup with venturi to convert compressed air into a vacuum
  • Pneumatic cylinder (double acting)
  • Diaphragm water pump
  • DC worm gear motor
  • In the box
    • 3x relays to control the solenoids and water pump
    • Speed controller for the motor
    • Step down converter to provide power for high torque servos
  • Hall effect sensor to position the spin plate/wine glass using a magnet
  • Two servos
    • Suction arm
    • Paper gripper
  • Lead screw
  • Stepper motor and controller
  • Three pneumatic solenoids
    • One to control venturi
    • One to control double acting pneumatic cylinder
    • One to knock down the paper when it’s released at the end
  • Breadboards, lots of wires, and solder
  • A bunch of t-slotted rails and fittings
  • A bunch of HDPE and acrylic plastic for the enclosure

The Software

  • Single page React app hosted in S3 and served via CloudFront
  • Lambda media worker (for image processing through OpenCV)
  • Lambda edge function to add OG data to results pages (since it’s a single page app in S3)
  • REST API server (Node / Koa / MySQL / Redis)
  • Elastic Beanstalk for scaling and load-balancing of API
  • API worker that processes the queue and communicates with the hardware system through gRPC
  • Hardware system that is running on the RPi that handles all of the states of the machine
  • Code on the Arduino to talk via USB with the hardware system and to control all of the electrical components

Shit that went wrong

From day one, this project was a nightmare—finding paper that would actually hold a spill, finding a device that could throw the wine. Heck, the sheer volume of moving parts and the fact that we were using liquid was enough to halt the project. Seriously, this project was built to fail. Yet somehow, the failures were not too much to overcome. Here are a few of the best failures:

Here was the first swirl known to date!

And here are all of the machines… these are in the “trash”, but they helped us refine and perfect the final product.

Using wood for the glass platform, in a box of water in the sun. Yeah, that failed

The paper. Paper isn’t meant to get that wet, and when it does, it curls. And when the paper curls, you can’t photograph it!!!

The damn paper gripper arm. That feature alone was insane to get working. Jonathan broke several servos, we went through hundreds of paper ideas and several iterations to get this one working.

Shit that went oh so right

You know that moment when you are so frustrated with a problem you want to throw something and then boom—it works. We had so many of those:

The first was on week one. After we had pitched the idea and they liked it, we had to make sure it would even be possible. Boom, it can work!

The main box was on a rail system with sliders that had metal bearings in them. They would get hung up on the back pull from time to time and cause the system to freeze. We tried grease and different positions with no luck. One night Jonathan said, make them out of the HDPE. And boom, we’ve had no issues with those and they still slide like butter.

As mentioned in the “shit that went wrong” area, getting the paper from a horizontal position to a vertical one was a real struggle. Suctioning porous paper had some downfalls. But one day as we were scratching our heads we thought, why not just put tape on the back of the paper so it forms a seal and doesn’t suck through and grab more than one sheet. Boom, worked like a champ.

There is something to be said about the small victories. To this day, one of Jonathan’s most renowned aspect of the project is an extra step he built into the suction arm. After it grabs the paper and lifts it to its primary location and the gripper arm takes hold of the paper, the suction releases and the arm drops back 3 degrees to prevent it from shifting the paper. Boom, I guess? But it does look sweet.

We call this one the paper blower. Basically, after about 10 swirls, the paper wouldn’t fall flat anymore and would get in the way of the camera. So at about midnight one night, we came up with the idea of just adding a blower to help flip the paper out of the way. Boom, no more babysitting paper.

Results To-Date

Overall, the Swirl Machine was an amazing project. The team learned way more than we set out to or even wanted to learn. But outside of the learning and the numbers, I was able to watch an organization get behind a project, speak perfectly about the brand and why this fits and get excited about marketing. That was a big win. However, the numbers were also a big win and they are still rising.

  • 1,700 swirlers
  • 2,000+ pieces of artwork created
  • 10,000 page views across our websites
  • More than $100,000 in publicity value
  • And we are still rolling

Check out Swirl Machine mentions in TechRepublic, MagPi,, the Reno Gazette Journal, the Arduino Blog, KSBY, KCLU, and Wine Diva Lifestyle.


Our Thoughts

A leader’s voice during a crisis – especially this one

In the past several weeks, we’ve seen many examples of leadership — and attempts at leadership. I am going to talk about the voice these leaders raise and attempt to raise, as opposed to their policies, decision-making or politics. I will address six elements that must be present in a leader’s voice during a crisis… oh, well, anytime to be honest: Accuracy Timing Expertise  Honesty Engagement Sincerity Accuracy If it isn’t correct, don’t spread the word. During a time...

From D&D to PPE: 3D Printing Face Masks for Reno Hospitals

From D&D to PPE: 3D Printed Face Masks for Reno Hospitals Andy Muth, a web developer here at KPS3, and his wife, Katie, own and operate GriffonCo, a 3D printing company specializing in tabletop gaming. GriffonCo was created from a love for Dungeons and Dragons, but now Andy and Katie are spreading love to the community by printing face shields for local hospitals to use while treating COVID-19 patients. As the novel coronavirus spreads, hospitals are using more personal...

Capturing the spirit of a wine region digitally – An in-depth review of the Swirl Machine

Santa Maria Valley: a relaxed town on California’s Central Coast known for its world-class Pinot Noirs, Santa Maria Style barbecue and friendly, laid back locals. Their visitor’s bureau looked to KPS3 to do something bold. So, we turned a relaxed wine tasting vibe into a complete digital experience, powered by a Swirl Machine. If you are too busy to keep reading, just use it right now – or watch the video. For those who want to dig deeper,...