Vous êtes sur la page 1sur 4

The Foreword.

At forum much often appear questions and critiques: why picture such soapy? Where colour,
camera after all colour? why in camera no focus? why permit such weak and etc etc.
The Author of these messages possible not read my answer. Descend to flea market to buy itself
any cameras, soap dishes, television set and else, and rejoice to lifes.
Further text is dedicate to one, tries to create their own hand and head in purpose selfdevelopment, dont look at Chinese market, and dont thinking: why , better to go yes to buy
ready.
Hope somebody to assess my lab . Thank you for your help...
Leading specialist.
Developers of electronics are more and more conceiving about that, as it were adapt the camera
from cellular telephone in its project. But full absence to documentation postpones the data to
decide on the byplay, making such unique belongings useless components, getting dusty in box
before the best times. Given article will help to make clear some questions from connection and
programming of some cameras from different models of the cellular telephones. Also here you
see the concrete example using the cameras from cellular in real device, as sample of the
connection of the camera from Siemens S65 to microcontroller ATMEGA128.
Why low permit?
The Problem of the conservation given video seizure. We shall Bring simplest count. Let we
have a flow of the videosignal by permit at the average 640 on 480 points with depth of the
colour 256 colours on point and standard frequency 50 personnel(frames) at second. Then permit
of one frame will is 307200 points. If present so much for digital type then at depth of the colour
in 256 colours it is = rather 307 kilobyteses (1 point 1 byte). But shall not forget that we have
counted whole one frame so come 307200 multiply by 50.It Was As a result got terrible amount
15360000 bytes. Not difficult itself to present, what processor must move 15 megabytes to
information at second, and what need the device for keeping this whole unharvested type.
The Element base. The first point, we have considered, what amounts us expect, and with that
velocity it is necessary to work. At present exists the ensemble signal processor, 32 class
microcontroller, allowing process the enormous arrays to information real-time. But for
mastering these device, is required much knowledge and time, that no simple decision and
ordinary problems.
Manufacturing of the process assembly device. The Details are presently done as small as
possible in consequence of which solder the detail in condition average production does not
introduce possible, but more cheap details in available body have already not possibility, which
we need.
So we shall draw a conclusion: for development their own device shall not strive to super
permits, to super quick processor, but shall look at available microcontrollers of the type AVR or
Silabs. At this moment microcontrollers AVR has a maximum clockrate in 20 megahertzs (Silabs
120MHz) and due to its RISC architecture can execute one command of the processor.
The Flame motor.
As we already agreed, for greater permits to chase after -no sense. That there is several reasons,
with which we got acquainted from part 1.Caught avr y? At first accessibility, at second price,
velocity The Author will not extol this processor, he has and defect , which a little later we shall
reveal. With microcontroller Silabs deal is a little better. Only one clockrate by 120 megahertzs

then and there orders : take me and I will solve all problems. Made happy also command system
accustomed family MCS 51 from Intel. But, having thought over deeper problems vital, author
has solved to consider that we have.
The Camera with average permit of the order 0.3 mega pixel for transfer their own data has eight
strip class data. But as we shall hear, when us it is necessary to withdrew useful us byte? For this
exists the separate control signal, which at appearance of the new strip given fixed unit. So here
is, for normal transfer of the video signal, this signal frequency must be minimum 6 megahertz.
Now you will return to processor. Let's again begin consider, now already frequency. If
maximum frequency of the processor 20 megahertz then for data acceptance does not remain
nothing except take this with strip data, and give it, possible in the same display, before this
accordingly its having tuned. As a result, having perfected three commands, we have quite little
time to simply nothing not to have time to do, and afterwards chase for new byte. Who presently
has probably thought that AVR in general not good in this branches. Yes it is, but after all
possible and frame to miss, it is correct? But possible take scene through line. Finally possible in
general read the scene through point. At the end of the item author will cite an instance with use
of this microcontroller in device with camera from telephone Siemens and issue of the accepted
scene at display from the same telephone. So not all so bad.
The Microcontroller Silabs not very good too, its praise. For its clockrate in 120 megahertzs we
have time beside 20 commands to dance, as it is spoken from stove. Additionally 120
megahertzs are used at most road controller to this series. Usually moderate Silabs controller has
two times understated frequency. So think themselves, gentlemen.
Project with camera from Siemens C65
To think from choice of the controller, I have solved to take ATMEGA128. Having Begun was
with 162, beside I became the question about remember line. Explain For what it is necessary.
Cameras has the unceasing dataflow, which is synchronizing signal, leaving again with it. Stop
this flow software it is impossible. But to convert the format data, outgoing with cameras, we
need some calculations with data. Else us a little delay the display, where we all this removes,
since he has a consequent interface. Mega although and has a clock rate 16 - 20 megahertz, does
not have time for camera, or we follow powerfully to understate clock rate. The clock rate of the
camera to understate I did not become, is since got already not camera, but devil knows that. It
happened to give too much to drink the external memory. The Memory has allowed to save the
frame wholly at its, but afterwards do all that is pleased. But again became the question about
lack port MEGA. The Memory has withdrawer beside 19 conclusions. The Whole beside
MEGA162 32 drumsticks port. Remains else 14 legs, but, alas, display occupies 5 legs (of them
2conclusions of the port SPI). With cameras goes 12 conclusions, Scheme of the connection of
the camera:

