Well ............
the finished programs do not work quite as
how I wanted the ..........
I had to sit down so myself!
This is anyway the more satisfactory solution.
What I have wanted?
first ATtiny as the basis wg. Bascom Programming
second Quartz, so that the serial interface runs.
third Module with a real serial port
4th a self-written program
What is this thing finally do?
.... Again changes in the concept ....
1.I will be an LCD display to display various
2.Am display are several keys give
3.The functions are distributed to several ATinys
4.The ATtinys communicate serially (for now (?) As easy!)
What must the programs?
first The display can be serially received data represent
2.The computer display to send commands
3.The measurement units should identify individual commands
run What to do?
in the "Position" are total stress and
"system voltage" measured and indicated.
be queried Incidentally, according to the individual cells of the series
and errors should be triggered alarm
. As
base to serve the average cell voltage
! An alarm on a specific
voltage limit is naturally also provided for.
A targeted queries of a cell is also provided.
.... quite there yet but I'm not even ......
The measurement functions and conversions in "clear text"
I have tested with the ATtiny13, the
should not be too problematic, and the functions are transferred to other
ATtinys or ATmegas.
why I have now dedicated the first time the control functions
.
did this I wrote a test program, the possible
many control functions is processing.
the display / control unit I will use a ATtiny2313
. (Note it is more likely an ATmega48,
for other uses in 2313 would very rich)
I have now taught to the following:
response to specific (Hex) commands / bytes
1 (49h), 2 (50h) , 3 (51h) and r (114H) are recognized
and is in response to both the display as
also sent serially as a text that these
commands were recognized (and what it was)
Undefined commands are also reported and
forwarded. (hex value
hex value and the letter as plain text and
showing a text message sent to the terminal program
)
The output of the hex number currently works as a character in the
LCD display yet,
but that is not even necessary
and that would certainly be solved.
as plain text messages are sent
currently ignored, which is good.
I have to dig up a bit,
where I generate the reports at all.
(values only as a number (bytes ev.Integer)
transferred and converted in the display, or even in the measuring points
generate the clear and the display only still
Show (String, 16Zeichen) ... we'll see ...
, the more interesting ........)
On ATtiny2313 are still four Port pins free
come as the output of a respective button dran.Damit
trigger command is not a problem.
The evaluation of the commands works now,
and how does the measurement, which has been the ATiny13
impressive gezeigt.Da I would not expect any major problems
more, but I need other modules.
(ATtiny24 and ATtiny26 seem likely to have
Unfortunately, no ...... the UART 2313 UART has
.... but no AD converter why is no
ATtiny with UART and about 4 AD converters? ????????).
All the functions that my headache
prepared now run in the test program
simultaneously in a ATtiny2313 the
currently about 55% of possible has code on it. There is still some
................
example, a small menu for the functions
Addendum March 12, 2010: A Feast for
the operation runs
now sometimes even in the
guidelines.
I can toggle between several levels
(which can be run completely different
programs)
out and jump.
1st level, just after the Turn on.
system tests, etc. then maybe
switch to the second level
2.Ebene for ??????????
I'm thinking of checking the
average, highest and lowest voltage of all cells
and show the vehicle battery (12V)
and monitoring of fixed limits.
3.Ebene, Automatic measurement
all cells in turn
with single voltage display.
4.Ebene, manual selection of the cells
All this is not yet final, the
programs are designed to be useful as a basis for completely different applications
.
(who knows what's coming).
law unexpected Problems arise when
reading text (ASCII)
and larger numbers (more bytes)
via the serial interface, but this is to create
sure. In Prizip
that goes on, but I can display text received
not destroyed in the display and the receiver
is not easy, especially when times
should any errors occur which
and therefore the transmission somewhere
increased .
That will be interesting!
I wanted to outsource the "arithmetic problems" in the
measuring points, and use the display only as
display, keypad
and cell number generator
(Currently 65% memory full)
principle: cell number sent
the appropriate measurement site responds
in "clear text" (Cell 23: 3.27 V)
When should I implement in
plain text also pack an even more because
is Here again closely .....
.. and the measuring points are bored!
But as this is required anyway, "evaluate" all
tensions central to
and sort by level and the number of cells associated
is probably not too
problem.
way: 1 byte corresponds to
5V measuring range is about 0.02 V resolution.
(5V / 256 = 0.01953125)
An accuracy of about + - 0.1 V
should therefore create sein.Das
would actually suffice loose.
supplement 16.03.2010:
The display now makes really great stuff
:
The current measured cell is shown.
(eg, Z060)
(The "values", one byte are already over
the serial port, but from a
Simulated transmitter, a ATtiny2313,
sends the request to predetermined values of 0-255) the
"MV" are just "Text for the lens")
The inquiries of the measured values and mission
the right answer works well
and absolutely reliable.
The analysis and display of cells with the highest and lowest voltage
works already.
distinguished However, starting now, is that the
ATtiny2313 but overwhelmed.
(actually I would expect, the measurement points
and the display should show only the text)
The 2k memory is almost full, because the
formatting of numbers as leading
zeros at Bascom the store had even "eats"
(The problem I should have the size 13)
mind but certainly not fail! The 4k
the Free Bascom-rich version
all, I just have to convert the measured values
in plain text, etc. is not
too tragic.
A suitable processor I think for sure!
(Atmega 48 à € 1.30)
I like the program quite well.
I am now but the calculations
in the control computer by the display, because I have so much trouble
can calculate View the minimum and maximum values and
.
This was yet again a different way than originally planned
!
This is how the more sense!
principle of maximum value display:
If a higher or lower
value displayed as the limit values are stored the values
(cell number, Spannug)
written into the display, and also as a reference.
If that cell again to the
series, the new reading is taken.
This keeps the display up to date and any
measurement errors are removed.
That was perfect from the start.
supplement 17.03.2010:
I have it now but still managed to program all functions
important part in the 2313
in!!
Above all, the formatting of numbers.
number of cells display voltage;
display of MAX. and MIN.
and a malfunction at low voltage
a single cell. (Fixed)
The message falls below the average value of all cells
is no longer a problem, but that does
only make sense if I can take appropriate
readings.
I have the "dummy provider", which provided easy
fixed predetermined values
(depending on request, to test the decoding)
ATtiny replaced by a 13
responds to every request, but it actually measures
.
The result is impressive!
Since the calculations on the display machine
held to be the measuring points
rather bored .........
What have I on? I
five (4 ????) cells will also measure
. This is a building block
on intermediate values of the series
of 4 x 5V, 0-5V-10V-15V-20V.
The resolution is there still
about 0.025 V at 0.02 V
or five cells in four cells.
The AD converters with 10 bits (1024)
The value would have to anyway
be divided by 4 so that it is one byte per value. This is not
accuracy!
but should still be at about + - 0.1 V or higher are
It imposes itself almost to pack the balancer
function in the measuring points!
by calculating ..... times, obs sense.
I save ATtinys à 1 € one per cell, but the need for
an optocoupler is ..... and the balance
difficult .... and the balancer would need its own power supply
........ .......
Hmmmmmmmm ...............
Addendum Apr 06, 2010
....... and then a giant step further !!!!!
The display is ever good enough for initial tests.
There's still work to do, but that's no hurry now.
The orders go out right and the feedback
to display properly. That's enough for now.
The processor is certainly different. Probably a
Atmega 48! The
has the only "real" disadvantage a lot of pins (28).
with 1.30 € a super thing.
If the only not so big would ......... When the display
is no problem, but at the
measurement modules I need to place the sparen.Da
14Pin of ATtiny24 been pleasant.
I have in the meantime, a little further work on the
measuring points.
Now measure four ATtiny24 four
Spannungen.Leider the 24er as well as the 26er
have not really real serial port. Therefore
run with "software UART"
But at least with quartz and this is how the
quite satisfactory. Maybe I'll switch
here on the
Atmega 48 - let's see ....... The
would be completely "under-challenged", but the data transfer would be better off for
UART.
Communication is not isolated
, but still works the coupling.
All monitoring stations get the same serial signal.
(with considerably more measurement points is of course a driver stage
still necessary for many optical coupler)
The feedback is via diodes and pull-up together on a line
.
Since everything on the master-slave principle works
there are no problems here.
(each measuring point transmits only if they first
was asked, there is no confusion)
What is happening?
next "milestone" is the isolation of the serial
Kommunikation.Insbesondere
the driver stage for up to 50 Optokoppler.Ich
will make test with MOSFET driver components for.
Those things set to the 5V to 12V or 24V signals
and are very fast and preiswert.Bei 12V
could ever run in series four optocouplers
werden.Wieviele these groups can be operated at a
output has yet tested
werden.Schon the little TC4431/32 can
1.5 A peak and at least 100mA continuous current
want to 24V, which should be enough for at least 24 to 12V
optocouplers.
2 * 24 * 4 = 192 Da should be with two TC4432
192 voltages no utopia!
(That is still to be confirmed)
Otherwise, it is indeed correct driver ICs.
order to operate a frequency for
to 380V DC motors
are approximately 160-170 cells needed.
Since I measure without major protocol only one byte per measurement site and send
four cells I want the values
201 - keep clear 250 for status queries. could
with 251 (?) to 254 then zBdie
aircraft battery and the total voltage
be recorded.
The feedback I'm less
Sorgen.Ein ATtiny or Atmega
can easily drive an optocoupler.
that I should probably not want to parallel the outputs simply by almost 50
optocouplers
is also clear, but I have to do anyway
small group basis. The plant is supposed to consist of standard modules
,
Display = master and slaves according to
number of monitored cells will be the communication
may also
with just over 5V.
reminds me could still be a what!
I ² C or a similar bus system would
even in space, but that's not so much better
should be separated especially if the effort is electrically
growing rapidly.
reason, I will probably stay with my primitive
serial communication, although
will be there probably worked at some point with 12V
.
me rich by the way even if indeed 300Baud
should be, currently running at 1200 bps.
(9600Bd made but no problems)
Another very important point on the
"To Do" list: the variables as
cell number, upper and lower limit
etc. ...... will necessarily be adjusted in the menu
and currently they are still firmly in
Program having been made, but why have the
ATtinys ATmegas and finally her
EEprom ........ The few variables
can certainly put out!
In 2313, however, lacks the necessary space.
Update 9 April 2010:
a few improvements:
basically the system is almost usable!
still missing following functions:
Electrical isolation of the measuring points
measuring several cells in series
setting the parameters in the menu
also:
targeted ads
certain cells (for reasons of space currently removed)
control of a charger or a charger
integration into the system.
(This is probably a bit more difficult!)
This requires a feedback of the
balancer function or control of the balancer
the display aus.Sobald a cell more than
example, takes 50% of Balancerleistung,
, the charging rate can be reduced. Whether
is now "up" or "down" BALANCING
(Jack Rickard ...) but is ultimately not care!
the weakest cell is always the full
voltage. "Up for balancing
is much easier, because for each cell
the same values apply.
For this is a voltage monitoring
each cell condition.
is "down" balanced sheet, then you can see from
the total voltage is when to stop.
Balan A decorative process can only take place at
almost completely empty battery. Because of their characteristic flat
says
voltage at LIPOS almost nothing about the
charge.
I will say this:
LIPOS are operated without a battery management
, then "below" the
better solution or even the only option.
one has but a monitoring or
management should then rather "above" BALANCING
werden.Dies control the charging process
is so much easier to control.
But you should be aware that the most practical solution would
will be a kind of middle ground. It is not necessary to load all
cells packed and a lot
of burning energy in the balancers.
Once the weakest cell is fully
first is empty and is the first
balancing, in order, no matter at what voltage level setting is the ultimate
cells.
The shunt resistors need therefore not as strong as usual
be designed.
It is therefore sufficient if they engage only korrigiernd.
(However, it requires a response)
Actually, you can quit the store
be reached as soon as the first cell
their full voltage.
must be equally recognized, however, when the first
cell is empty. (It should then be the same,
was the first to fully !!!!)
A "finished balanced grace to 4.2 V" at least brings
anything.
mfG
Franz
0 comments:
Post a Comment