useless box became a source of inspiration
the idea of this project is very close to an application called the useless box and the function of this box is when the user press the switch on a handle comes out from the box to repress the switch again on off position and get into the box again and you can do this process, again and again, it,s just a funny application and has no real benefit I applied the same idea but with a different mechanism I used light sensor and servo motor instead to do the same action
Buzzer
LDR light sensor (LM 393)
jumper wires ( male/male ) (male female)
bread board
card board
wax glue gun
servo motor
Arduino Uno board
USB cable
tinker cad
Arduino IDE sofware
Title of Media
1- connect the buzzer +ve with (pin 13) and -ve with (GNG)
2- use PIR sensor on tinkercad instead of LDR sensor because it's not available on tinkercad and it has the same pinout as LDR
3- connect 5v pin and GND in two parallel bridges on the breadboard
4- connect LDR as follow
+ve pin ( middle pin ) with +ve bridge in the breadboard
-ve pin ( right pin) with GND bridge on breadboard
signal pin ( the left pin ) with Pin 7 in the Arduino
5- connect Servo motor as follow
+ve pin with +ve bridge in breadboard
GND pin in the motor with GND bridge in the breadboard
signal pin with pin 8 in Arduino
construct blocks assuming that we are connecting the LDR sensor starting an If condition with the condition of the read of pin 7 of the sensor is 1 it means it senses light so start action1, else start action 2
action 1: is to play the speaker on pin 13 and rotate the servo on pin 8 to 180 degrees then to zero degrees
action 2: is to rotate the servo to zero degrees and turn of speaker
moving inside the range of PIR gives on pin 7 signal (1) which is equivalent to the signal of LDR when it senses light in its range and this signal occures the motion of the servo motor and also the peep of the buzzer
extracting the code and send it to the Arduino board
prepare pieces of cardboard with suitable dimensions in the shape of cuboid
prepare all needed parts to build the circuit as shown before
connecting circuit and test all connections and functions
assembling all faces of the cuboid and fixing the sensor and the servo motor using double face tape and using thread to connect between the servo motor and the door of the box
1-the inner space of the box was too small which makes connecting wires
2- I had a problem connecting the servo motor with the door and I solved it using a toothpick and thread and gluing it using a wax gun
Title of Media
Title of Media
my useless box its main function is when the door is opened the light sensor will sense the presence of the light so it will order the buzzer to peep and the servo motor to rotate 180 degrees to close the door and return to zero degrees and if the door is closed nothing will happen
Title of Media
Title of Media