Alex Wulff
Published © GPL3+

3D-Printed Prank Vibrating Cup

The instant your prankee lifts up this 3D-printed cup it starts violently vibrating! The electronics separate from the cup for easy washing.

BeginnerFull instructions provided4 hours5,749
3D-Printed Prank Vibrating Cup

Things used in this project

Hardware components

Adafruit Perma-Proto Breadboard Quarter Size
×1
Photo resistor
Photo resistor
×1
ATtiny85
Microchip ATtiny85
×1
2n222 NPN Transistor
×1
Mini Vibration Motor
×1
LiPoly battery (105 mAH)
Any small size LiPo battery will do
×1
JST Connector
×1
Solid Core Wire
Only needed for hooking up components
×1
Resistor 10k ohm
Only one is needed
×1
DIP-8 Socket
×1
Arduino UNO
Arduino UNO
Needed only for programming the ATtiny
×1
Capacitor 10 uF
Needed only for programming the ATtiny
×1

Software apps and online services

Autodesk circuits.io

Hand tools and fabrication machines

Hot glue gun (generic)
Hot glue gun (generic)
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

Base.stl

Cup.stl

Fusion Archive

This is a Fusion 360 project archive that you should be able to edit in Fusion 360.

Schematics

circuits.io

Code

VibratingCup.ino

Arduino
//Written by Alex Wulff - www.AlexWulff.com
#define LIGHT_PIN   3
#define VIB_ONE     0
#define VIB_TWO     1
#define THRESHOLD   500

void setup() {
  pinMode(VIB_ONE, OUTPUT);
  pinMode(VIB_TWO, OUTPUT);
}

void loop() {
  if (analogRead(LIGHT_PIN) > THRESHOLD) {
    digitalWrite(VIB_ONE, HIGH);
    digitalWrite(VIB_TWO, HIGH);
  }

  else {
    digitalWrite(VIB_ONE, LOW);
    digitalWrite(VIB_TWO, LOW);
  }
  
  delay(10);
}

Credits

Alex Wulff

Alex Wulff

12 projects • 235 followers
I'm a maker and student at Harvard. I love Arduino, embedded systems, radio, 3D printing, and iOS development. www.AlexWulff.com

Comments