Close
0%
0%

NSFW Cocktail Machine

Spicing up that party!

Public Chat
Similar projects worth following
Cocktail machines are always fun to have around at any party, but this one challenges you more than any other. NSFW Cocktail Machine will fix you a cocktail only if you show up - naked.

Utilizing years of computer vision research, latest technological advancements and the state of the art artificial intelligence for a purpose of stupid, immature entertainment - if that's not a highest human endeavor, I don't know what it is.

The Cocktail Machine consists of an image processing computer with a camera (R Pi 3), peristaltic pumps, and a weight scale. Computer program takes camera shots, and upon detection of something that is considered NSFW (not safe for work) activates the pumps. The pump draws the liquid from the bottle behind the machine into the glass placed in front of it. The glass sits upon the scale that measures the weight of the glass content. 

Image recognition

The program that detects nudity is TensorFlow based adaptation of the Yahoo's open sourced NSFW imagery detector. It also uses OpenCV for image handling and processing. The program is written in Python.

Pumps

I've put three 12V peristaltic aquarium pumps for each of three cocktail ingredients (rum, coke and lime juice). The PVC tubes going through the pumps have one end inserted in the bottle of corresponding beverage, and the other end tied to the nozzle that drops the liquid in the glass. The nozzle, placed inside of the machine is not visible from the outside. The pumps are MOSFET-driven by the RPi GPIOs.

Scale

The amount of the cocktail is determined by the digital scale the glass is placed upon. The scale consists of a 1kg load cell (resistor strain gauge) in combination with a 24-bit ADC module HX711. The ADC module is controlled via RPi's SPI interface.

Lightshow

The only interface with a user is an RGB LED ring (NeoPixel by Adafruit) on the front panel of the machine. Before detection, the light show is in "searching" mode where the white light pixels circle around the ring. Upon NSFW detection, the light changes into the "breathing" green, what signals user to put an iced-filled cup or glass on the glass stand within the 5 seconds. When the liquid starts pouring in, the percentage of prepared cocktail is displayed as a number of bright blue pixels on the ring. Once the cocktail is ready, the machine goes to the halt mode for 1 minute, indicated by yellow breathing lights. After this break, machine starts new detection cycle again.

  • 1 × Raspberry Pi 3
  • 1 × RPi Camera
  • 3 × Peristaltic Pump
  • 1 × Load Cell + HX711 Module
  • 1 × NeoPixel Ring

View all 6 components

  • 3D design

    Pero06/14/2019 at 09:28 0 comments

    I used Fusion 360 to sketch the housing. As I was preparing for laser cutting, it was important to beforehand keep an eye on all of the finger joints, screw holes, mounting holes etc. This was my first encounter with 3D modeling and it was a lot of fun to learn it.

    Read more »

  • Load Cell

    Pero06/14/2019 at 08:44 0 comments

    The load cell is placed between two plywood plates, attached via 4 M3/M4 screws. Top plate is where the cocktail glass is placed and causes the strain on aluminum cell and piezoresistor bridge attached to it.

View all 2 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates