Introduction: Android Motion Detector Camera | Arduino Project

About: We are the EEE-ians. We are for helping you in various Electronics projects and study

Hello everyone. In our smartphone there are different types of sensor. These are used for different types of applications. But if you want to add extra sensors in our smartphone; for this you have to use Arduino/Micro Controller. From the tittle I hope you are sure that I am going to describe about Motion sensor. Yeah, it is possible to make a Motion Detector Camera with a smartphone and arduino.

For making this project you will need:

1. Arduino


3. LDR

4. High bright Led

5. Sonar sensor (hc-sr04)

6.Old headphone jack ( which had microphone)


8.Jumper wire

9. Power source ( power bank will do)

First of all, download the code of arduino from this link.
Then follow the steps:

Step 1:

Firstly, cut Left and right audio out wires of your earphone . you will see red color (Microphone) and black (ground) color wire . Attach jumper wire to these wires .

Step 2: Wiring Arduino

Make the arduino circuit by following the steps below :

Arduino pin 2 <----> white led

Arduino pin 6 <---->Tring ( Sonar sensor)

Arduino pin 7 <---->Echo (Sonar sensor)

give 5v to the Sonar sensor

Earphone :

Red color wire <----> One leg of LDR

Black color wire <----> another leg of LDR

(LDR must be faced on the White led . You can also isolate LDR and LED by using black scotch tape.

Step 3:

Power up the arduino and Connect the earphone jack to your smartphone. Then open Camera app in your smartphone . Now, put an object in front of the Sonar sensor , you will see that your phone will start taking pictures. Then , Make a nice casing for it. :)

Congratulation !! finally you made your own motion detector camera.

Step 4: How It Works

Definitely, you are thinking that how it works.. I hope that you know how a sonar sensor works.. If you don't, you can watch the video. Every earphone has volume button which works on smartphone as shutter button when camera app is opened. earphone's volume buttons are connected with mic and gnd within a fixed value of resistor. And LDR changes it's resistance which depends on the presence of light. For this, we have connected a high bright LED in front of the LDR. When arduino turns on the led, the resistance of LDR decreases.

Then LDR works as volume button, it triggers the shutter button and capture a picture. The combination of LED and LDR is also known as optocoupler.