Chip with simple program for Toy

Winfield Hill wrote:
John Fields wrote...

I hope you all have a wonderful Christmas!


Bah, humbug!
Indeed. Our family gathered here at Grandma & Grandpa's
house to unwrap presents and feast (Ronco-rotisseried
marinated chuck roast; it was marvelous!) last night. Today,
Grandma 'n' me have the day off!

Mark L. Fergerson
 
On 24 Dec 2003 12:59:53 -0800, Winfield Hill
<Winfield_member@newsguy.com> wrote:

Chuck Harris wrote...

Winfield Hill wrote:
John Fields wrote...

I hope you all have a wonderful Christmas!

Bah, humbug!

And a cheerful Bah, humbug to you as well Win!

---------- (seen on Groklaw)

From me (hereinafter referred to as "the wishor") to you (hereinafter
referred to as the "wishee") Please accept without obligation, except as
stated herein, implied or implicit, my best wishes for an environmentally
conscious, socially responsible, politically correct,
Sorry, but politicallly-correct greetings are not acceptable to this
wishee. ;-)
--

"I expect history will be kind to me, since I intend to write it."
- Winston Churchill
 
Paul Burridge wrote...
Winfield Hill wrote:
John Fields wrote...

I hope you all have a wonderful Christmas!

Bah, humbug!

Sorry, but politicallly-correct greetings are
not acceptable to this wishee. ;-)
Fine. Bah, humbug! to you as well.

Thanks,
- Win

whill_at_picovolt-dot-com
 
In article <f8eluvsjqrg0gu9q2jdgvmk1sjii0i7asd@4ax.com>,
terrypinDELETE@dial.pipexTHIS.com mentioned...
John Fields <jfields@austininstruments.com> wrote:

I hope you all have a wonderful Christmas!

And the same to you and all here, from a mild and cloudy East
Grinstead - waiting with still a little hope to hear from Beagle
tonight ;-(
Yeah, what's going on with this? All the newsmedia on TV have gone
home for Xmas, so there's not much current on TV.

http://www.esa.int/export/SPECIALS/Mars_Express/
http://sci.esa.int/science-e/www/area/index.cfm?fareaid=9


--
@@F@r@o@m@@O@r@a@n@g@e@@C@o@u@n@t@y@,@@C@a@l@,@@w@h@e@r@e@@
###Got a Question about ELECTRONICS? Check HERE First:###
http://users.pandora.be/educypedia/electronics/databank.htm
My email address is whitelisted. *All* email sent to it
goes directly to the trash unless you add NOSPAM in the
Subject: line with other stuff. alondra101 <at> hotmail.com
Don't be ripped off by the big book dealers. Go to the URL
that will give you a choice and save you money(up to half).
http://www.everybookstore.com You'll be glad you did!
Just when you thought you had all this figured out, the gov't
changed it: http://physics.nist.gov/cuu/Units/binary.html
@@t@h@e@@a@f@f@l@u@e@n@t@@m@e@e@t@@t@h@e@@E@f@f@l@u@e@n@t@@
 
In article <bseq4d02aj8@drn.newsguy.com>, Winfield_member@newsguy.com
mentioned...
Ben Bradley wrote...

Winfield wrote:

... onset of the generally accepted calendar year 2001 ...

5. This greeting is warranted to perform as reasonably may be expected
within the usual application of good tidings, for a period of one year or
until the issuance of a subsequent holiday greeting, whichever comes first.

In plain English that means "Sorry, this greeting has expired."

Right, it's much safer to promulgate a legal document with a
rock-solid disclaimer that invalidates the whole thing. :>)
Sort of reminde me of those disclaimers at the end of the data sheets.
"Hey, if you use our chip in your pacemaker, don't ask us for help if
you die." Heh.


Thanks,
- Win

whill_at_picovolt-dot-com

--
@@F@r@o@m@@O@r@a@n@g@e@@C@o@u@n@t@y@,@@C@a@l@,@@w@h@e@r@e@@
###Got a Question about ELECTRONICS? Check HERE First:###
http://users.pandora.be/educypedia/electronics/databank.htm
My email address is whitelisted. *All* email sent to it
goes directly to the trash unless you add NOSPAM in the
Subject: line with other stuff. alondra101 <at> hotmail.com
Don't be ripped off by the big book dealers. Go to the URL
that will give you a choice and save you money(up to half).
http://www.everybookstore.com You'll be glad you did!
Just when you thought you had all this figured out, the gov't
changed it: http://physics.nist.gov/cuu/Units/binary.html
@@t@h@e@@a@f@f@l@u@e@n@t@@m@e@e@t@@t@h@e@@E@f@f@l@u@e@n@t@@
 
"Sir Charles W. Shults III" <aichipREM@OVEcfl.THISrr.com> wrote in message news:<_etGb.128266$%h4.21022@twister.tampabay.rr.com>...
Yes, a local legal firm wished me, but did not imply or guarantee, a Merry
Christmas. Merry Christmas to all.
ROFLMAO!!!! :)

Oh BTW, Merry Christmas :)

-A

Cheers!

Chip Shults
My robotics, space and CGI web page - http://home.cfl.rr.com/aichip
 
On Thu, 25 Dec 2003 07:31:46 -0800, Watson A.Name - "Watt Sun, Dark
Remover" <alondra101@hotmail.com> wrote:

Yeah, what's going on with this? All the newsmedia on TV have gone
home for Xmas, so there's not much current on TV.
Then you need to turn the voltage up. Try 230V like we have here. :)
--

"I expect history will be kind to me, since I intend to write it."
- Winston Churchill
 
Hah! That's GREAT! I sent a copy to my attorney after changing the
year from 2001 to 2004....he's gonna luv it :)


On 24 Dec 2003 12:59:53 -0800, Winfield Hill
<Winfield_member@newsguy.com> wrote:

Chuck Harris wrote...

Winfield Hill wrote:
John Fields wrote...

I hope you all have a wonderful Christmas!

Bah, humbug!

And a cheerful Bah, humbug to you as well Win!

---------- (seen on Groklaw)

From me (hereinafter referred to as "the wishor") to you (hereinafter
referred to as the "wishee") Please accept without obligation, except as
stated herein, implied or implicit, my best wishes for an environmentally
conscious, socially responsible, politically correct, low stress, non-
addictive, gender neutral, celebration of the winter solstice holiday,
practiced within the most enjoyable traditions of the religious persuasion
of your choice, or secular practices of your choice, with respect for the
religious/secular persuasions and/or traditions of others, or their choice
not to practice religious or secular traditions at all, and a financially
successful, personally fulfilling and medically uncomplicated recognition
of the onset of the generally accepted calendar year 2001, but with due
respect for the calendars of choice of other cultures or sects, and having
regard to the race, creed, color, age, physical ability, religious faith,
choice of computer platform or dietary preference of the wishee.

By accepting this greeting you are bound by these terms:

1. This greeting is subject to further clarification or withdrawal.

2. This greeting is freely transferable provided that no alteration shall
be made to the original greeting and that the proprietary rights of the
wishor are acknowledged.

3. This greeting is communicated "as is" and implies no promise by the
wishor to actually implement any of the wishes, nor does it create any
warranties of any kind, except as expressly stated herein.

4. This greeting may not be enforceable in certain jurisdictions and/or
the restrictions herein may not be binding upon certain wishees in certain
jurisdictions and is revocable at the sole discretion of the wishor.

5. This greeting is warranted to perform as reasonably may be expected
within the usual application of good tidings, for a period of one year or
until the issuance of a subsequent holiday greeting, whichever comes first.

6. The wishor warrants this greeting only for the limited replacement of
this wish or issuance of a new wish at the sole discretion of the wishor.

7. Any references in this greeting to "the Lord", "Father Christmas",
"Our Savior", or any other festive figures, whether real or fictitious,
dead or alive, shall not imply any endorsement by or from them in respect
of this greeting, and all proprietary rights in any referenced third
party's names and images are hereby acknowledged.

Thanks,
- Win

whill_at_picovolt-dot-com
 
On 25 Dec 2003 07:03:02 -0800, Winfield Hill
<Winfield_member@newsguy.com> wrote:

Paul Burridge wrote...

Winfield Hill wrote:
John Fields wrote...

I hope you all have a wonderful Christmas!

Bah, humbug!

Sorry, but politicallly-correct greetings are
not acceptable to this wishee. ;-)

Fine. Bah, humbug! to you as well.
I didn't see any smiley there, Win. Is "political-correctness"
important to you?
--

"I expect history will be kind to me, since I intend to write it."
- Winston Churchill
 
Paul Burridge wrote...
Winfield Hill wrote:

I didn't see any smiley there, Win. Is "political-correctness"
important to you?
Of course not and you know it if you've been paying any attention.

But I'll tell you what I don't like, it's having words put in my
mouth, it's encountering judgmental, intolerant folks, who put up
a straw horse representing what another supposedly believes, then
knocks it down along with preaching, insults, liberal-bashing and
faux patriotism. Decidedly not Jesus' teaching, and NOT in the
Christmas spirit. Bah, humbug.

Thanks,
- Win

whill_at_picovolt-dot-com
 
"Andre" <testing_h@yahoo.com> wrote in message
news:2c2cf14c.0312250803.3886ab4d@posting.google.com...
"Sir Charles W. Shults III" <aichipREM@OVEcfl.THISrr.com> wrote in message
news:<_etGb.128266$%h4.21022@twister.tampabay.rr.com>...
Yes, a local legal firm wished me, but did not imply or guarantee, a
Merry
Christmas. Merry Christmas to all.

ROFLMAO!!!! :)

Oh BTW, Merry Christmas :)

-A
Mega Dittos!
 
On 25 Dec 2003 13:17:54 -0800, Winfield Hill
<Winfield_member@newsguy.com> wrote:

Of course not and you know it if you've been paying any attention.
Well I've seen your various disagreements with some others on this
group (you know, I know and they know who they are) and I'm hard
pressed to work out exactly who's telling whom what to think, quite
frankly.

But I'll tell you what I don't like, it's having words put in my
mouth, it's encountering judgmental, intolerant folks, who put up
a straw horse representing what another supposedly believes, then
knocks it down along with preaching, insults, liberal-bashing and
faux patriotism.
With all due respect, Win, you've done your own fair share of bashing
the non-Liberals here.

Decidedly not Jesus' teaching,
Who gives a shit what *that* phoney reportedly said?

and NOT in the
Christmas spirit.
The Christmas spirit being "peace and goodwill to all men" (for a week
and then back to what passes for 'normal' for another crazy,
dysfunctional year).

Bah humbug? You betcha.
--

"I expect history will be kind to me, since I intend to write it."
- Winston Churchill
 
In article <31nmuvkf3kljm5t4mlegsgcomjqcdeoqvr@4ax.com>,
pb@osiris1.notthisbit.co.uk says...

<snip>

The Christmas spirit being "peace and goodwill to all men"
Or "peace to all men of good will"... Interpretation, and all
that.

(for a week and then back to what passes for 'normal' for
another crazy, dysfunctional year).
Speak for yourself!

Bah humbug? You betcha.
That works too. ;-)

--
Keith
 
Haas wrote:
Plese! This is not a Binaries newsgroup. You can post it to
news:alt.binaries.schematics.electronic by attaching it as a GIF, JPEG,
or other common image file. Then, post a message here giving the name
of the post. If you try to post a binary file here, most people will
never see it.


--
Merry Christmas!

Take care, and God bless.
Michael A. Terrell
Central Florida
 
On Fri, 26 Dec 2003 16:28:01 GMT, "Haas" <xhaasx@cfl.rr.com> wrote:

I was hoping that someone in the group could help me with some questions or
point me in the right direction. I am building a sampling circuit to
convert signals from some engine sensors for my airplane to serial data
(RS-232). I completely understand the mechanical side and the Microsoft
coding side, but I am lost in the circuitry side. I have been trying to
remember basics from my two electronics classes in college but the cobwebs
are really thick. The A/D to RS-232 circuit is attached (A2210.gif).
Instead of the MAX 187, I am going to use the Maxim MAX 186 because I need
to record 6 different sensors.

My questions are,

Because of Bit-banging, I have read that my samples reported to the PC will
be greatly reduced. How can I compute how many samples I should expect per
device per second on the RS-232 feed? I am hoping to get 10 or so samples
per second from each device so I can average the readings out to remove any
spikes due to noise.
[As Michael noted, posting of binary attachments in non-binary groups is
not encouraged.]

Q. How can I compute how many samples I should expect per device per
second on the RS-232 feed?

A. I suppose you could bit-bang it as described with the RS-232 control
lines. Looks painful, though.

IMHO, you'd be better off using a microcontroller with built-in A/D
channels (very common nowadays). Filter it there with an integer IIR (a
1/64 factor, first-order IIR is very easy with 10-bit A/Ds) and report
the filtered results to the PC, if required, via the UART that's also
quite common with microcontrollers (you'll still need a level shifter).


Q. How can I find out what the digital information will look like. If
the voltage of the sensor is 4.222V am I going to get binary data for
4.222?

Yes, probably something like 0xFFF (briefly), since 4.222 > 4.096. But
if you handle it with a 5 V microcontroller, you can shoot the data over
to the PC as scaled ASCII so that 4.222 V is just "4.222". Very handy
for checking out the sanity of the interface with a regular terminal
app.

--
Rich Webb Norfolk, VA
 
Here is the link. The schematic is Figure 1.
http://www.maxim-ic.com/appnotes.cfm?appnote_number=151
"Michael A. Terrell" <mike.terrell@earthlink.net> wrote in message
news:3FEC75FC.9264C301@earthlink.net...
Haas wrote:


[Image]

Plese! This is not a Binaries newsgroup. You can post it to
news:alt.binaries.schematics.electronic by attaching it as a GIF, JPEG,
or other common image file. Then, post a message here giving the name
of the post. If you try to post a binary file here, most people will
never see it.


--
Merry Christmas!

Take care, and God bless.
Michael A. Terrell
Central Florida
 
Haas wrote:
I was hoping that someone in the group could help me with some questions or
point me in the right direction. I am building a sampling circuit to
convert signals from some engine sensors for my airplane to serial data
(RS-232). I completely understand the mechanical side and the Microsoft
coding side, but I am lost in the circuitry side. I have been trying to
remember basics from my two electronics classes in college but the cobwebs
are really thick. The A/D to RS-232 circuit is attached (A2210.gif).
Instead of the MAX 187, I am going to use the Maxim MAX 186 because I need
to record 6 different sensors.

My questions are,

Because of Bit-banging, I have read that my samples reported to the PC will
be greatly reduced. How can I compute how many samples I should expect per
device per second on the RS-232 feed? I am hoping to get 10 or so samples
per second from each device so I can average the readings out to remove any
spikes due to noise.

How can I find out what the digital information will look like. If the
voltage of the sensor is 4.222V am I going to get binary data for 4.222?

I am reading a bunch about shutting down the MAX 666 and bringing it back up
to trigger a reading. If I just leave it live will it force the MAX186 to
constantly sample? I am not really concerned about a power source. I am
planning on feeding it 12V from the engine battery. I am really looking for
the fastest feed of data out of the RS-232. I have read about parallel
speed over serial, but my device (IPAQ) only has a serial interface.

Do I need a separate voltage regulator (MAX666) for the +5V for the sensors
to separate the digital and analog sub-systems?

Thanks for your help in advanced. Please let me know if I left any
information that is needed to provide advice.

CT.
Hello Haas,

Bit-banging is slower that a hardware serial port is true.

If your serial port is programmed for 9600 baud then a byte transfered
will take (1/9600)=(1.04167e-4) about 1.04 milliseconds. Most serial
programs will also program the serial port of 1 start bit, 1 Stop bit,
and NO parity. So a byte transfered in 10 bits. 1 start + 8 data + 1 stop.

OK, if you bit bang each bit, you would need a software loop 1 to 10.

If this loop were running on a 8Mhz 8088 vs. 1.2G P4 this loop code
will be run at different speeds.

The second link you posted from maxim-ic gives you the code to run on
the PC side. If you can get this code to work, measure the 12-bit
data stream on a scope or use the PC as a timer to check how long 1 word
take to travel from the A/D to the PC.

Without knowing the bit-time in micro-seconds for your target system,
there is no way to tell the speed of transfers.

hamilton
 
OOPS,

hamilton wrote:

Haas wrote:

I was hoping that someone in the group could help me with some
questions or
point me in the right direction. I am building a sampling circuit to
convert signals from some engine sensors for my airplane to serial data
(RS-232). I completely understand the mechanical side and the Microsoft
coding side, but I am lost in the circuitry side. I have been trying to
remember basics from my two electronics classes in college but the
cobwebs
are really thick. The A/D to RS-232 circuit is attached (A2210.gif).
Instead of the MAX 187, I am going to use the Maxim MAX 186 because I
need
to record 6 different sensors.

My questions are,

Because of Bit-banging, I have read that my samples reported to the PC
will
be greatly reduced. How can I compute how many samples I should
expect per
device per second on the RS-232 feed? I am hoping to get 10 or so samples
per second from each device so I can average the readings out to
remove any
spikes due to noise.

How can I find out what the digital information will look like. If the
voltage of the sensor is 4.222V am I going to get binary data for 4.222?

I am reading a bunch about shutting down the MAX 666 and bringing it
back up
to trigger a reading. If I just leave it live will it force the
MAX186 to
constantly sample? I am not really concerned about a power source. I am
planning on feeding it 12V from the engine battery. I am really
looking for
the fastest feed of data out of the RS-232. I have read about parallel
speed over serial, but my device (IPAQ) only has a serial interface.

Do I need a separate voltage regulator (MAX666) for the +5V for the
sensors
to separate the digital and analog sub-systems?

Thanks for your help in advanced. Please let me know if I left any
information that is needed to provide advice.

CT.


Hello Haas,

Bit-banging is slower that a hardware serial port is true.

If your serial port is programmed for 9600 baud then a byte transfered
^^^^ = bit
will take (1/9600)=(1.04167e-4) about 1.04 milliseconds. Most serial
104. microseconds
programs will also program the serial port of 1 start bit, 1 Stop bit,
and NO parity. So a byte transfered in 10 bits. 1 start + 8 data + 1 stop.
So 10 bits transfered is 1.04 milliseconds.

OK, if you bit bang each bit, you would need a software loop 1 to 10.

If this loop were running on a 8Mhz 8088 vs. 1.2G P4 this loop code
will be run at different speeds.

The second link you posted from maxim-ic gives you the code to run
on the PC side. If you can get this code to work, measure the 12-bit
data stream on a scope or use the PC as a timer to check how long 1 word
take to travel from the A/D to the PC.

Without knowing the bit-time in micro-seconds for your target
system, there is no way to tell the speed of transfers.

hamilton

As far as the sensor voltage is concerned.

The first paragraph of the data sheet states:

The MAX187/MAX189 serial 12-bit analog-to-digital
converters (ADCs) operate from a single +5V supply
and accept a 0V to 5V analog input.

12 bits is 0-4065 or 4096 steps. An input of 5-volts is full scale
or 5V = 4095. So 5V / 4096 = 0.001220703125 volts per step.

Trasfer 12 bits from the A/D into an integer in your program.

Since this seems to be your first A/D project, I will warn you about
noise, in an automotive application you WILL have noise.

In an ideal world, a reading of say 1 volt at the input will read
about 819.2 in 12 bit resolution. ( 4096 / 5 = 819.2 ). A number of 819
or 820 will be clocked out the A/D. If the voltage you are reading has a
moving 200 milivolts of noise on it, your reading maybe ( 819.2 / 2.5 =
327.68 ) counts higher of lower than the real 1 volt (819) reading.

Once you know how fast you can transfer 12 bits of data ( include
overhead time to control the CS and CLK lines. ) Then you can tell how
many readings you can simple average or some higher math functions to
help get rid of the noise getting into your readings.

Good Luck


hamilton
 
Thanks!

"hamilton" <hamilton@deminsional.com> wrote in message
news:3fecb81b_2@omega.dimensional.com...
OOPS,

hamilton wrote:

Haas wrote:

I was hoping that someone in the group could help me with some
questions or
point me in the right direction. I am building a sampling circuit to
convert signals from some engine sensors for my airplane to serial data
(RS-232). I completely understand the mechanical side and the
Microsoft
coding side, but I am lost in the circuitry side. I have been trying to
remember basics from my two electronics classes in college but the
cobwebs
are really thick. The A/D to RS-232 circuit is attached (A2210.gif).
Instead of the MAX 187, I am going to use the Maxim MAX 186 because I
need
to record 6 different sensors.

My questions are,

Because of Bit-banging, I have read that my samples reported to the PC
will
be greatly reduced. How can I compute how many samples I should
expect per
device per second on the RS-232 feed? I am hoping to get 10 or so
samples
per second from each device so I can average the readings out to
remove any
spikes due to noise.

How can I find out what the digital information will look like. If the
voltage of the sensor is 4.222V am I going to get binary data for
4.222?

I am reading a bunch about shutting down the MAX 666 and bringing it
back up
to trigger a reading. If I just leave it live will it force the
MAX186 to
constantly sample? I am not really concerned about a power source. I am
planning on feeding it 12V from the engine battery. I am really
looking for
the fastest feed of data out of the RS-232. I have read about parallel
speed over serial, but my device (IPAQ) only has a serial interface.

Do I need a separate voltage regulator (MAX666) for the +5V for the
sensors
to separate the digital and analog sub-systems?

Thanks for your help in advanced. Please let me know if I left any
information that is needed to provide advice.

CT.


Hello Haas,

Bit-banging is slower that a hardware serial port is true.

If your serial port is programmed for 9600 baud then a byte transfered
^^^^ = bit
will take (1/9600)=(1.04167e-4) about 1.04 milliseconds. Most serial
104. microseconds
programs will also program the serial port of 1 start bit, 1 Stop bit,
and NO parity. So a byte transfered in 10 bits. 1 start + 8 data + 1
stop.
So 10 bits transfered is 1.04 milliseconds.

OK, if you bit bang each bit, you would need a software loop 1 to
10.

If this loop were running on a 8Mhz 8088 vs. 1.2G P4 this loop code
will be run at different speeds.

The second link you posted from maxim-ic gives you the code to run
on the PC side. If you can get this code to work, measure the 12-bit
data stream on a scope or use the PC as a timer to check how long 1 word
take to travel from the A/D to the PC.

Without knowing the bit-time in micro-seconds for your target
system, there is no way to tell the speed of transfers.

hamilton

As far as the sensor voltage is concerned.

The first paragraph of the data sheet states:

The MAX187/MAX189 serial 12-bit analog-to-digital
converters (ADCs) operate from a single +5V supply
and accept a 0V to 5V analog input.

12 bits is 0-4065 or 4096 steps. An input of 5-volts is full scale
or 5V = 4095. So 5V / 4096 = 0.001220703125 volts per step.

Trasfer 12 bits from the A/D into an integer in your program.

Since this seems to be your first A/D project, I will warn you about
noise, in an automotive application you WILL have noise.

In an ideal world, a reading of say 1 volt at the input will read
about 819.2 in 12 bit resolution. ( 4096 / 5 = 819.2 ). A number of 819
or 820 will be clocked out the A/D. If the voltage you are reading has a
moving 200 milivolts of noise on it, your reading maybe ( 819.2 / 2.5 =
327.68 ) counts higher of lower than the real 1 volt (819) reading.

Once you know how fast you can transfer 12 bits of data ( include
overhead time to control the CS and CLK lines. ) Then you can tell how
many readings you can simple average or some higher math functions to
help get rid of the noise getting into your readings.

Good Luck


hamilton
 
In news:bsfk6201fgg@drn.newsguy.com,
Winfield Hill typed:
But I'll tell you what I don't like, it's having words put in my
mouth, it's encountering judgmental, intolerant folks, who put up
a straw horse representing what another supposedly believes,
Well, you have done precisely that on one recent occasion.
Specifically, it was about the welfare state. It was not the subject of
the thread, but you tangentially mentioned that conservatives want not
even basic social services. The truth is more complex, but in any case
it was untrue as you stated it, and you were putting words in others'
mouths.

Maybe you just got too worked up because you were in a dialog with John
Dyson.


--
-Reply in group, but if emailing add 2 more zeros-
-and remove the obvious-
 

Welcome to EDABoard.com

Sponsor

Back
Top