ASHRU ABHIJIT PATTNAIK
Published © GPL3+

Arduino Prank Box (Just Open It)

Whenever you are going to open that prank box a music will be played with huge sound and shock you. You can gift this to anyone for prank.

BeginnerFull instructions provided2 hours1,626
Arduino Prank Box (Just Open It)

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LDR
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
Resistor 1k ohm
Resistor 1k ohm
×1
Buzzer
Buzzer
×1
9V battery (generic)
9V battery (generic)
×1
9V Battery Clip
9V Battery Clip
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
circuito.io
circuito.io

Story

Read more

Schematics

Circuito.io schematic

Code

Arduino Prank Box CODE circuito.io

Arduino
code was modified and checked in arduino
int i = 0;

int sensorPin = A3; // select the input pin for ldr
int sensorValue = 0;

void setup() {
  Serial.begin(9600); 
  pinMode(5,OUTPUT);
}
 
void loop() {
    sensorValue = analogRead(sensorPin); // read the value from the sensor
    Serial.println(sensorValue); //prints the values coming from the sensor on the screen
    if(sensorValue>=60)
    digitalWrite(5,HIGH);
    else
    digitalWrite(5,LOW);
 }

Credits

ASHRU ABHIJIT PATTNAIK

ASHRU ABHIJIT PATTNAIK

4 projects • 53 followers
Hackster Live Ambassador

Comments