Sunday, December 20, 2009

Treatment Course Of Levaquin For Sinusitis

As promised, BEFORE CHRISTMAS!

But only briefly before! I'm currently really to nothing! Unbelievable! But at least cih've made a few Christmas cards and two of them as "already" sent! Otherwise, I
have to just do pretty much. In the office, goes round and then I was in the last week, or the customer.
Yes, and a Christmas party after the other, I must not say, right? But now even a few pictures!











LG Nanany

Wednesday, December 9, 2009

How Does Mucus Look Like Before Menstruation

Serial data output works better than expected!

After the serial output of readings
with assembler initially not quite to the series, brought
(The reading of the ADC value worked all right,
but converting to "clear" was not running yet)
I stand just still in its infancy, and there
multiplications in assembler
anything but simple, are of the conversion
silent in very readable text,
I got it now BASCOM tried.
There's something much simpler to solve.
Although the program is doing strange things sometimes
, but for simple projects
it seems to be very useful.
easier especially for beginners to understand.
There are also many examples of programs.
However, the resulting code is something
longer and that could still be problematic
.

the net, I found a finished program,
is meant for a controllable via PC
power supply, which is a complete
voltage measurement with it.
Here is the issue completely converted and
speak in plain text.
The PWM output should bu I do not need the
you can easily omit.

http://www.elo-web.de/elo/mikrocontroller-und-programmierung/bascom-avr/einstellbares-netzgeraet

I can so that both the cell number as
the voltage output directly readable.
That's more than I ever dared to hope !!!!!!!!!!

... and the second ADC is also still available!

So I needed not even a
"evaluation machine"!

If everyone sends Attiny until he gets a
transmission request, then a bit wait
and then the output of the next start, then you need
only one may represent small display, the serial data directly

and a start button to start the readout.

I'm surprised himself again,
is as simple as that!

time now is 9:12:09:
ATtiny13 operated reads input with 5V
(5.01 V supply, and reference)
, (no voltage divider)
to count and sends the data serially out
with 9600 baud, when the serial
any input signal arrives
.

The accuracy is surprisingly good, but
directly on the quality of the reference
dependent. I rest now 5.01 volts.
Therefore, the exact measurement!
The internal 1.1 V reference
is + - 10% indicated, but usually much
!! more precisely.
It might indeed be necessary to
there must balance a bit to adapt
so the conversion factor at the respective
ATtiny.
That remains to be seen! There

A coding, so that only a specific command
replied it still do not.
The first is probably no longer necessary, since the values
no longer be converted
müssen.Es would reach so already,
would be nice if the output is automatically the
turn.
Maybe after pressing a button, otherwise could
the first ATtiny that yes
is always grounded the total voltage
View and measure.
The second AD converter is not used yet so far
!

That would be something!
display shows the total voltage, and when a button is pressed

appear in the second cycle, the individual cells.

Any error messages are completely
matter is, if appropriate.

.... And all without control computer !!!!!!!

"TO DO":
test whether the quality of the internal reference
sufficient. (Erledigt! just fine! About 1% error)

multiplier of 1.1 V reference and divider 4:1 adapt.
(already done, see note at the bottom) provide

The whole
galvanically separated by ADuM5241 and read
(That's for sure!)

summarized the COM port.
(I ² C? Single-wire? Ev only diodes and pull-down resistors
? Hmmmmmm ...............)

simple coupling of the read command to the
ATtiny think up next.
(this goes without galv.Trennung
because only the next one is, possibly enough already, a capacitor)
otherwise get by holding optocoupler

display with a serial input. The
are there for about € 50-100 depending on size
number of characters and number of lines.
(Da tuts time being a PC with a terminal program)

Even if I am repeating myself,
me it is very important that the actual
Balancerschaltung is powered from the respective battery
, and runs completely independently.
The error messages do not need any additional computer
. The output from the balance
purity.
Everything that has to do with voltage display
is an additional independent circuit.
I see the power indicator as an option,
which, however, very useful.
But over-and undervoltage already
be monitored, it is actually only
a troubleshooting necessary, the battery voltage
abzufragen.Oder if you're just curious.
This could also be more comfortable, but my plant is absolutely

remain clear and understandable.
why would I do without even a
control computer when the
actually goes (you can even
come later, but not now)



Here's a video of 9:12:09.















up soon!

Franz

PS:

addendum 10:12:09 and 11:12:09: The

with the converter has quite a
pitfalls ............ There may be
defined the variables as integers
+ - do not exceed 32 768
werden.Das also applies to any
interim results!
can be expected only with
whole numbers, decimals
are simply ignored.
Leading zeros as well!
That made quite complicated!
A small satisfaction is the fact that
also the author of the base program is
tripped over.
(instead of 0.01 was o, items 1,
the error now resolved)
fair I now with the 10 bit ADC value
in the range 0-1023 (1023 = 1.1 V at the ADC at the extent
internal reference of 1.1 V fit) can
Since we expect only integers
for example, multiplication must be carried out with 1.1
by only * 11 and then
/ 10 count. To warped values
to get there quickly in trouble!
(32768 = 1024 * 32)

least I now get the ever
mV ADC displays with internal reference of 1.1 V
right in mV.

But !!!!......
this value should still be multiplied
* 4,03 4.03
is not easy!

(Anm.Spannungsteiler
1K + 330R corresponding 4,03:1)

1100 mV * 403 = 443 300 is not so!

110 * 403 = 44 330 still too much!

55 * 403 = 22 165 Yes!

22165 / 5 = 4433

also: 4.03 provides the corresponding ADC 1023

4433mV actual Voltage: full scale with voltage divider

first

by dividing by 1000 the
comes out 4 (integer = integer!) To get

the decimal point:

4 * 1000 = 4000

4433-4000 = 433

need for the values before the comma
a separate variable to be defined.

then must be subtracted from the total
.

output would look like this:

only text, for example cell 001
then integer
then the comma
(text) then the rest of the subtraction.
But be careful!

The leading zeros are discarded so as
! Therefore, one can calculate only a
site correctly!

else suddenly is 0.09 0.9!!

For the second decimal
then again you would need
a variable, and that's the little
ATtiny gradually
too much ..............

Since it is tempting to see the results but only in
mV! ;-)

You see, so all is not yet optimal
and it has to start something different.
particular are far too many
Rechnungen.Hier it is not
at the time, but since only integers are processed

add up to rounding error.

The whole calculation must therefore be in a row when the
goes anyway.
MaximumADC = 1023 corresponding to 4433mV

U (mV) = 1023 * 4.33
Since it can be multiplied up to 32 ....
should try this frame is as good
exploit it to obtain the most accurate results
.
4.33 * 6 = 25.98 about 26 that's better!

U (mV) = (1023 * 26) / 6 = 4433 mV
that's ok! and only one bill!

It is therefore to weigh whether the
worth computational overhead, only
to save a resistor.

The factor 4.03 was found to use from the use of
10k + 3k3
or 330R to 1k + defaults
can.

Ca. 4-1 is important in this case, since
optimally from 0 to 4.4 V range would
. (ATtiny 13)

came with (1k5 +1 k5) + 1k 4:1
out and everything would be much easier
The whole Rechenfehlerchen
would then no longer, but the fall
so little weight.

When ATtiny 25, the thing looks
again something different. The

also a ca.2, 5V
reference would have it, but
can logically be used only with 5V supply
....

addition, the 25er more memory.
I hope he is able, possibly with the second AD converter
also measure the total voltage
.

The View I would like to see
grad nothing to do.














This looks like now!

Convert

works, including the calculation of the input voltage divider and

the issue of stress as a number with two decimal places
.

The second AD converter works well,
The total voltage could so easily available as standard

display on the display.

But now, the boundary of the ATtiny
reached 13, I use 99% of the store!

You could now start tinkering to
for example, use the serial port only as
output etc or just
mV's etc. ........
or simply take the ATtiny 25th

I have before eh!

For "larger" Atmel's could be the
Calculate decimals easier
would if you define the variables and the multipliers SINGLE

were stored as a constant.
The more elegant (rounding etc.), but would
such floating point calculations
need a lot of memory. The small
ATtiny out there is no way out, simply because
the memory is too small.

I'm going to test if I have a few
ATtiny25.

Otherwise I'm just now is his time with
have achieved more than satisfied, and
the next step to get to build a display with a serial input

respectively.

I already have a suitable program for
a PIC 16F628 found.
The times I have everything together yourself
and see obs shall pass. (Would be too good)
These pics we use in the company,
programmers, etc. are available.

Unfortunately I lack a suitable display and
a matching quartz.
(Actually, should work, the internal oscillator
)

I'm still somewhat skeptical whether the program works
with my
data.
I've read in the description that
CR and LF are ignored .... let's see! Otherwise, it is also

finished modules to buy.

eg

http://www.coptonix.com/html/rs232_lcd_adapter.html
that would be exactly what I want to have!!


supplement 21.02.2010:

I have not had time, weiterzutesten .....
and before I invest too much I would like to exclude a very
another possible problem for sure:

How accurate is the internal clock of the ATtiny13 ??????

There could be problems, particularly
with temperature stability!
Well, we'll see!



Franz