Things used in this project

Hardware components:
Adafruit Perma-Proto Breadboard Quarter Size
×1
Adafruit industries ada161 image 75px
Photo resistor
×1
Attiny85
Atmel 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
A000066 iso both
Arduino Arduino UNO & Genuino 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:
Hy gluegun
Hot glue gun (generic)
09507 01
Soldering iron (generic)

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.
prank_cup_4W4E3bq5h8.f3d

Schematics

circuits.io

Code

VibratingCup.inoArduino
//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

Dsc 0358 aupidjdwxg
Alex Wulff

I'm a 17-year-old maker from Upstate New York. I love Arduino, embedded systems, 3D printing, and iOS development.

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

LED Roulette Game
Easy
  • 85
  • 3

Full instructions

A fun pocket-sized travel game for any age. Try your luck and make the light stop on the green LED.

Using 9 Axes Motion Shield with Arduino
Easy
  • 71
  • 4

Protip

The Arduino 9 Axes Motion Shield allows your Arduino to measure movement: orientation, acceleration and magnetic field.

Guess the Number With Arduino KeyPad
Easy
  • 116
  • 3

Full instructions

A simple and funnies project with an Arduino UNO and the famous keypad shield. Arduino selects a random number, you guess the number.

Bluetooth Control Multitap
Easy
  • 126
  • 2

This is a multi-tap that can be linked to a smartphone and Bluetooth to control the supply of electricity to a smartphone

WiFi Strength Meter
Easy
  • 729
  • 11

A meter that indicates the Wi-Fi signal strength in an intuitive way, using the parts I had on hand.

Potentiometer with RGB LED
Easy
  • 50
  • 2

This uses potentiometers to control a RGB LED.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog