📜 ⬆️ ⬇️

Super cheap camera with control - do it yourself


As a preamble, I’ll say that since such an article was already there, I was not going to write about the camera in the first place.
The camera was made, just for the sake of interest, training skills and working out the technology of remote control of physical objects.
A little later, I used this system as a vivid example accompanying the review on another resource (and in fact, as a cheat to pull up the votes). It was a real beta test, which revealed a bunch of flaws. For this many thanks to all those who are not indifferent, who helped someone with advice, and who helped with a piece of code.

At the same time, the visitors who played with the camera, in addition to not having passed the hour so that they didn’t remember Habr, also began to be actively interested in the device of the whole thing, technical details, software implementation and of course cost.

This is what made me an article. And so as not to repeat, I decided to focus on the cost, because the author of the previous topic on this topic, as I recall, the final cost resulted in something in the region of 5000r.
')
About the cost of my crafts: read below.

So, "how to call a ship, so it will float," once wrote the headline about cheapness - I will match the prose, so that the details - then, and first about the cost.

Let's go on prices *


* All prices are given with discounts. About discounts - separately, later.

Required kit :
Total : $ 23.04 (about 750r , at the moment)

Additional set (laziness + buns):
Total : approximately 550r

Total: 1300r

About implementation


Everything was done from scratch. I didn’t repeat what I already had, firstly because of training considerations, and secondly I didn’t have an Ethernet module at that time, I decided that it was all too difficult (MySQL was tied there) and this solution is for me definitely not suitable.

About tasks
Tasks I have identified the following:

About problems
During the implementation of the questions have such a plan:

About solutions


Pretty lyrics!


How does it look

Everything looks more than modest

It works like this:


Arduin, if anyone has not seen


Megasheed with wiring


"Sandwich" in profile


"Sandwich" full face


Lcd


She's the back view (pins and conder)


In the collection


Assembly 2


Collective farm - wiring system and strings (camera mount)





Where do without him


How does 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 the exceptionally low current consumption, are connected directly to the Arduino, it has been working around the clock for a month and a half, with 10 users online at the moment of the lowest load.

How software works

On the client side, a clean web interface, without any plug-ins and lotions. Only html, css, and javascript (+ ajax).

Server side

On the side of the Arduino


The system withstood all the invasions and raids, as well as more than 120 users online.
There were cases of management failure that occurred due to my flaws in the proxy program, in particular due to insufficient error handling, while the software part of Apache and Arduino was held up with dignity.

Be attentive to the little things


I want to note the problems with the software part that happened because of my own carelessness / lack of information / lack of observation:


Remaining flaws


There are some.


About discounts


It is well known that in China - cheaper. The main thing is to know the places where it is cheaper, and how to get an additional discount.
It makes no sense to write here - too much text with pictures, besides, known to the majority.
Therefore, in order not to provoke ardent opponents of the fight against spam and other “referrals”, I’ll note the necessary minimum - this is a 15% discount on BiC, consisting of a one-time coupon by 10% and a discount for the first purchase of 5% when entering a recommender + hint, how to use this system repeatedly.
All interested, can familiarize with the full information under the link on a page with, actually, the camera.

Links


Camera, working copy , for those who have not yet seen and not played enough
The topic in which the link to the camera was leaked to Habr ahead of time
Ramdisk
juction
Sources (simplified, in order to avoid) client part, server (php) and web-arduino-proxy program (VB 6.0)

Apache, php, or some combination builds, etc. - to your taste.

Source: https://habr.com/ru/post/135912/


All Articles