Arduino Projects

Arduino Image processing CCTV camera system application designing and programming

Description:

Arduino Image processing- In this tutorial you will learn how  to use image processing,  Arduino Uno and PIR  sensor to create your own Arduino based  CCTV camera device. “Visual Basic” will be used to create the image  processing program in this tutorial vb.net.This application works  in  conjunction with the Arduino Uno connected PIR sensor. Once both the PIR sensor and the image processing application detect the human, a picture is automatically  captured and stored in a folder.

Visual Basic.net will be used for the image processing software. It’s really easy to model image processing applications in vb.net. The Frontal face XML archive is used in this application for human identification.Once the computer application detects the human face and also receives a signal from the Arduino, a picture will be taken automatically and stored in the desired folder.



Amazon links:

Pir motion sensor: 
night vision camera
Arduino Uno: 
330-ohm resistors pack: 
connection wires: 
Bread Board:

Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Circuit Diagram:

Arduino image processing

As you can see, the circuit diagram is really simple, all you need is to link the PIR sensor to the Arduino Uno pin number 4 and the Arduino 5v and ground VCC and ground respectively.


Arduino Programming:

It’s very simple to program Arduino. First I define the PIR sensor pin. The PIR sensor is attached to the number 4 pin of the Arduino. You can use any other Pin if you want. Then the flag variable type integer is specified. Initially this parameter is set to Zero. Use the variable flag to stop unnecessary code repetition.

If used before the name of the function, the word void means that this function has no type of return. If you look, the parenthesis will also be null, meaning that this function does not take any argument as the output. So there is no return form for the void setup function and it does not take any argument as the output.

For this reason, we use a Serial.begin() function to enable the Serial communication, this is an integrated function and takes one argument as the output, which is the baud rate. Using the pinMode function, the PIR sensor is set to output. Only once the controller is turned on, the void setup function is executed.

The role of the void loop runs endless times before you stop it. There is also no return form for the void loop function and it does not take any argument as the output.

As you can clearly see, the void loop function consists of only two if conditions, the purpose is to find out if the PIR sensor has been detected in motion and send the desired message using the Serial.print function to the computer  application.You may have noticed one thing that changes the status of the flag every time. This is simply to stop the unnecessary repetition and only send the message once the human is detected.


Computer Image Processing Application Programming:

Watch Video Tutorial

 

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button