moreover needs whole 8 class port and three drumsticks of the interruption that at all was not
agreed with remained conclusion of the microcontroller. I2C strip here is not used so it is not
connected. The Conclusion also is not connected, or its possible connect to the land.
The having Spent heap of time with any decoder and any agreeing microcircuit, I has solved to
use MEGA128. But also this has not freed me from external memory, since beside it whole 4
kilobytes by operative memory.
Call contacts by scheme for connector by possible tester from earth contact.
Here is such scheme: scheme is enclosed at format sch.
Some words about microcircuit of the steady-state memory. I put that I have. Moreover I have
shown a preference 3 volt to memories. That there is several reasons, at first consumption device
no small importance. At second, the device as a whole possible supply from one source 3 volts
that will save from agreeing resistor. And else, beside I have the memory 128 kilobyte. It Is Used
from it whole 64 kilobyte so nobody does not disturb at purpose of the reducing the price of
device to gain itself microcircuit of such volume.
Device applying this display

scheme location conclusion of the camera is drawn NOT for connector. So show attentiveness at
connection.

For remembered several personnel(frames) I have solved to take the microcircuit data flash
AT45DB041B. I like this microcircuit, at least since it has a co-ordination on level of the power
supply. Under its power supply from 3 volt, I can boldly connect its findings to microcontroller,
which has a power supply 5 volts. What apropos will not say about display from Siemens S65. It
Happened to put the to divisors. At camera through divisor I gave only clock rate.
Rest leaving the camera work output.
With program I steamed long. The most difficult was obtain clear synchronizing lines, was since
differed permit display and flow of the line of the camera. Enraged else that fact that I did not
know the full amount in point of the output signal. In this case help digital dual-link
oscilloscope. Happened to simply to consider time to duration of the line, and compare the spent
controller time.
IT is IMPORTANT!
Apropos, when potting the program necessary in Fuse bits to SWITCH off the interface JTAG.
Otherwise on camera will go 5 volts (a little camera not ) and program to work not will. Also
necessary to remove compatibility with MEGA103 that cost default in newcomer mege128.
Also we put Fuse at external quartz. Here to show caution, since there is chance spoil MEGA on
external pulsing signal. If such all have occurred, collect some generator by 4 - 8 megahertz.
The Lighted screen not even thought leave all it is. Finally, will to repeat this device itself think
some increasing converter. I tried to make drunk dc - dc converter from datasheet Kranz, but
beside me voltage decreased though I used the choke of the greater amounts. So has spit; spat on
this deal and until became complete.
The Description got device:
After presenting the power supply device moves over to mode of the output unceasing video.
Beside device there is 2 buttons. Menu and Sell. The Button Menu allows remembering the
frame in memory. In this mode by button Sell choose the place of the conservation of the frame.
The Button Sell possible to view the saved personnel (frames) on circle. Having pressed in this
mode button Menu, user returns in mode of the camera.
Hereinafter device will be to do. I want else to add in device MMC card, as well as connect radio
a module, which will allow the transmission video on distance. Also spins the thought to remove
the remembered frame on screen of the television set in usual video format. There is even some
selections soft, and facility, where folk suffers this. It Is Complicated deal that it is necessary to
remove the shades of gray, but this breaks, therefore as on output SPI channel it is necessary to
put resistor DAC (the reluctance to consider the resistances).
Presently collect the facility to these most radio to modules. Project close before the best ideas.

Vous aimerez peut-être aussi