Arduino Phone Monitor
This is a phone monitor that parents can use for their kids. When it's bedtime, my mom told my brothers to sleep at 10 o'clock, but after she goes upstairs to her bedroom, they will keep playing on their cellphones and not sleep. This phone monitor can change this bad habit by warning them to not keep playing on their cellphones. When the phone is taken, the LED light and the sound turns on, and it will message my mom saying that "phone is taken", to tell my mom that they haven't sleep, they are still on their cellphone. As my brothers heard the sound and saw the light, they will immediately put their phone back and sleep.
In this tutorial, I am going to explain how to make this LED-music doorbell with Arduino.
Materials
-Breadboard x1
-Arduino Uno x1
-Cable x1 (connect to a computer)
-LED x1 (red)
-Jumper cables x8
-Arduino speaker x1
-Arduino alligator clip x4
-Arduino photoresistor x1
-Arduino resistor x2 (one yellow one blue)
Circuit Connection
Connect positive on the breadboard to 5V and negative on the breadboard to GND.
LED
1. Plug a jumper cable into digital pin 12 and connect the other side to a28 on the breadboard.
2. Plug the LED to d28 and d27 (if you need to extend the length of the LED to reach the top of the box like mine, use two alligator clips to clamp both of the legs of the LED [picture 8]).
3. Plug the yellow resistor into e27 and e23.
4. Plug a jumper cable into c23 and the negative on the breadboard.
This will form the second picture.
Photoresistor
1. Plug a jumper cable into a19 and the positive on the breadboard.
2. Plug the photoresistor into d19 and d18 (if you need to extend the length of the photoresistor to reach the top of the box like mine, use two alligator clips to clamp both of the legs of the photoresistor [picture 8]).
3. Plug the blue resistor into e18 and e14.
4. Plug a jumper cable into e18 and analog pin 0.
5. Plug a jumper cable into a14 and the negative on the breadboard.
This will form the fourth picture.
Speaker
1. Plug the positive wire into GND.
2. Plug the negative wire into digital pin 11.
Keyboard
1. Plug a jumper cable into GND and digital pin 4.
Programming
For programming open Arduino IDE software on your computer.
Here is the code that I wrote. Upload this to your computer to work.
There are details in the picture
https://create.arduino.cc/editor/niccco/5edfcb06-cf69-40b4-855e-84f787c5aa61/preview
Testing
So now the LED light and the speaker will turn on when the phone is taken, and it will message my mom.
I put it in a box to cover the cables and other stuff to make it prettier and neat. You can add some decorations to the box but I think white is clean and my brothers won't know that it is a machine, it probably works better.