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

PHPoC: Web-Based Thermometer
Easy
  • 239
  • 11

Full instructions

This project allows you to check the temperature at home from anywhere using a web browser.

Distance Indicator Using Ultrasonic Sensor
Easy
  • 108
  • 4

Work in progress

This project lights a set of LED's depending upon the distance of the obstacle with respect to the ultrasonic sensor.

Arduino - Web-Based Joystick
Easy
  • 272
  • 8

Full instructions

This project shows how to control devices from anywhere using web-based joystick on smartphone.

BluSpike - Community Driven BLE Sensor Network
Easy
  • 72
  • 2

Full instructions

Easy to build w/ off the shelf parts, BLE solar powered sensor array. Connect and share its data to the cloud and be rewarded with ethereum

Arduino - Have Fun with Color Sensor
Easy
  • 1,066
  • 15

Full instructions

This project shows how to change color of Minion using Arduino, PHPoC WiFi Shield and color sensor.

Using Python and Arduino MKR1000 for Secure IoT
Easy
  • 3,333
  • 15

Full instructions

Getting started with Python and Arduino MKR1000 for secure IoT projects.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login