works comms
2 /  1

I'm Male.
 Arduino Controled Camera

I have long wanted to install a security camera at home, but I was not ready to buy them for the price I saw in the stores. I found a interesting solution - the VGA camera for Arduino.

The hardware

The webcam is connected via USB to the computer.
Arduino is also connected to the computer via USB. All external devices, due to exceptionally low current consumption, are connected directly to Arduino, it works around the clock for a month and a half, with online 10 users at the time of least load. How Software Works On the client side, a clean web interface, without plug-ins. Only html, css, and javascript ( ajax).

Server side

The server itself is Apache Script Handler - php Receiving pictures from the camera - any easiest available, free or self-made program to save pictures from webcams Image storage - RamDisk, a utility for creating a disk partition in RAM (the Russian version of RAMDisk "Enterprise" is free for localized systems) In order not to register direct local paths in php, the folder with the picture is mounted in www folder with the help of juction (the free utility of Mark Russinovich) Transfer of control from the Internet to Arduino is implemented using a proxy program, as follows: php script creates a UDP socket and sends the datagram to a specific port, then the proxy listens to this port and accepts incoming messages and sends it to the COM port of Arduino (you can even without processing).

The choice of UDP is called solely to simplify the system, UDP does not require any acknowledgment and delivery-sending checks from either the client or the server side. On the side of Arduino The Arduino board itself The sketch inside it is standard examples from the regular set arduino-0022 servo and serial found on the Internet spaces library for the display, modified to an acceptable form At the moment, plus megasheed, purely because of the convenience and culture - in this version, I did not solder any wiring (except for the board to the display) The system has withstood all the invasions and raids, as well as online more than 120 users. There have been cases of management failure that have occurred due to my shortcomings in the proxy program, in particular due to insufficient error handling, while the software part from Apache and Arduino kept well.

Would you like to comment?

Register for a free account, Connect with facebook or login (if you're already a member).

 The content of your article page is great, I find the content quite interesting and useful to me, thank you for sharing.


View minion89's home minion89 | 1 year(s) ago

Blog | | About Koinup | Press Area | Terms of Use | Privacy Policy | Copyright Notices

who's online