Math & percent
Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I cannot get the
correct percents for the variable lsp. Any help would be great.
Thanks
Jim Gorbet
'{$STAMP BS2}
tcw var word
lft var word
rrt var word
lrt var word
rft var word
lsp var word
lt var word
lft=1111
rft=1122
rrt=1203
lrt=1384
tcw=lft+rft+rrt+lrt 'total
pause 100
debug "Total: ", dec tcw/10,".",dec1 tcw,cr
debug cr
tcw=lft+rft+rrt+lrt
lt=lft+lrt
Debug "total:", dec lt/10,".",dec1 lt,cr
lsp = (lt*100)/tcw
debug "percent:", dec lsp,cr '????????????????????????????????
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
[noparse][[/noparse]Non-text portions of this message have been removed]
correct percents for the variable lsp. Any help would be great.
Thanks
Jim Gorbet
'{$STAMP BS2}
tcw var word
lft var word
rrt var word
lrt var word
rft var word
lsp var word
lt var word
lft=1111
rft=1122
rrt=1203
lrt=1384
tcw=lft+rft+rrt+lrt 'total
pause 100
debug "Total: ", dec tcw/10,".",dec1 tcw,cr
debug cr
tcw=lft+rft+rrt+lrt
lt=lft+lrt
Debug "total:", dec lt/10,".",dec1 lt,cr
lsp = (lt*100)/tcw
debug "percent:", dec lsp,cr '????????????????????????????????
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
The function (lt*100) is exceeding the max value of a WORD, 65535.
Where you are expecting 249500, it is over-running and returning
52892.
Then the value of (lt*100)/tcw is actually 10.97, but
the stamp truncates to the integer, leaving a result of 10.
As to a solution, I'll let you know if I think of anything, but the
problem is you are working with values that are too large.
HTH
Don
--- In basicstamps@y..., Jim Gorbet <jimgorbet@y...> wrote:
>
> Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
cannot get the correct percents for the variable lsp. Any help would
be great.
>
> Thanks
>
> Jim Gorbet
>
> '{$STAMP BS2}
> tcw var word
> lft var word
> rrt var word
> lrt var word
> rft var word
> lsp var word
> lt var word
>
> lft=1111
> rft=1122
> rrt=1203
> lrt=1384
>
> tcw=lft+rft+rrt+lrt 'total
>
> pause 100
> debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> debug cr
>
>
> tcw=lft+rft+rrt+lrt
>
>
> lt=lft+lrt
> Debug "total:", dec lt/10,".",dec1 lt,cr
>
>
> lsp = (lt*100)/tcw
> debug "percent:", dec lsp,cr '????????????????????????????????
>
>
>
>
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
to use and deal with variables greater that $FFFF. Can we create an
ascii string and store hex numbers in that and then read them out of
eeprom or something?? Come on these stamp limits are getting boring!
Leroy
mtlhead7 wrote:
>
> Found the problem, still working on a solution.
> The function (lt*100) is exceeding the max value of a WORD, 65535.
> Where you are expecting 249500, it is over-running and returning
> 52892.
> Then the value of (lt*100)/tcw is actually 10.97, but
> the stamp truncates to the integer, leaving a result of 10.
> As to a solution, I'll let you know if I think of anything, but the
> problem is you are working with values that are too large.
>
> HTH
> Don
>
> --- In basicstamps@y..., Jim Gorbet <jimgorbet@y...> wrote:
> >
> > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
> cannot get the correct percents for the variable lsp. Any help would
> be great.
> >
> > Thanks
> >
> > Jim Gorbet
> >
> > '{$STAMP BS2}
> > tcw var word
> > lft var word
> > rrt var word
> > lrt var word
> > rft var word
> > lsp var word
> > lt var word
> >
> > lft=1111
> > rft=1122
> > rrt=1203
> > lrt=1384
> >
> > tcw=lft+rft+rrt+lrt 'total
> >
> > pause 100
> > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> > debug cr
> >
> >
> > tcw=lft+rft+rrt+lrt
> >
> >
> > lt=lft+lrt
> > Debug "total:", dec lt/10,".",dec1 lt,cr
> >
> >
> > lsp = (lt*100)/tcw
> > debug "percent:", dec lsp,cr '????????????????????????????????
> >
> >
> >
> >
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
The Stamp can calculate percentages very accurately using a long
division algorithm. It is not as bad as it sounds! Use this for
your final percentage calculation...
F var word ' result of calculation
J var nib ' index for calculation
tcw=lft+rft+rrt+lrt ' denominator
lt = lrt+lft ' numerator
for J=15 to 0 ' index, nib
lt=lt//tcw<<1 ' remainder*2
F.bit0(J)=lt/tcw ' next bit of word F
next
' done, fraction is F/65536
F=F**10000 ' normalize to decimal percent
debug dec F/100,".",dec2 F,cr ' show xx.xx percent
hmmm, this problem looks exactly like one that Leroy posted a couple
of weeks ago.
-- best regards
Tracy Allen
electronically monitored ecosystems
http://www.emesystems.com
mailto:tracy@e...
>Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
>cannot get the correct percents for the variable lsp. Any help would
>be great.
>
>Thanks
>
>Jim Gorbet
>
>'{$STAMP BS2}
>tcw var word
>lft var word
>rrt var word
>lrt var word
>rft var word
>lsp var word
>lt var word
>
>lft=1111
>rft=1122
>rrt=1203
>lrt=1384
>
>tcw=lft+rft+rrt+lrt 'total
>
>pause 100
>debug "Total: ", dec tcw/10,".",dec1 tcw,cr
>debug cr
>
>
>tcw=lft+rft+rrt+lrt
>
>
>lt=lft+lrt
>Debug "total:", dec lt/10,".",dec1 lt,cr
>
>
>lsp = (lt*100)/tcw
>debug "percent:", dec lsp,cr '????????????????????????????????
I'm assuming that you tried Tracy Allen's math solution, like I
did, and found that it works perfectly.
I just have one question: what are you comparing? What do those
variables (tcw, lrt, rrt, etc.) stand for?
Just curious!
Don
--- In basicstamps@y..., Jim Gorbet <jimgorbet@y...> wrote:
>
> Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
cannot get the correct percents for the variable lsp. Any help would
be great.
>
> Thanks
>
> Jim Gorbet
>
> '{$STAMP BS2}
> tcw var word
> lft var word
> rrt var word
> lrt var word
> rft var word
> lsp var word
> lt var word
>
> lft=1111
> rft=1122
> rrt=1203
> lrt=1384
>
> tcw=lft+rft+rrt+lrt 'total
>
> pause 100
> debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> debug cr
>
>
> tcw=lft+rft+rrt+lrt
>
>
> lt=lft+lrt
> Debug "total:", dec lt/10,".",dec1 lt,cr
>
>
> lsp = (lt*100)/tcw
> debug "percent:", dec lsp,cr '????????????????????????????????
>
>
>
>
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
Leroy and I are working together trying to measure weights and percents of a
race cars tire, Such as lf=left front, rr=right rear. Tracy helped Leroy with
the original math and I believe I became confused. I hopeTracy didnt think I
stole his code. by the way Tracys code ran great but know Im stuck because the
bs 2 doesnt have enough variable space to do what is needed.
Keep on stamping
Jim Gorbet
mtlhead7 <renegade.engineer@v...> wrote: Jim
I'm assuming that you tried Tracy Allen's math solution, like I
did, and found that it works perfectly.
I just have one question: what are you comparing? What do those
variables (tcw, lrt, rrt, etc.) stand for?
Just curious!
Don
--- In basicstamps@y..., Jim Gorbet wrote:
>
> Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
cannot get the correct percents for the variable lsp. Any help would
be great.
>
> Thanks
>
> Jim Gorbet
>
> '{$STAMP BS2}
> tcw var word
> lft var word
> rrt var word
> lrt var word
> rft var word
> lsp var word
> lt var word
>
> lft=1111
> rft=1122
> rrt=1203
> lrt=1384
>
> tcw=lft+rft+rrt+lrt 'total
>
> pause 100
> debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> debug cr
>
>
> tcw=lft+rft+rrt+lrt
>
>
> lt=lft+lrt
> Debug "total:", dec lt/10,".",dec1 lt,cr
>
>
> lsp = (lt*100)/tcw
> debug "percent:", dec lsp,cr '????????????????????????????????
>
>
>
>
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and Body of
the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
[noparse][[/noparse]Non-text portions of this message have been removed]
RAM, unless I figure a better way to handle my data.
Don
Original Message
From: "Jim Gorbet" <jimgorbet@y...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, May 07, 2002 4:44 PM
Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
> Don,
> Leroy and I are working together trying to measure weights and percents
of a race cars tire, Such as lf=left front, rr=right rear. Tracy helped
Leroy with the original math and I believe I became confused. I hopeTracy
didnt think I stole his code. by the way Tracys code ran great but know Im
stuck because the bs 2 doesnt have enough variable space to do what is
needed.
> Keep on stamping
> Jim Gorbet
> mtlhead7 <renegade.engineer@v...> wrote: Jim
> I'm assuming that you tried Tracy Allen's math solution, like I
> did, and found that it works perfectly.
> I just have one question: what are you comparing? What do those
> variables (tcw, lrt, rrt, etc.) stand for?
> Just curious!
> Don
>
>
> --- In basicstamps@y..., Jim Gorbet wrote:
> >
> > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
> cannot get the correct percents for the variable lsp. Any help would
> be great.
> >
> > Thanks
> >
> > Jim Gorbet
> >
> > '{$STAMP BS2}
> > tcw var word
> > lft var word
> > rrt var word
> > lrt var word
> > rft var word
> > lsp var word
> > lt var word
> >
> > lft=1111
> > rft=1122
> > rrt=1203
> > lrt=1384
> >
> > tcw=lft+rft+rrt+lrt 'total
> >
> > pause 100
> > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> > debug cr
> >
> >
> > tcw=lft+rft+rrt+lrt
> >
> >
> > lt=lft+lrt
> > Debug "total:", dec lt/10,".",dec1 lt,cr
> >
> >
> > lsp = (lt*100)/tcw
> > debug "percent:", dec lsp,cr '????????????????????????????????
> >
> >
> >
> >
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Doesn't someone make an add-on I2C SRAM module for the Stamp? This is all I
can rememeber as far as add-on modules with any RAM:
http://www.high-techgarage.com/products/timekeeper.php
Maybe one of Al Williams pak-** chips has some extra ram available.
Also I believe you can use the scratch pad ram without much more work (sx,
e, and plus only I think).
swapping out values with an external device takes some real thought. There
are several times where I thought I had all the values I needed, but ended
up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
150-200 bytes of compiled code just to deal with value swapping. But its
still better than burning up some EEPROM locations by using them as RAM.
I've also found its cheaper just to drop the cash on a more advanced micro
when the going gets too tough, like an AVR or a Rabbit RCM(My favorite).
-Rob
Original Message
From: "Don" <renegade.engineer@v...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, May 07, 2002 10:13 PM
Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> Tell me about it. I realized today I may need up 5K or more of
variable
> RAM, unless I figure a better way to handle my data.
> Don
>
Original Message
> From: "Jim Gorbet" <jimgorbet@y...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, May 07, 2002 4:44 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
>
> >
> > Don,
> > Leroy and I are working together trying to measure weights and percents
> of a race cars tire, Such as lf=left front, rr=right rear. Tracy helped
> Leroy with the original math and I believe I became confused. I hopeTracy
> didnt think I stole his code. by the way Tracys code ran great but know Im
> stuck because the bs 2 doesnt have enough variable space to do what is
> needed.
> > Keep on stamping
> > Jim Gorbet
> > mtlhead7 <renegade.engineer@v...> wrote: Jim
> > I'm assuming that you tried Tracy Allen's math solution, like I
> > did, and found that it works perfectly.
> > I just have one question: what are you comparing? What do those
> > variables (tcw, lrt, rrt, etc.) stand for?
> > Just curious!
> > Don
> >
> >
> > --- In basicstamps@y..., Jim Gorbet wrote:
> > >
> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
> > cannot get the correct percents for the variable lsp. Any help would
> > be great.
> > >
> > > Thanks
> > >
> > > Jim Gorbet
> > >
> > > '{$STAMP BS2}
> > > tcw var word
> > > lft var word
> > > rrt var word
> > > lrt var word
> > > rft var word
> > > lsp var word
> > > lt var word
> > >
> > > lft=1111
> > > rft=1122
> > > rrt=1203
> > > lrt=1384
> > >
> > > tcw=lft+rft+rrt+lrt 'total
> > >
> > > pause 100
> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> > > debug cr
> > >
> > >
> > > tcw=lft+rft+rrt+lrt
> > >
> > >
> > > lt=lft+lrt
> > > Debug "total:", dec lt/10,".",dec1 lt,cr
> > >
> > >
> > > lsp = (lt*100)/tcw
> > > debug "percent:", dec lsp,cr '????????????????????????????????
> > >
> > >
> > >
> > >
> > > Do You Yahoo!?
> > > Yahoo! Health - your guide to health and wellness
> > >
> > > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> >
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
You need a R/W pin, an Enable pin, data and address pins (if using
Parallel data bus).
If an 8 bit data and address is used, that would be 16 I/O pins used, so
just make a bidirectional serial to parallel converter using a
4094/74165 circuit, which means only 11 pins would be needed (5 for the
bidirectional bus, 4 for the address bus, 2 control lines).
All other 8 bit devices would hang off the same bidirectional data bus
and address bus. If you aren't addressing the RAM chip, just hold it's
Enable pin high.
Instead of the 2 control lines, you could hang a 74152 off 4 ports
(meaning 13 ports in use altogether) to use as your chip enable
circuit. That's a 4 bit in, one of 16 out. So, you can control 16
devices, all plugged in to the same data and address bus.
They can be input devices or output devices.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
>From: "Robert Staph" <rstaph@a...>
>To: <basicstamps@yahoogroups.com>
>Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>Date: Wed, 8 May 2002 4:37 PM
>
> Thats the second biggest problem I've had with the stamp, very limited RAM.
> Doesn't someone make an add-on I2C SRAM module for the Stamp? This is all I
> can rememeber as far as add-on modules with any RAM:
> http://www.high-techgarage.com/products/timekeeper.php
>
> Maybe one of Al Williams pak-** chips has some extra ram available.
>
> Also I believe you can use the scratch pad ram without much more work (sx,
> e, and plus only I think).
>
> swapping out values with an external device takes some real thought. There
> are several times where I thought I had all the values I needed, but ended
> up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
> 150-200 bytes of compiled code just to deal with value swapping. But its
> still better than burning up some EEPROM locations by using them as RAM.
> I've also found its cheaper just to drop the cash on a more advanced micro
> when the going gets too tough, like an AVR or a Rabbit RCM(My favorite).
>
> -Rob
>
>
Original Message
> From: "Don" <renegade.engineer@v...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, May 07, 2002 10:13 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
>
>> Tell me about it. I realized today I may need up 5K or more of
> variable
>> RAM, unless I figure a better way to handle my data.
>> Don
>>
Original Message
>> From: "Jim Gorbet" <jimgorbet@y...>
>> To: <basicstamps@yahoogroups.com>
>> Sent: Tuesday, May 07, 2002 4:44 PM
>> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>>
>>
>> >
>> > Don,
>> > Leroy and I are working together trying to measure weights and percents
>> of a race cars tire, Such as lf=left front, rr=right rear. Tracy helped
>> Leroy with the original math and I believe I became confused. I hopeTracy
>> didnt think I stole his code. by the way Tracys code ran great but know Im
>> stuck because the bs 2 doesnt have enough variable space to do what is
>> needed.
>> > Keep on stamping
>> > Jim Gorbet
>> > mtlhead7 <renegade.engineer@v...> wrote: Jim
>> > I'm assuming that you tried Tracy Allen's math solution, like I
>> > did, and found that it works perfectly.
>> > I just have one question: what are you comparing? What do those
>> > variables (tcw, lrt, rrt, etc.) stand for?
>> > Just curious!
>> > Don
>> >
>> >
>> > --- In basicstamps@y..., Jim Gorbet wrote:
>> > >
>> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
>> > cannot get the correct percents for the variable lsp. Any help would
>> > be great.
>> > >
>> > > Thanks
>> > >
>> > > Jim Gorbet
>> > >
>> > > '{$STAMP BS2}
>> > > tcw var word
>> > > lft var word
>> > > rrt var word
>> > > lrt var word
>> > > rft var word
>> > > lsp var word
>> > > lt var word
>> > >
>> > > lft=1111
>> > > rft=1122
>> > > rrt=1203
>> > > lrt=1384
>> > >
>> > > tcw=lft+rft+rrt+lrt 'total
>> > >
>> > > pause 100
>> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
>> > > debug cr
>> > >
>> > >
>> > > tcw=lft+rft+rrt+lrt
>> > >
>> > >
>> > > lt=lft+lrt
>> > > Debug "total:", dec lt/10,".",dec1 lt,cr
>> > >
>> > >
>> > > lsp = (lt*100)/tcw
>> > > debug "percent:", dec lsp,cr '????????????????????????????????
>> > >
>> > >
>> > >
>> > >
>> > > Do You Yahoo!?
>> > > Yahoo! Health - your guide to health and wellness
>> > >
>> > > [noparse][[/noparse]Non-text portions of this message have been removed]
>> >
>> >
>> > To UNSUBSCRIBE, just send mail to:
>> > basicstamps-unsubscribe@yahoogroups.com
>> > from the same email address that you subscribed. Text in the Subject and
>> Body of the message will be ignored.
>> >
>> >
>> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>> >
>> >
>> >
>> >
>> >
>> > Do You Yahoo!?
>> > Yahoo! Health - your guide to health and wellness
>> >
>> > [noparse][[/noparse]Non-text portions of this message have been removed]
>> >
>> >
>> > To UNSUBSCRIBE, just send mail to:
>> > basicstamps-unsubscribe@yahoogroups.com
>> > from the same email address that you subscribed. Text in the Subject
> and
>> Body of the message will be ignored.
>> >
>> >
>> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>> >
>> >
>> >
>>
>>
>>
>> To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>>
>>
>> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
engineer trying to learn Stamps and electronics as a hobby.
Could you put that in english for me, or perhaps direct me to some
references that I can peruse. I have a fair handle on this stuff for a
novice
(I got a B in Circuits 101), but I'm still learning.
Thanks
Don
Original Message
From: "Ben Lennard" <postmaster@s...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, May 07, 2002 11:23 PM
Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> It is not difficult to add an external RAM chip.
> You need a R/W pin, an Enable pin, data and address pins (if using
> Parallel data bus).
> If an 8 bit data and address is used, that would be 16 I/O pins used, so
> just make a bidirectional serial to parallel converter using a
> 4094/74165 circuit, which means only 11 pins would be needed (5 for the
> bidirectional bus, 4 for the address bus, 2 control lines).
>
> All other 8 bit devices would hang off the same bidirectional data bus
> and address bus. If you aren't addressing the RAM chip, just hold it's
> Enable pin high.
>
> Instead of the 2 control lines, you could hang a 74152 off 4 ports
> (meaning 13 ports in use altogether) to use as your chip enable
> circuit. That's a 4 bit in, one of 16 out. So, you can control 16
> devices, all plugged in to the same data and address bus.
>
> They can be input devices or output devices.
>
> --
> http://www.lennard.net.nz/
> Ben Lennard, NCEE, Dip EE
>
> Web Hosting and Electronics R&D
>
> Hm: +64 4 972 7567
> Mb: +64 21 536 627
> 87 Spencer Street
> Crofton Downs
> Wellington
> New Zealand
>
> "To the optimist, the glass is half full. To the pessimist, the glass is
> half empty. To the engineer, the glass is twice as big as it needs to
be."
>
> No animals were harmed in the transmission of this email, although the
> Dog next door is living on borrowed time, let me tell you! Those of you
> with an overwhelming fear of the unknown will be gratified to learn that
> there is no hidden message revealed by reading this warning backwards.
>
>
>
>
>
> >From: "Robert Staph" <rstaph@a...>
> >To: <basicstamps@yahoogroups.com>
> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >Date: Wed, 8 May 2002 4:37 PM
> >
>
> > Thats the second biggest problem I've had with the stamp, very limited
RAM.
> > Doesn't someone make an add-on I2C SRAM module for the Stamp? This is
all I
> > can rememeber as far as add-on modules with any RAM:
> > http://www.high-techgarage.com/products/timekeeper.php
> >
> > Maybe one of Al Williams pak-** chips has some extra ram available.
> >
> > Also I believe you can use the scratch pad ram without much more work
(sx,
> > e, and plus only I think).
> >
> > swapping out values with an external device takes some real thought.
There
> > are several times where I thought I had all the values I needed, but
ended
> > up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
> > 150-200 bytes of compiled code just to deal with value swapping. But
its
> > still better than burning up some EEPROM locations by using them as RAM.
> > I've also found its cheaper just to drop the cash on a more advanced
micro
> > when the going gets too tough, like an AVR or a Rabbit RCM(My favorite).
> >
> > -Rob
> >
> >
Original Message
> > From: "Don" <renegade.engineer@v...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Tuesday, May 07, 2002 10:13 PM
> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >
> >
> >> Tell me about it. I realized today I may need up 5K or more of
> > variable
> >> RAM, unless I figure a better way to handle my data.
> >> Don
> >>
Original Message
> >> From: "Jim Gorbet" <jimgorbet@y...>
> >> To: <basicstamps@yahoogroups.com>
> >> Sent: Tuesday, May 07, 2002 4:44 PM
> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >>
> >>
> >> >
> >> > Don,
> >> > Leroy and I are working together trying to measure weights and
percents
> >> of a race cars tire, Such as lf=left front, rr=right rear. Tracy helped
> >> Leroy with the original math and I believe I became confused. I
hopeTracy
> >> didnt think I stole his code. by the way Tracys code ran great but know
Im
> >> stuck because the bs 2 doesnt have enough variable space to do what is
> >> needed.
> >> > Keep on stamping
> >> > Jim Gorbet
> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim
> >> > I'm assuming that you tried Tracy Allen's math solution, like I
> >> > did, and found that it works perfectly.
> >> > I just have one question: what are you comparing? What do those
> >> > variables (tcw, lrt, rrt, etc.) stand for?
> >> > Just curious!
> >> > Don
> >> >
> >> >
> >> > --- In basicstamps@y..., Jim Gorbet wrote:
> >> > >
> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
> >> > cannot get the correct percents for the variable lsp. Any help would
> >> > be great.
> >> > >
> >> > > Thanks
> >> > >
> >> > > Jim Gorbet
> >> > >
> >> > > '{$STAMP BS2}
> >> > > tcw var word
> >> > > lft var word
> >> > > rrt var word
> >> > > lrt var word
> >> > > rft var word
> >> > > lsp var word
> >> > > lt var word
> >> > >
> >> > > lft=1111
> >> > > rft=1122
> >> > > rrt=1203
> >> > > lrt=1384
> >> > >
> >> > > tcw=lft+rft+rrt+lrt 'total
> >> > >
> >> > > pause 100
> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> >> > > debug cr
> >> > >
> >> > >
> >> > > tcw=lft+rft+rrt+lrt
> >> > >
> >> > >
> >> > > lt=lft+lrt
> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
> >> > >
> >> > >
> >> > > lsp = (lt*100)/tcw
> >> > > debug "percent:", dec lsp,cr '????????????????????????????????
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > Do You Yahoo!?
> >> > > Yahoo! Health - your guide to health and wellness
> >> > >
> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
> >> >
> >> >
> >> > To UNSUBSCRIBE, just send mail to:
> >> > basicstamps-unsubscribe@yahoogroups.com
> >> > from the same email address that you subscribed. Text in the Subject
and
> >> Body of the message will be ignored.
> >> >
> >> >
> >> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > Do You Yahoo!?
> >> > Yahoo! Health - your guide to health and wellness
> >> >
> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >> >
> >> >
> >> > To UNSUBSCRIBE, just send mail to:
> >> > basicstamps-unsubscribe@yahoogroups.com
> >> > from the same email address that you subscribed. Text in the Subject
> > and
> >> Body of the message will be ignored.
> >> >
> >> >
> >> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >> To UNSUBSCRIBE, just send mail to:
> >> basicstamps-unsubscribe@yahoogroups.com
> >> from the same email address that you subscribed. Text in the Subject
and
> > Body of the message will be ignored.
> >>
> >>
> >> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >>
> >>
> >>
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> > Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
attachments on yahoo?).
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
>From: "Don" <renegade.engineer@v...>
>To: <basicstamps@yahoogroups.com>
>Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>Date: Wed, 8 May 2002 6:24 PM
>
> Thanks Ben, but most of that just went WAY over my head. I'm an Aero
> engineer trying to learn Stamps and electronics as a hobby.
> Could you put that in english for me, or perhaps direct me to some
> references that I can peruse. I have a fair handle on this stuff for a
> novice
> (I got a B in Circuits 101), but I'm still learning.
> Thanks
> Don
>
Original Message
> From: "Ben Lennard" <postmaster@s...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, May 07, 2002 11:23 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
>
>> It is not difficult to add an external RAM chip.
>> You need a R/W pin, an Enable pin, data and address pins (if using
>> Parallel data bus).
>> If an 8 bit data and address is used, that would be 16 I/O pins used, so
>> just make a bidirectional serial to parallel converter using a
>> 4094/74165 circuit, which means only 11 pins would be needed (5 for the
>> bidirectional bus, 4 for the address bus, 2 control lines).
>>
>> All other 8 bit devices would hang off the same bidirectional data bus
>> and address bus. If you aren't addressing the RAM chip, just hold it's
>> Enable pin high.
>>
>> Instead of the 2 control lines, you could hang a 74152 off 4 ports
>> (meaning 13 ports in use altogether) to use as your chip enable
>> circuit. That's a 4 bit in, one of 16 out. So, you can control 16
>> devices, all plugged in to the same data and address bus.
>>
>> They can be input devices or output devices.
>>
>> --
>> http://www.lennard.net.nz/
>> Ben Lennard, NCEE, Dip EE
>>
>> Web Hosting and Electronics R&D
>>
>> Hm: +64 4 972 7567
>> Mb: +64 21 536 627
>> 87 Spencer Street
>> Crofton Downs
>> Wellington
>> New Zealand
>>
>> "To the optimist, the glass is half full. To the pessimist, the glass is
>> half empty. To the engineer, the glass is twice as big as it needs to
> be."
>>
>> No animals were harmed in the transmission of this email, although the
>> Dog next door is living on borrowed time, let me tell you! Those of you
>> with an overwhelming fear of the unknown will be gratified to learn that
>> there is no hidden message revealed by reading this warning backwards.
>>
>>
>>
>>
>>
>> >From: "Robert Staph" <rstaph@a...>
>> >To: <basicstamps@yahoogroups.com>
>> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>> >Date: Wed, 8 May 2002 4:37 PM
>> >
>>
>> > Thats the second biggest problem I've had with the stamp, very limited
> RAM.
>> > Doesn't someone make an add-on I2C SRAM module for the Stamp? This is
> all I
>> > can rememeber as far as add-on modules with any RAM:
>> > http://www.high-techgarage.com/products/timekeeper.php
>> >
>> > Maybe one of Al Williams pak-** chips has some extra ram available.
>> >
>> > Also I believe you can use the scratch pad ram without much more work
> (sx,
>> > e, and plus only I think).
>> >
>> > swapping out values with an external device takes some real thought.
> There
>> > are several times where I thought I had all the values I needed, but
> ended
>> > up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
>> > 150-200 bytes of compiled code just to deal with value swapping. But
> its
>> > still better than burning up some EEPROM locations by using them as RAM.
>> > I've also found its cheaper just to drop the cash on a more advanced
> micro
>> > when the going gets too tough, like an AVR or a Rabbit RCM(My favorite).
>> >
>> > -Rob
>> >
>> >
Original Message
>> > From: "Don" <renegade.engineer@v...>
>> > To: <basicstamps@yahoogroups.com>
>> > Sent: Tuesday, May 07, 2002 10:13 PM
>> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>> >
>> >
>> >> Tell me about it. I realized today I may need up 5K or more of
>> > variable
>> >> RAM, unless I figure a better way to handle my data.
>> >> Don
>> >>
Original Message
>> >> From: "Jim Gorbet" <jimgorbet@y...>
>> >> To: <basicstamps@yahoogroups.com>
>> >> Sent: Tuesday, May 07, 2002 4:44 PM
>> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>> >>
>> >>
>> >> >
>> >> > Don,
>> >> > Leroy and I are working together trying to measure weights and
> percents
>> >> of a race cars tire, Such as lf=left front, rr=right rear. Tracy helped
>> >> Leroy with the original math and I believe I became confused. I
> hopeTracy
>> >> didnt think I stole his code. by the way Tracys code ran great but know
> Im
>> >> stuck because the bs 2 doesnt have enough variable space to do what is
>> >> needed.
>> >> > Keep on stamping
>> >> > Jim Gorbet
>> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim
>> >> > I'm assuming that you tried Tracy Allen's math solution, like I
>> >> > did, and found that it works perfectly.
>> >> > I just have one question: what are you comparing? What do those
>> >> > variables (tcw, lrt, rrt, etc.) stand for?
>> >> > Just curious!
>> >> > Don
>> >> >
>> >> >
>> >> > --- In basicstamps@y..., Jim Gorbet wrote:
>> >> > >
>> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
>> >> > cannot get the correct percents for the variable lsp. Any help would
>> >> > be great.
>> >> > >
>> >> > > Thanks
>> >> > >
>> >> > > Jim Gorbet
>> >> > >
>> >> > > '{$STAMP BS2}
>> >> > > tcw var word
>> >> > > lft var word
>> >> > > rrt var word
>> >> > > lrt var word
>> >> > > rft var word
>> >> > > lsp var word
>> >> > > lt var word
>> >> > >
>> >> > > lft=1111
>> >> > > rft=1122
>> >> > > rrt=1203
>> >> > > lrt=1384
>> >> > >
>> >> > > tcw=lft+rft+rrt+lrt 'total
>> >> > >
>> >> > > pause 100
>> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
>> >> > > debug cr
>> >> > >
>> >> > >
>> >> > > tcw=lft+rft+rrt+lrt
>> >> > >
>> >> > >
>> >> > > lt=lft+lrt
>> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
>> >> > >
>> >> > >
>> >> > > lsp = (lt*100)/tcw
>> >> > > debug "percent:", dec lsp,cr '????????????????????????????????
>> >> > >
>> >> > >
>> >> > >
>> >> > >
>> >> > > Do You Yahoo!?
>> >> > > Yahoo! Health - your guide to health and wellness
>> >> > >
>> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
>> >> >
>> >> >
>> >> > To UNSUBSCRIBE, just send mail to:
>> >> > basicstamps-unsubscribe@yahoogroups.com
>> >> > from the same email address that you subscribed. Text in the Subject
> and
>> >> Body of the message will be ignored.
>> >> >
>> >> >
>> >> > Your use of Yahoo! Groups is subject to
>> > http://docs.yahoo.com/info/terms/
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > Do You Yahoo!?
>> >> > Yahoo! Health - your guide to health and wellness
>> >> >
>> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
>> >> >
>> >> >
>> >> > To UNSUBSCRIBE, just send mail to:
>> >> > basicstamps-unsubscribe@yahoogroups.com
>> >> > from the same email address that you subscribed. Text in the Subject
>> > and
>> >> Body of the message will be ignored.
>> >> >
>> >> >
>> >> > Your use of Yahoo! Groups is subject to
>> > http://docs.yahoo.com/info/terms/
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> To UNSUBSCRIBE, just send mail to:
>> >> basicstamps-unsubscribe@yahoogroups.com
>> >> from the same email address that you subscribed. Text in the Subject
> and
>> > Body of the message will be ignored.
>> >>
>> >>
>> >> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>> >>
>> >>
>> >>
>> >
>> >
>> > To UNSUBSCRIBE, just send mail to:
>> > basicstamps-unsubscribe@yahoogroups.com
>> > from the same email address that you subscribed. Text in the Subject
> and
>> > Body of the message will be ignored.
>> >
>> >
>> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>> >
>> >
>>
>> To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>>
>>
>> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
I've thrown together a quick idea.
go to http://www.lennard.net.nz/tests/Stampcct.JPG
It shows how it should all fit together. I'm just using shift registers to
create the buses. You'll notice I'm also using a 4094 as a "control bus" (I
originally thought of using a 74LS152).
To determine which devices you want enabled, and whether they are listening
or talking, send an 8 bit code to the 4094. You can add more devices by
added a 2nd 4094, and sending a 16 bit code, same with the address bus
(address more RAM by adding a 2nd 4094 and therefore having a 16 bit bus)
Interested to see what people think, and if you have any other ideas.
I can include more detail of the bidirectional data bus with the
4094/74LS165 later on.
cheers,
Ben, Wellington, New Zealand.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
>From: "Don" <renegade.engineer@v...>
>To: <basicstamps@yahoogroups.com>
>Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>Date: Wed, 8 May 2002 6:24 PM
>
> Thanks Ben, but most of that just went WAY over my head. I'm an Aero
> engineer trying to learn Stamps and electronics as a hobby.
> Could you put that in english for me, or perhaps direct me to some
> references that I can peruse. I have a fair handle on this stuff for a
> novice
> (I got a B in Circuits 101), but I'm still learning.
> Thanks
> Don
>
Original Message
> From: "Ben Lennard" <postmaster@s...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, May 07, 2002 11:23 PM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
>
>> It is not difficult to add an external RAM chip.
>> You need a R/W pin, an Enable pin, data and address pins (if using
>> Parallel data bus).
>> If an 8 bit data and address is used, that would be 16 I/O pins used, so
>> just make a bidirectional serial to parallel converter using a
>> 4094/74165 circuit, which means only 11 pins would be needed (5 for the
>> bidirectional bus, 4 for the address bus, 2 control lines).
>>
>> All other 8 bit devices would hang off the same bidirectional data bus
>> and address bus. If you aren't addressing the RAM chip, just hold it's
>> Enable pin high.
>>
>> Instead of the 2 control lines, you could hang a 74152 off 4 ports
>> (meaning 13 ports in use altogether) to use as your chip enable
>> circuit. That's a 4 bit in, one of 16 out. So, you can control 16
>> devices, all plugged in to the same data and address bus.
>>
>> They can be input devices or output devices.
>>
>> --
>> http://www.lennard.net.nz/
>> Ben Lennard, NCEE, Dip EE
>>
>> Web Hosting and Electronics R&D
>>
>> Hm: +64 4 972 7567
>> Mb: +64 21 536 627
>> 87 Spencer Street
>> Crofton Downs
>> Wellington
>> New Zealand
>>
>> "To the optimist, the glass is half full. To the pessimist, the glass is
>> half empty. To the engineer, the glass is twice as big as it needs to
> be."
>>
>> No animals were harmed in the transmission of this email, although the
>> Dog next door is living on borrowed time, let me tell you! Those of you
>> with an overwhelming fear of the unknown will be gratified to learn that
>> there is no hidden message revealed by reading this warning backwards.
>>
>>
>>
>>
>>
>> >From: "Robert Staph" <rstaph@a...>
>> >To: <basicstamps@yahoogroups.com>
>> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>> >Date: Wed, 8 May 2002 4:37 PM
>> >
>>
>> > Thats the second biggest problem I've had with the stamp, very limited
> RAM.
>> > Doesn't someone make an add-on I2C SRAM module for the Stamp? This is
> all I
>> > can rememeber as far as add-on modules with any RAM:
>> > http://www.high-techgarage.com/products/timekeeper.php
>> >
>> > Maybe one of Al Williams pak-** chips has some extra ram available.
>> >
>> > Also I believe you can use the scratch pad ram without much more work
> (sx,
>> > e, and plus only I think).
>> >
>> > swapping out values with an external device takes some real thought.
> There
>> > are several times where I thought I had all the values I needed, but
> ended
>> > up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
>> > 150-200 bytes of compiled code just to deal with value swapping. But
> its
>> > still better than burning up some EEPROM locations by using them as RAM.
>> > I've also found its cheaper just to drop the cash on a more advanced
> micro
>> > when the going gets too tough, like an AVR or a Rabbit RCM(My favorite).
>> >
>> > -Rob
>> >
>> >
Original Message
>> > From: "Don" <renegade.engineer@v...>
>> > To: <basicstamps@yahoogroups.com>
>> > Sent: Tuesday, May 07, 2002 10:13 PM
>> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>> >
>> >
>> >> Tell me about it. I realized today I may need up 5K or more of
>> > variable
>> >> RAM, unless I figure a better way to handle my data.
>> >> Don
>> >>
Original Message
>> >> From: "Jim Gorbet" <jimgorbet@y...>
>> >> To: <basicstamps@yahoogroups.com>
>> >> Sent: Tuesday, May 07, 2002 4:44 PM
>> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>> >>
>> >>
>> >> >
>> >> > Don,
>> >> > Leroy and I are working together trying to measure weights and
> percents
>> >> of a race cars tire, Such as lf=left front, rr=right rear. Tracy helped
>> >> Leroy with the original math and I believe I became confused. I
> hopeTracy
>> >> didnt think I stole his code. by the way Tracys code ran great but know
> Im
>> >> stuck because the bs 2 doesnt have enough variable space to do what is
>> >> needed.
>> >> > Keep on stamping
>> >> > Jim Gorbet
>> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim
>> >> > I'm assuming that you tried Tracy Allen's math solution, like I
>> >> > did, and found that it works perfectly.
>> >> > I just have one question: what are you comparing? What do those
>> >> > variables (tcw, lrt, rrt, etc.) stand for?
>> >> > Just curious!
>> >> > Don
>> >> >
>> >> >
>> >> > --- In basicstamps@y..., Jim Gorbet wrote:
>> >> > >
>> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
>> >> > cannot get the correct percents for the variable lsp. Any help would
>> >> > be great.
>> >> > >
>> >> > > Thanks
>> >> > >
>> >> > > Jim Gorbet
>> >> > >
>> >> > > '{$STAMP BS2}
>> >> > > tcw var word
>> >> > > lft var word
>> >> > > rrt var word
>> >> > > lrt var word
>> >> > > rft var word
>> >> > > lsp var word
>> >> > > lt var word
>> >> > >
>> >> > > lft=1111
>> >> > > rft=1122
>> >> > > rrt=1203
>> >> > > lrt=1384
>> >> > >
>> >> > > tcw=lft+rft+rrt+lrt 'total
>> >> > >
>> >> > > pause 100
>> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
>> >> > > debug cr
>> >> > >
>> >> > >
>> >> > > tcw=lft+rft+rrt+lrt
>> >> > >
>> >> > >
>> >> > > lt=lft+lrt
>> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
>> >> > >
>> >> > >
>> >> > > lsp = (lt*100)/tcw
>> >> > > debug "percent:", dec lsp,cr '????????????????????????????????
>> >> > >
>> >> > >
>> >> > >
>> >> > >
>> >> > > Do You Yahoo!?
>> >> > > Yahoo! Health - your guide to health and wellness
>> >> > >
>> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
>> >> >
>> >> >
>> >> > To UNSUBSCRIBE, just send mail to:
>> >> > basicstamps-unsubscribe@yahoogroups.com
>> >> > from the same email address that you subscribed. Text in the Subject
> and
>> >> Body of the message will be ignored.
>> >> >
>> >> >
>> >> > Your use of Yahoo! Groups is subject to
>> > http://docs.yahoo.com/info/terms/
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > Do You Yahoo!?
>> >> > Yahoo! Health - your guide to health and wellness
>> >> >
>> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
>> >> >
>> >> >
>> >> > To UNSUBSCRIBE, just send mail to:
>> >> > basicstamps-unsubscribe@yahoogroups.com
>> >> > from the same email address that you subscribed. Text in the Subject
>> > and
>> >> Body of the message will be ignored.
>> >> >
>> >> >
>> >> > Your use of Yahoo! Groups is subject to
>> > http://docs.yahoo.com/info/terms/
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> To UNSUBSCRIBE, just send mail to:
>> >> basicstamps-unsubscribe@yahoogroups.com
>> >> from the same email address that you subscribed. Text in the Subject
> and
>> > Body of the message will be ignored.
>> >>
>> >>
>> >> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>> >>
>> >>
>> >>
>> >
>> >
>> > To UNSUBSCRIBE, just send mail to:
>> > basicstamps-unsubscribe@yahoogroups.com
>> > from the same email address that you subscribed. Text in the Subject
> and
>> > Body of the message will be ignored.
>> >
>> >
>> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>> >
>> >
>>
>> To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>>
>>
>> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
confused here. I guess I should have prefaced my original question better.
I read the Parallax App Note that describes how to connect an external 93C66
or 93LC66 512-byte EEPROM to the BS1. It looks pretty straight forward, and
pictures REALLY help.
I need to do something similar, except that I need to hook up to a BS2,
BS2e, or higher, and need on the order of 5-KBytes EEPROM or more. Your
schematic is very good (did you use SmartDraw to create it?), but I must
admit I need something a bit less involved. That's why I was hoping someone
might have a reference to a project or BS2, etc., oriented App Note that can
get me there with the least room for error. I'm trying to learn electronics
in steps, and all the extra equipment in your schematic throws me for a
loop. Can you or anyone help?
Thanks
Don
Original Message
From: "Ben Lennard" <postmaster@s...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, May 08, 2002 1:48 AM
Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> Re addressing external RAM:
>
> I've thrown together a quick idea.
>
> go to http://www.lennard.net.nz/tests/Stampcct.JPG
>
> It shows how it should all fit together. I'm just using shift registers
to
> create the buses. You'll notice I'm also using a 4094 as a "control bus"
(I
> originally thought of using a 74LS152).
> To determine which devices you want enabled, and whether they are
listening
> or talking, send an 8 bit code to the 4094. You can add more devices by
> added a 2nd 4094, and sending a 16 bit code, same with the address bus
> (address more RAM by adding a 2nd 4094 and therefore having a 16 bit bus)
>
> Interested to see what people think, and if you have any other ideas.
>
> I can include more detail of the bidirectional data bus with the
> 4094/74LS165 later on.
>
> cheers,
>
> Ben, Wellington, New Zealand.
>
> --
> http://www.lennard.net.nz/
> Ben Lennard, NCEE, Dip EE
>
> Web Hosting and Electronics R&D
>
> Hm: +64 4 972 7567
> Mb: +64 21 536 627
> 87 Spencer Street
> Crofton Downs
> Wellington
> New Zealand
>
> "To the optimist, the glass is half full. To the pessimist, the glass is
> half empty. To the engineer, the glass is twice as big as it needs to
be."
>
> No animals were harmed in the transmission of this email, although the
> Dog next door is living on borrowed time, let me tell you! Those of you
> with an overwhelming fear of the unknown will be gratified to learn that
> there is no hidden message revealed by reading this warning backwards.
>
>
>
>
>
> >From: "Don" <renegade.engineer@v...>
> >To: <basicstamps@yahoogroups.com>
> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >Date: Wed, 8 May 2002 6:24 PM
> >
>
> > Thanks Ben, but most of that just went WAY over my head. I'm an
Aero
> > engineer trying to learn Stamps and electronics as a hobby.
> > Could you put that in english for me, or perhaps direct me to some
> > references that I can peruse. I have a fair handle on this stuff for a
> > novice
> > (I got a B in Circuits 101), but I'm still learning.
> > Thanks
> > Don
> >
Original Message
> > From: "Ben Lennard" <postmaster@s...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Tuesday, May 07, 2002 11:23 PM
> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >
> >
> >> It is not difficult to add an external RAM chip.
> >> You need a R/W pin, an Enable pin, data and address pins (if using
> >> Parallel data bus).
> >> If an 8 bit data and address is used, that would be 16 I/O pins used,
so
> >> just make a bidirectional serial to parallel converter using a
> >> 4094/74165 circuit, which means only 11 pins would be needed (5 for the
> >> bidirectional bus, 4 for the address bus, 2 control lines).
> >>
> >> All other 8 bit devices would hang off the same bidirectional data bus
> >> and address bus. If you aren't addressing the RAM chip, just hold it's
> >> Enable pin high.
> >>
> >> Instead of the 2 control lines, you could hang a 74152 off 4 ports
> >> (meaning 13 ports in use altogether) to use as your chip enable
> >> circuit. That's a 4 bit in, one of 16 out. So, you can control 16
> >> devices, all plugged in to the same data and address bus.
> >>
> >> They can be input devices or output devices.
> >>
> >> --
> >> http://www.lennard.net.nz/
> >> Ben Lennard, NCEE, Dip EE
> >>
> >> Web Hosting and Electronics R&D
> >>
> >> Hm: +64 4 972 7567
> >> Mb: +64 21 536 627
> >> 87 Spencer Street
> >> Crofton Downs
> >> Wellington
> >> New Zealand
> >>
> >> "To the optimist, the glass is half full. To the pessimist, the glass
is
> >> half empty. To the engineer, the glass is twice as big as it needs to
> > be."
> >>
> >> No animals were harmed in the transmission of this email, although the
> >> Dog next door is living on borrowed time, let me tell you! Those of
you
> >> with an overwhelming fear of the unknown will be gratified to learn
that
> >> there is no hidden message revealed by reading this warning backwards.
> >>
> >>
> >>
> >>
> >>
> >> >From: "Robert Staph" <rstaph@a...>
> >> >To: <basicstamps@yahoogroups.com>
> >> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >> >Date: Wed, 8 May 2002 4:37 PM
> >> >
> >>
> >> > Thats the second biggest problem I've had with the stamp, very
limited
> > RAM.
> >> > Doesn't someone make an add-on I2C SRAM module for the Stamp? This
is
> > all I
> >> > can rememeber as far as add-on modules with any RAM:
> >> > http://www.high-techgarage.com/products/timekeeper.php
> >> >
> >> > Maybe one of Al Williams pak-** chips has some extra ram available.
> >> >
> >> > Also I believe you can use the scratch pad ram without much more work
> > (sx,
> >> > e, and plus only I think).
> >> >
> >> > swapping out values with an external device takes some real thought.
> > There
> >> > are several times where I thought I had all the values I needed, but
> > ended
> >> > up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
> >> > 150-200 bytes of compiled code just to deal with value swapping. But
> > its
> >> > still better than burning up some EEPROM locations by using them as
RAM.
> >> > I've also found its cheaper just to drop the cash on a more advanced
> > micro
> >> > when the going gets too tough, like an AVR or a Rabbit RCM(My
favorite).
> >> >
> >> > -Rob
> >> >
> >> >
Original Message
> >> > From: "Don" <renegade.engineer@v...>
> >> > To: <basicstamps@yahoogroups.com>
> >> > Sent: Tuesday, May 07, 2002 10:13 PM
> >> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >> >
> >> >
> >> >> Tell me about it. I realized today I may need up 5K or more of
> >> > variable
> >> >> RAM, unless I figure a better way to handle my data.
> >> >> Don
> >> >>
Original Message
> >> >> From: "Jim Gorbet" <jimgorbet@y...>
> >> >> To: <basicstamps@yahoogroups.com>
> >> >> Sent: Tuesday, May 07, 2002 4:44 PM
> >> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >> >>
> >> >>
> >> >> >
> >> >> > Don,
> >> >> > Leroy and I are working together trying to measure weights and
> > percents
> >> >> of a race cars tire, Such as lf=left front, rr=right rear. Tracy
helped
> >> >> Leroy with the original math and I believe I became confused. I
> > hopeTracy
> >> >> didnt think I stole his code. by the way Tracys code ran great but
know
> > Im
> >> >> stuck because the bs 2 doesnt have enough variable space to do what
is
> >> >> needed.
> >> >> > Keep on stamping
> >> >> > Jim Gorbet
> >> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim
> >> >> > I'm assuming that you tried Tracy Allen's math solution, like I
> >> >> > did, and found that it works perfectly.
> >> >> > I just have one question: what are you comparing? What do those
> >> >> > variables (tcw, lrt, rrt, etc.) stand for?
> >> >> > Just curious!
> >> >> > Don
> >> >> >
> >> >> >
> >> >> > --- In basicstamps@y..., Jim Gorbet wrote:
> >> >> > >
> >> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
> >> >> > cannot get the correct percents for the variable lsp. Any help
would
> >> >> > be great.
> >> >> > >
> >> >> > > Thanks
> >> >> > >
> >> >> > > Jim Gorbet
> >> >> > >
> >> >> > > '{$STAMP BS2}
> >> >> > > tcw var word
> >> >> > > lft var word
> >> >> > > rrt var word
> >> >> > > lrt var word
> >> >> > > rft var word
> >> >> > > lsp var word
> >> >> > > lt var word
> >> >> > >
> >> >> > > lft=1111
> >> >> > > rft=1122
> >> >> > > rrt=1203
> >> >> > > lrt=1384
> >> >> > >
> >> >> > > tcw=lft+rft+rrt+lrt 'total
> >> >> > >
> >> >> > > pause 100
> >> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> >> >> > > debug cr
> >> >> > >
> >> >> > >
> >> >> > > tcw=lft+rft+rrt+lrt
> >> >> > >
> >> >> > >
> >> >> > > lt=lft+lrt
> >> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
> >> >> > >
> >> >> > >
> >> >> > > lsp = (lt*100)/tcw
> >> >> > > debug "percent:", dec lsp,cr '????????????????????????????????
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > > Do You Yahoo!?
> >> >> > > Yahoo! Health - your guide to health and wellness
> >> >> > >
> >> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
> >> >> >
> >> >> >
> >> >> > To UNSUBSCRIBE, just send mail to:
> >> >> > basicstamps-unsubscribe@yahoogroups.com
> >> >> > from the same email address that you subscribed. Text in the
Subject
> > and
> >> >> Body of the message will be ignored.
> >> >> >
> >> >> >
> >> >> > Your use of Yahoo! Groups is subject to
> >> > http://docs.yahoo.com/info/terms/
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > Do You Yahoo!?
> >> >> > Yahoo! Health - your guide to health and wellness
> >> >> >
> >> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >> >> >
> >> >> >
> >> >> > To UNSUBSCRIBE, just send mail to:
> >> >> > basicstamps-unsubscribe@yahoogroups.com
> >> >> > from the same email address that you subscribed. Text in the
Subject
> >> > and
> >> >> Body of the message will be ignored.
> >> >> >
> >> >> >
> >> >> > Your use of Yahoo! Groups is subject to
> >> > http://docs.yahoo.com/info/terms/
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> To UNSUBSCRIBE, just send mail to:
> >> >> basicstamps-unsubscribe@yahoogroups.com
> >> >> from the same email address that you subscribed. Text in the
Subject
> > and
> >> > Body of the message will be ignored.
> >> >>
> >> >>
> >> >> Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> > To UNSUBSCRIBE, just send mail to:
> >> > basicstamps-unsubscribe@yahoogroups.com
> >> > from the same email address that you subscribed. Text in the Subject
> > and
> >> > Body of the message will be ignored.
> >> >
> >> >
> >> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >> >
> >> >
> >>
> >> To UNSUBSCRIBE, just send mail to:
> >> basicstamps-unsubscribe@yahoogroups.com
> >> from the same email address that you subscribed. Text in the Subject
and
> > Body of the message will be ignored.
> >>
> >>
> >> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >>
> >>
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and
> > Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
High Tech Garage website has tutorial for interfacing 24LC16 (2K) and
24LC256(32K) serial eeproms.
http://www.high-techgarage.com/tutorial/i2c.php
Also Peter Anderson's site has example for 24LC32 (4K, cascadable to
32K) at:
http://www.phanderson.com/stamp/i2c/24lc32.html
All these examples are minimum interface examples.
Best, Pete.
________________________________________________________
Peter W. Houlihan, (413) 538-3091, phouliha@m...
Mellon Postdoctoral Fellow, Center for Environmental Literacy
Mount Holyoke College, South Hadley, MA 01075
Visit our website at:
http://www.mtholyoke.edu/proj/cel/index.html
________________________________________________________
On Wed, 8 May 2002, Don wrote:
> Date: Wed, 8 May 2002 07:21:34 -0700
> From: Don <renegade.engineer@v...>
> Reply-To: basicstamps@yahoogroups.com
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
> Again, Thanks very much for your help on this Ben!! But I'm still a bit
> confused here. I guess I should have prefaced my original question better.
> I read the Parallax App Note that describes how to connect an external 93C66
> or 93LC66 512-byte EEPROM to the BS1. It looks pretty straight forward, and
> pictures REALLY help.
> I need to do something similar, except that I need to hook up to a BS2,
> BS2e, or higher, and need on the order of 5-KBytes EEPROM or more. Your
> schematic is very good (did you use SmartDraw to create it?), but I must
> admit I need something a bit less involved. That's why I was hoping someone
> might have a reference to a project or BS2, etc., oriented App Note that can
> get me there with the least room for error. I'm trying to learn electronics
> in steps, and all the extra equipment in your schematic throws me for a
> loop. Can you or anyone help?
> Thanks
> Don
>
Original Message
> From: "Ben Lennard" <postmaster@s...>
> To: <basicstamps@yahoogroups.com>
> Sent: Wednesday, May 08, 2002 1:48 AM
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
>
> > Re addressing external RAM:
> >
> > I've thrown together a quick idea.
> >
> > go to http://www.lennard.net.nz/tests/Stampcct.JPG
> >
> > It shows how it should all fit together. I'm just using shift registers
> to
> > create the buses. You'll notice I'm also using a 4094 as a "control bus"
> (I
> > originally thought of using a 74LS152).
> > To determine which devices you want enabled, and whether they are
> listening
> > or talking, send an 8 bit code to the 4094. You can add more devices by
> > added a 2nd 4094, and sending a 16 bit code, same with the address bus
> > (address more RAM by adding a 2nd 4094 and therefore having a 16 bit bus)
> >
> > Interested to see what people think, and if you have any other ideas.
> >
> > I can include more detail of the bidirectional data bus with the
> > 4094/74LS165 later on.
> >
> > cheers,
> >
> > Ben, Wellington, New Zealand.
> >
> > --
> > http://www.lennard.net.nz/
> > Ben Lennard, NCEE, Dip EE
> >
> > Web Hosting and Electronics R&D
> >
> > Hm: +64 4 972 7567
> > Mb: +64 21 536 627
> > 87 Spencer Street
> > Crofton Downs
> > Wellington
> > New Zealand
> >
> > "To the optimist, the glass is half full. To the pessimist, the glass is
> > half empty. To the engineer, the glass is twice as big as it needs to
> be."
> >
> > No animals were harmed in the transmission of this email, although the
> > Dog next door is living on borrowed time, let me tell you! Those of you
> > with an overwhelming fear of the unknown will be gratified to learn that
> > there is no hidden message revealed by reading this warning backwards.
> >
> >
> >
> >
> >
> > >From: "Don" <renegade.engineer@v...>
> > >To: <basicstamps@yahoogroups.com>
> > >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > >Date: Wed, 8 May 2002 6:24 PM
> > >
> >
> > > Thanks Ben, but most of that just went WAY over my head. I'm an
> Aero
> > > engineer trying to learn Stamps and electronics as a hobby.
> > > Could you put that in english for me, or perhaps direct me to some
> > > references that I can peruse. I have a fair handle on this stuff for a
> > > novice
> > > (I got a B in Circuits 101), but I'm still learning.
> > > Thanks
> > > Don
> > >
Original Message
> > > From: "Ben Lennard" <postmaster@s...>
> > > To: <basicstamps@yahoogroups.com>
> > > Sent: Tuesday, May 07, 2002 11:23 PM
> > > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > >
> > >
> > >> It is not difficult to add an external RAM chip.
> > >> You need a R/W pin, an Enable pin, data and address pins (if using
> > >> Parallel data bus).
> > >> If an 8 bit data and address is used, that would be 16 I/O pins used,
> so
> > >> just make a bidirectional serial to parallel converter using a
> > >> 4094/74165 circuit, which means only 11 pins would be needed (5 for the
> > >> bidirectional bus, 4 for the address bus, 2 control lines).
> > >>
> > >> All other 8 bit devices would hang off the same bidirectional data bus
> > >> and address bus. If you aren't addressing the RAM chip, just hold it's
> > >> Enable pin high.
> > >>
> > >> Instead of the 2 control lines, you could hang a 74152 off 4 ports
> > >> (meaning 13 ports in use altogether) to use as your chip enable
> > >> circuit. That's a 4 bit in, one of 16 out. So, you can control 16
> > >> devices, all plugged in to the same data and address bus.
> > >>
> > >> They can be input devices or output devices.
> > >>
> > >> --
> > >> http://www.lennard.net.nz/
> > >> Ben Lennard, NCEE, Dip EE
> > >>
> > >> Web Hosting and Electronics R&D
> > >>
> > >> Hm: +64 4 972 7567
> > >> Mb: +64 21 536 627
> > >> 87 Spencer Street
> > >> Crofton Downs
> > >> Wellington
> > >> New Zealand
> > >>
> > >> "To the optimist, the glass is half full. To the pessimist, the glass
> is
> > >> half empty. To the engineer, the glass is twice as big as it needs to
> > > be."
> > >>
> > >> No animals were harmed in the transmission of this email, although the
> > >> Dog next door is living on borrowed time, let me tell you! Those of
> you
> > >> with an overwhelming fear of the unknown will be gratified to learn
> that
> > >> there is no hidden message revealed by reading this warning backwards.
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> >From: "Robert Staph" <rstaph@a...>
> > >> >To: <basicstamps@yahoogroups.com>
> > >> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > >> >Date: Wed, 8 May 2002 4:37 PM
> > >> >
> > >>
> > >> > Thats the second biggest problem I've had with the stamp, very
> limited
> > > RAM.
> > >> > Doesn't someone make an add-on I2C SRAM module for the Stamp? This
> is
> > > all I
> > >> > can rememeber as far as add-on modules with any RAM:
> > >> > http://www.high-techgarage.com/products/timekeeper.php
> > >> >
> > >> > Maybe one of Al Williams pak-** chips has some extra ram available.
> > >> >
> > >> > Also I believe you can use the scratch pad ram without much more work
> > > (sx,
> > >> > e, and plus only I think).
> > >> >
> > >> > swapping out values with an external device takes some real thought.
> > > There
> > >> > are several times where I thought I had all the values I needed, but
> > > ended
> > >> > up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to add
> > >> > 150-200 bytes of compiled code just to deal with value swapping. But
> > > its
> > >> > still better than burning up some EEPROM locations by using them as
> RAM.
> > >> > I've also found its cheaper just to drop the cash on a more advanced
> > > micro
> > >> > when the going gets too tough, like an AVR or a Rabbit RCM(My
> favorite).
> > >> >
> > >> > -Rob
> > >> >
> > >> >
Original Message
> > >> > From: "Don" <renegade.engineer@v...>
> > >> > To: <basicstamps@yahoogroups.com>
> > >> > Sent: Tuesday, May 07, 2002 10:13 PM
> > >> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > >> >
> > >> >
> > >> >> Tell me about it. I realized today I may need up 5K or more of
> > >> > variable
> > >> >> RAM, unless I figure a better way to handle my data.
> > >> >> Don
> > >> >>
Original Message
> > >> >> From: "Jim Gorbet" <jimgorbet@y...>
> > >> >> To: <basicstamps@yahoogroups.com>
> > >> >> Sent: Tuesday, May 07, 2002 4:44 PM
> > >> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > >> >>
> > >> >>
> > >> >> >
> > >> >> > Don,
> > >> >> > Leroy and I are working together trying to measure weights and
> > > percents
> > >> >> of a race cars tire, Such as lf=left front, rr=right rear. Tracy
> helped
> > >> >> Leroy with the original math and I believe I became confused. I
> > > hopeTracy
> > >> >> didnt think I stole his code. by the way Tracys code ran great but
> know
> > > Im
> > >> >> stuck because the bs 2 doesnt have enough variable space to do what
> is
> > >> >> needed.
> > >> >> > Keep on stamping
> > >> >> > Jim Gorbet
> > >> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim
> > >> >> > I'm assuming that you tried Tracy Allen's math solution, like I
> > >> >> > did, and found that it works perfectly.
> > >> >> > I just have one question: what are you comparing? What do those
> > >> >> > variables (tcw, lrt, rrt, etc.) stand for?
> > >> >> > Just curious!
> > >> >> > Don
> > >> >> >
> > >> >> >
> > >> >> > --- In basicstamps@y..., Jim Gorbet wrote:
> > >> >> > >
> > >> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great but I
> > >> >> > cannot get the correct percents for the variable lsp. Any help
> would
> > >> >> > be great.
> > >> >> > >
> > >> >> > > Thanks
> > >> >> > >
> > >> >> > > Jim Gorbet
> > >> >> > >
> > >> >> > > '{$STAMP BS2}
> > >> >> > > tcw var word
> > >> >> > > lft var word
> > >> >> > > rrt var word
> > >> >> > > lrt var word
> > >> >> > > rft var word
> > >> >> > > lsp var word
> > >> >> > > lt var word
> > >> >> > >
> > >> >> > > lft=1111
> > >> >> > > rft=1122
> > >> >> > > rrt=1203
> > >> >> > > lrt=1384
> > >> >> > >
> > >> >> > > tcw=lft+rft+rrt+lrt 'total
> > >> >> > >
> > >> >> > > pause 100
> > >> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> > >> >> > > debug cr
> > >> >> > >
> > >> >> > >
> > >> >> > > tcw=lft+rft+rrt+lrt
> > >> >> > >
> > >> >> > >
> > >> >> > > lt=lft+lrt
> > >> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
> > >> >> > >
> > >> >> > >
> > >> >> > > lsp = (lt*100)/tcw
> > >> >> > > debug "percent:", dec lsp,cr '????????????????????????????????
> > >> >> > >
> > >> >> > >
> > >> >> > >
> > >> >> > >
> > >> >> > > Do You Yahoo!?
> > >> >> > > Yahoo! Health - your guide to health and wellness
> > >> >> > >
> > >> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
> > >> >> >
> > >> >> >
> > >> >> > To UNSUBSCRIBE, just send mail to:
> > >> >> > basicstamps-unsubscribe@yahoogroups.com
> > >> >> > from the same email address that you subscribed. Text in the
> Subject
> > > and
> > >> >> Body of the message will be ignored.
> > >> >> >
> > >> >> >
> > >> >> > Your use of Yahoo! Groups is subject to
> > >> > http://docs.yahoo.com/info/terms/
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> > Do You Yahoo!?
> > >> >> > Yahoo! Health - your guide to health and wellness
> > >> >> >
> > >> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
> > >> >> >
> > >> >> >
> > >> >> > To UNSUBSCRIBE, just send mail to:
> > >> >> > basicstamps-unsubscribe@yahoogroups.com
> > >> >> > from the same email address that you subscribed. Text in the
> Subject
> > >> > and
> > >> >> Body of the message will be ignored.
> > >> >> >
> > >> >> >
> > >> >> > Your use of Yahoo! Groups is subject to
> > >> > http://docs.yahoo.com/info/terms/
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >>
> > >> >>
> > >> >>
> > >> >> To UNSUBSCRIBE, just send mail to:
> > >> >> basicstamps-unsubscribe@yahoogroups.com
> > >> >> from the same email address that you subscribed. Text in the
> Subject
> > > and
> > >> > Body of the message will be ignored.
> > >> >>
> > >> >>
> > >> >> Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >> >>
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >> > To UNSUBSCRIBE, just send mail to:
> > >> > basicstamps-unsubscribe@yahoogroups.com
> > >> > from the same email address that you subscribed. Text in the Subject
> > > and
> > >> > Body of the message will be ignored.
> > >> >
> > >> >
> > >> > Your use of Yahoo! Groups is subject to
> > > http://docs.yahoo.com/info/terms/
> > >> >
> > >> >
> > >>
> > >> To UNSUBSCRIBE, just send mail to:
> > >> basicstamps-unsubscribe@yahoogroups.com
> > >> from the same email address that you subscribed. Text in the Subject
> and
> > > Body of the message will be ignored.
> > >>
> > >>
> > >> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >>
> > >>
> > >
> > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the Subject
> and
> > > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
I'll pick up some parts and get on it as soon as I get the lawn done.
(GROAN!!)
I live in western Washington and clear days like today are the exception.
Thanks again!
Don
Original Message
From: "Peter W Houlihan" <phouliha@m...>
To: <basicstamps@yahoogroups.com>
Sent: Wednesday, May 08, 2002 8:03 AM
Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
> Don,
>
> High Tech Garage website has tutorial for interfacing 24LC16 (2K) and
> 24LC256(32K) serial eeproms.
>
> http://www.high-techgarage.com/tutorial/i2c.php
>
> Also Peter Anderson's site has example for 24LC32 (4K, cascadable to
> 32K) at:
>
> http://www.phanderson.com/stamp/i2c/24lc32.html
>
> All these examples are minimum interface examples.
>
> Best, Pete.
>
> ________________________________________________________
> Peter W. Houlihan, (413) 538-3091, phouliha@m...
> Mellon Postdoctoral Fellow, Center for Environmental Literacy
> Mount Holyoke College, South Hadley, MA 01075
>
> Visit our website at:
> http://www.mtholyoke.edu/proj/cel/index.html
> ________________________________________________________
>
>
> On Wed, 8 May 2002, Don wrote:
>
> > Date: Wed, 8 May 2002 07:21:34 -0700
> > From: Don <renegade.engineer@v...>
> > Reply-To: basicstamps@yahoogroups.com
> > To: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >
> > Again, Thanks very much for your help on this Ben!! But I'm still a
bit
> > confused here. I guess I should have prefaced my original question
better.
> > I read the Parallax App Note that describes how to connect an external
93C66
> > or 93LC66 512-byte EEPROM to the BS1. It looks pretty straight forward,
and
> > pictures REALLY help.
> > I need to do something similar, except that I need to hook up to a
BS2,
> > BS2e, or higher, and need on the order of 5-KBytes EEPROM or more. Your
> > schematic is very good (did you use SmartDraw to create it?), but I must
> > admit I need something a bit less involved. That's why I was hoping
someone
> > might have a reference to a project or BS2, etc., oriented App Note that
can
> > get me there with the least room for error. I'm trying to learn
electronics
> > in steps, and all the extra equipment in your schematic throws me for a
> > loop. Can you or anyone help?
> > Thanks
> > Don
> >
Original Message
> > From: "Ben Lennard" <postmaster@s...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Wednesday, May 08, 2002 1:48 AM
> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >
> >
> > > Re addressing external RAM:
> > >
> > > I've thrown together a quick idea.
> > >
> > > go to http://www.lennard.net.nz/tests/Stampcct.JPG
> > >
> > > It shows how it should all fit together. I'm just using shift
registers
> > to
> > > create the buses. You'll notice I'm also using a 4094 as a "control
bus"
> > (I
> > > originally thought of using a 74LS152).
> > > To determine which devices you want enabled, and whether they are
> > listening
> > > or talking, send an 8 bit code to the 4094. You can add more devices
by
> > > added a 2nd 4094, and sending a 16 bit code, same with the address bus
> > > (address more RAM by adding a 2nd 4094 and therefore having a 16 bit
bus)
> > >
> > > Interested to see what people think, and if you have any other ideas.
> > >
> > > I can include more detail of the bidirectional data bus with the
> > > 4094/74LS165 later on.
> > >
> > > cheers,
> > >
> > > Ben, Wellington, New Zealand.
> > >
> > > --
> > > http://www.lennard.net.nz/
> > > Ben Lennard, NCEE, Dip EE
> > >
> > > Web Hosting and Electronics R&D
> > >
> > > Hm: +64 4 972 7567
> > > Mb: +64 21 536 627
> > > 87 Spencer Street
> > > Crofton Downs
> > > Wellington
> > > New Zealand
> > >
> > > "To the optimist, the glass is half full. To the pessimist, the glass
is
> > > half empty. To the engineer, the glass is twice as big as it needs to
> > be."
> > >
> > > No animals were harmed in the transmission of this email, although the
> > > Dog next door is living on borrowed time, let me tell you! Those of
you
> > > with an overwhelming fear of the unknown will be gratified to learn
that
> > > there is no hidden message revealed by reading this warning backwards.
> > >
> > >
> > >
> > >
> > >
> > > >From: "Don" <renegade.engineer@v...>
> > > >To: <basicstamps@yahoogroups.com>
> > > >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >Date: Wed, 8 May 2002 6:24 PM
> > > >
> > >
> > > > Thanks Ben, but most of that just went WAY over my head. I'm an
> > Aero
> > > > engineer trying to learn Stamps and electronics as a hobby.
> > > > Could you put that in english for me, or perhaps direct me to some
> > > > references that I can peruse. I have a fair handle on this stuff
for a
> > > > novice
> > > > (I got a B in Circuits 101), but I'm still learning.
> > > > Thanks
> > > > Don
> > > >
Original Message
> > > > From: "Ben Lennard" <postmaster@s...>
> > > > To: <basicstamps@yahoogroups.com>
> > > > Sent: Tuesday, May 07, 2002 11:23 PM
> > > > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >
> > > >
> > > >> It is not difficult to add an external RAM chip.
> > > >> You need a R/W pin, an Enable pin, data and address pins (if using
> > > >> Parallel data bus).
> > > >> If an 8 bit data and address is used, that would be 16 I/O pins
used,
> > so
> > > >> just make a bidirectional serial to parallel converter using a
> > > >> 4094/74165 circuit, which means only 11 pins would be needed (5 for
the
> > > >> bidirectional bus, 4 for the address bus, 2 control lines).
> > > >>
> > > >> All other 8 bit devices would hang off the same bidirectional data
bus
> > > >> and address bus. If you aren't addressing the RAM chip, just hold
it's
> > > >> Enable pin high.
> > > >>
> > > >> Instead of the 2 control lines, you could hang a 74152 off 4 ports
> > > >> (meaning 13 ports in use altogether) to use as your chip enable
> > > >> circuit. That's a 4 bit in, one of 16 out. So, you can control 16
> > > >> devices, all plugged in to the same data and address bus.
> > > >>
> > > >> They can be input devices or output devices.
> > > >>
> > > >> --
> > > >> http://www.lennard.net.nz/
> > > >> Ben Lennard, NCEE, Dip EE
> > > >>
> > > >> Web Hosting and Electronics R&D
> > > >>
> > > >> Hm: +64 4 972 7567
> > > >> Mb: +64 21 536 627
> > > >> 87 Spencer Street
> > > >> Crofton Downs
> > > >> Wellington
> > > >> New Zealand
> > > >>
> > > >> "To the optimist, the glass is half full. To the pessimist, the
glass
> > is
> > > >> half empty. To the engineer, the glass is twice as big as it needs
to
> > > > be."
> > > >>
> > > >> No animals were harmed in the transmission of this email, although
the
> > > >> Dog next door is living on borrowed time, let me tell you! Those
of
> > you
> > > >> with an overwhelming fear of the unknown will be gratified to learn
> > that
> > > >> there is no hidden message revealed by reading this warning
backwards.
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> >From: "Robert Staph" <rstaph@a...>
> > > >> >To: <basicstamps@yahoogroups.com>
> > > >> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >> >Date: Wed, 8 May 2002 4:37 PM
> > > >> >
> > > >>
> > > >> > Thats the second biggest problem I've had with the stamp, very
> > limited
> > > > RAM.
> > > >> > Doesn't someone make an add-on I2C SRAM module for the Stamp?
This
> > is
> > > > all I
> > > >> > can rememeber as far as add-on modules with any RAM:
> > > >> > http://www.high-techgarage.com/products/timekeeper.php
> > > >> >
> > > >> > Maybe one of Al Williams pak-** chips has some extra ram
available.
> > > >> >
> > > >> > Also I believe you can use the scratch pad ram without much more
work
> > > > (sx,
> > > >> > e, and plus only I think).
> > > >> >
> > > >> > swapping out values with an external device takes some real
thought.
> > > > There
> > > >> > are several times where I thought I had all the values I needed,
but
> > > > ended
> > > >> > up missing one so make sure to write it all down [noparse]:)[/noparse]. I've had to
add
> > > >> > 150-200 bytes of compiled code just to deal with value swapping.
But
> > > > its
> > > >> > still better than burning up some EEPROM locations by using them
as
> > RAM.
> > > >> > I've also found its cheaper just to drop the cash on a more
advanced
> > > > micro
> > > >> > when the going gets too tough, like an AVR or a Rabbit RCM(My
> > favorite).
> > > >> >
> > > >> > -Rob
> > > >> >
> > > >> >
Original Message
> > > >> > From: "Don" <renegade.engineer@v...>
> > > >> > To: <basicstamps@yahoogroups.com>
> > > >> > Sent: Tuesday, May 07, 2002 10:13 PM
> > > >> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >> >
> > > >> >
> > > >> >> Tell me about it. I realized today I may need up 5K or more
of
> > > >> > variable
> > > >> >> RAM, unless I figure a better way to handle my data.
> > > >> >> Don
> > > >> >>
Original Message
> > > >> >> From: "Jim Gorbet" <jimgorbet@y...>
> > > >> >> To: <basicstamps@yahoogroups.com>
> > > >> >> Sent: Tuesday, May 07, 2002 4:44 PM
> > > >> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >> >>
> > > >> >>
> > > >> >> >
> > > >> >> > Don,
> > > >> >> > Leroy and I are working together trying to measure weights
and
> > > > percents
> > > >> >> of a race cars tire, Such as lf=left front, rr=right rear. Tracy
> > helped
> > > >> >> Leroy with the original math and I believe I became confused. I
> > > > hopeTracy
> > > >> >> didnt think I stole his code. by the way Tracys code ran great
but
> > know
> > > > Im
> > > >> >> stuck because the bs 2 doesnt have enough variable space to do
what
> > is
> > > >> >> needed.
> > > >> >> > Keep on stamping
> > > >> >> > Jim Gorbet
> > > >> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim
> > > >> >> > I'm assuming that you tried Tracy Allen's math solution, like
I
> > > >> >> > did, and found that it works perfectly.
> > > >> >> > I just have one question: what are you comparing? What do
those
> > > >> >> > variables (tcw, lrt, rrt, etc.) stand for?
> > > >> >> > Just curious!
> > > >> >> > Don
> > > >> >> >
> > > >> >> >
> > > >> >> > --- In basicstamps@y..., Jim Gorbet wrote:
> > > >> >> > >
> > > >> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below runs great
but I
> > > >> >> > cannot get the correct percents for the variable lsp. Any help
> > would
> > > >> >> > be great.
> > > >> >> > >
> > > >> >> > > Thanks
> > > >> >> > >
> > > >> >> > > Jim Gorbet
> > > >> >> > >
> > > >> >> > > '{$STAMP BS2}
> > > >> >> > > tcw var word
> > > >> >> > > lft var word
> > > >> >> > > rrt var word
> > > >> >> > > lrt var word
> > > >> >> > > rft var word
> > > >> >> > > lsp var word
> > > >> >> > > lt var word
> > > >> >> > >
> > > >> >> > > lft=1111
> > > >> >> > > rft=1122
> > > >> >> > > rrt=1203
> > > >> >> > > lrt=1384
> > > >> >> > >
> > > >> >> > > tcw=lft+rft+rrt+lrt 'total
> > > >> >> > >
> > > >> >> > > pause 100
> > > >> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr
> > > >> >> > > debug cr
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > tcw=lft+rft+rrt+lrt
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > lt=lft+lrt
> > > >> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > lsp = (lt*100)/tcw
> > > >> >> > > debug "percent:", dec lsp,cr
'????????????????????????????????
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > Do You Yahoo!?
> > > >> >> > > Yahoo! Health - your guide to health and wellness
> > > >> >> > >
> > > >> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
> > > >> >> >
> > > >> >> >
> > > >> >> > To UNSUBSCRIBE, just send mail to:
> > > >> >> > basicstamps-unsubscribe@yahoogroups.com
> > > >> >> > from the same email address that you subscribed. Text in the
> > Subject
> > > > and
> > > >> >> Body of the message will be ignored.
> > > >> >> >
> > > >> >> >
> > > >> >> > Your use of Yahoo! Groups is subject to
> > > >> > http://docs.yahoo.com/info/terms/
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> > Do You Yahoo!?
> > > >> >> > Yahoo! Health - your guide to health and wellness
> > > >> >> >
> > > >> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
> > > >> >> >
> > > >> >> >
> > > >> >> > To UNSUBSCRIBE, just send mail to:
> > > >> >> > basicstamps-unsubscribe@yahoogroups.com
> > > >> >> > from the same email address that you subscribed. Text in the
> > Subject
> > > >> > and
> > > >> >> Body of the message will be ignored.
> > > >> >> >
> > > >> >> >
> > > >> >> > Your use of Yahoo! Groups is subject to
> > > >> > http://docs.yahoo.com/info/terms/
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >> To UNSUBSCRIBE, just send mail to:
> > > >> >> basicstamps-unsubscribe@yahoogroups.com
> > > >> >> from the same email address that you subscribed. Text in the
> > Subject
> > > > and
> > > >> > Body of the message will be ignored.
> > > >> >>
> > > >> >>
> > > >> >> Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >
> > > >> >
> > > >> > To UNSUBSCRIBE, just send mail to:
> > > >> > basicstamps-unsubscribe@yahoogroups.com
> > > >> > from the same email address that you subscribed. Text in the
Subject
> > > > and
> > > >> > Body of the message will be ignored.
> > > >> >
> > > >> >
> > > >> > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >> >
> > > >> >
> > > >>
> > > >> To UNSUBSCRIBE, just send mail to:
> > > >> basicstamps-unsubscribe@yahoogroups.com
> > > >> from the same email address that you subscribed. Text in the
Subject
> > and
> > > > Body of the message will be ignored.
> > > >>
> > > >>
> > > >> Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text in the
Subject
> > and
> > > > Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in the Subject
and
> > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> >
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> > from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
cell once every 10 seconds and the cell "wears out" in a 1,000,000
cycles, you can run for 115 days (continuous).
Just something to think about.
The PAK-IV has a small amount of RAM. The PAK-I, II, and IX all have
memory for floating point numbers that you can also store arbitrary
things in. They also give you floating point math which makes your
percent calculations easy. This month's project of the month shows a
PAK-IX doing a PID controller. http://www.al-williams.com/awce/som.htm
Al Williams
AWC
* 8 channels of PWM
http://www.al-williams.com/awce/pak5.htm
>
Original Message
> From: Peter W Houlihan [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=zOHXIBxx-O3M0fCdPcFqBuEKk4-xq3AbG_WfO5gDvPUq8TSTq18n8U-7B-17SQBx9TUisSE1WTF9a5WN]phouliha@m...[/url
> Sent: Wednesday, May 08, 2002 10:03 AM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
>
>
>
> Don,
>
> High Tech Garage website has tutorial for interfacing 24LC16 (2K) and
> 24LC256(32K) serial eeproms.
>
> http://www.high-techgarage.com/tutorial/i2c.php
>
> Also Peter Anderson's site has example for 24LC32 (4K, cascadable to
> 32K) at:
>
> http://www.phanderson.com/stamp/i2c/24lc32.html
>
> All these examples are minimum interface examples.
>
> Best, Pete.
>
> ________________________________________________________
> Peter W. Houlihan, (413) 538-3091, phouliha@m...
> Mellon Postdoctoral Fellow, Center for Environmental Literacy
> Mount Holyoke College, South Hadley, MA 01075
>
> Visit our website at:
> http://www.mtholyoke.edu/proj/cel/index.html
> ________________________________________________________
>
>
> On Wed, 8 May 2002, Don wrote:
>
> > Date: Wed, 8 May 2002 07:21:34 -0700
> > From: Don <renegade.engineer@v...>
> > Reply-To: basicstamps@yahoogroups.com
> > To: basicstamps@yahoogroups.com
> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >
> > Again, Thanks very much for your help on this Ben!!
> But I'm still
> > a bit confused here. I guess I should have prefaced my original
> > question better. I read the Parallax App Note that describes how to
> > connect an external 93C66 or 93LC66 512-byte EEPROM to the BS1. It
> > looks pretty straight forward, and pictures REALLY help.
> > I need to do something similar, except that I need to
> hook up to a
> > BS2, BS2e, or higher, and need on the order of 5-KBytes EEPROM or
> > more. Your schematic is very good (did you use SmartDraw to create
> > it?), but I must admit I need something a bit less
> involved. That's
> > why I was hoping someone might have a reference to a
> project or BS2,
> > etc., oriented App Note that can get me there with the
> least room for
> > error. I'm trying to learn electronics in steps, and all the extra
> > equipment in your schematic throws me for a loop. Can you
> or anyone
> > help? Thanks Don
> >
Original Message
> > From: "Ben Lennard" <postmaster@s...>
> > To: <basicstamps@yahoogroups.com>
> > Sent: Wednesday, May 08, 2002 1:48 AM
> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> >
> >
> > > Re addressing external RAM:
> > >
> > > I've thrown together a quick idea.
> > >
> > > go to http://www.lennard.net.nz/tests/Stampcct.JPG
> > >
> > > It shows how it should all fit together. I'm just using shift
> > > registers
> > to
> > > create the buses. You'll notice I'm also using a 4094 as
> a "control
> > > bus"
> > (I
> > > originally thought of using a 74LS152).
> > > To determine which devices you want enabled, and whether they are
> > listening
> > > or talking, send an 8 bit code to the 4094. You can add more
> > > devices by added a 2nd 4094, and sending a 16 bit code, same with
> > > the address bus (address more RAM by adding a 2nd 4094
> and therefore
> > > having a 16 bit bus)
> > >
> > > Interested to see what people think, and if you have any other
> > > ideas.
> > >
> > > I can include more detail of the bidirectional data bus with the
> > > 4094/74LS165 later on.
> > >
> > > cheers,
> > >
> > > Ben, Wellington, New Zealand.
> > >
> > > --
> > > http://www.lennard.net.nz/
> > > Ben Lennard, NCEE, Dip EE
> > >
> > > Web Hosting and Electronics R&D
> > >
> > > Hm: +64 4 972 7567
> > > Mb: +64 21 536 627
> > > 87 Spencer Street
> > > Crofton Downs
> > > Wellington
> > > New Zealand
> > >
> > > "To the optimist, the glass is half full. To the pessimist, the
> > > glass is half empty. To the engineer, the glass is twice
> as big as
> > > it needs to
> > be."
> > >
> > > No animals were harmed in the transmission of this email,
> although
> > > the Dog next door is living on borrowed time, let me tell you!
> > > Those of you with an overwhelming fear of the unknown will be
> > > gratified to learn that there is no hidden message revealed by
> > > reading this warning backwards.
> > >
> > >
> > >
> > >
> > >
> > > >From: "Don" <renegade.engineer@v...>
> > > >To: <basicstamps@yahoogroups.com>
> > > >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >Date: Wed, 8 May 2002 6:24 PM
> > > >
> > >
> > > > Thanks Ben, but most of that just went WAY over my
> head. I'm
> > > > an
> > Aero
> > > > engineer trying to learn Stamps and electronics as a
> hobby. Could
> > > > you put that in english for me, or perhaps direct me to some
> > > > references that I can peruse. I have a fair handle on
> this stuff
> > > > for a novice (I got a B in Circuits 101), but I'm still
> learning.
> > > > Thanks
> > > > Don
> > > >
Original Message
> > > > From: "Ben Lennard" <postmaster@s...>
> > > > To: <basicstamps@yahoogroups.com>
> > > > Sent: Tuesday, May 07, 2002 11:23 PM
> > > > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >
> > > >
> > > >> It is not difficult to add an external RAM chip.
> > > >> You need a R/W pin, an Enable pin, data and address pins (if
> > > >> using Parallel data bus). If an 8 bit data and address
> is used,
> > > >> that would be 16 I/O pins used,
> > so
> > > >> just make a bidirectional serial to parallel converter using a
> > > >> 4094/74165 circuit, which means only 11 pins would be
> needed (5
> > > >> for the bidirectional bus, 4 for the address bus, 2 control
> > > >> lines).
> > > >>
> > > >> All other 8 bit devices would hang off the same bidirectional
> > > >> data bus and address bus. If you aren't addressing
> the RAM chip,
> > > >> just hold it's Enable pin high.
> > > >>
> > > >> Instead of the 2 control lines, you could hang a 74152 off 4
> > > >> ports (meaning 13 ports in use altogether) to use as your chip
> > > >> enable circuit. That's a 4 bit in, one of 16 out.
> So, you can
> > > >> control 16 devices, all plugged in to the same data
> and address
> > > >> bus.
> > > >>
> > > >> They can be input devices or output devices.
> > > >>
> > > >> --
> > > >> http://www.lennard.net.nz/
> > > >> Ben Lennard, NCEE, Dip EE
> > > >>
> > > >> Web Hosting and Electronics R&D
> > > >>
> > > >> Hm: +64 4 972 7567
> > > >> Mb: +64 21 536 627
> > > >> 87 Spencer Street
> > > >> Crofton Downs
> > > >> Wellington
> > > >> New Zealand
> > > >>
> > > >> "To the optimist, the glass is half full. To the
> pessimist, the
> > > >> glass
> > is
> > > >> half empty. To the engineer, the glass is twice as big as it
> > > >> needs to
> > > > be."
> > > >>
> > > >> No animals were harmed in the transmission of this email,
> > > >> although the Dog next door is living on borrowed time, let me
> > > >> tell you! Those of
> > you
> > > >> with an overwhelming fear of the unknown will be gratified to
> > > >> learn
> > that
> > > >> there is no hidden message revealed by reading this warning
> > > >> backwards.
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> >From: "Robert Staph" <rstaph@a...>
> > > >> >To: <basicstamps@yahoogroups.com>
> > > >> >Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >> >Date: Wed, 8 May 2002 4:37 PM
> > > >> >
> > > >>
> > > >> > Thats the second biggest problem I've had with the
> stamp, very
> > limited
> > > > RAM.
> > > >> > Doesn't someone make an add-on I2C SRAM module for
> the Stamp?
> > > >> > This
> > is
> > > > all I
> > > >> > can rememeber as far as add-on modules with any RAM:
> > > >> > http://www.high-techgarage.com/products/timekeeper.php
> > > >> >
> > > >> > Maybe one of Al Williams pak-** chips has some extra ram
> > > >> > available.
> > > >> >
> > > >> > Also I believe you can use the scratch pad ram without much
> > > >> > more work
> > > > (sx,
> > > >> > e, and plus only I think).
> > > >> >
> > > >> > swapping out values with an external device takes some real
> > > >> > thought.
> > > > There
> > > >> > are several times where I thought I had all the values I
> > > >> > needed, but
> > > > ended
> > > >> > up missing one so make sure to write it all down [noparse]:)[/noparse].
> I've had
> > > >> > to add 150-200 bytes of compiled code just to deal
> with value
> > > >> > swapping. But
> > > > its
> > > >> > still better than burning up some EEPROM locations by using
> > > >> > them as
> > RAM.
> > > >> > I've also found its cheaper just to drop the cash on a more
> > > >> > advanced
> > > > micro
> > > >> > when the going gets too tough, like an AVR or a Rabbit RCM(My
> > favorite).
> > > >> >
> > > >> > -Rob
> > > >> >
> > > >> >
Original Message
> > > >> > From: "Don" <renegade.engineer@v...>
> > > >> > To: <basicstamps@yahoogroups.com>
> > > >> > Sent: Tuesday, May 07, 2002 10:13 PM
> > > >> > Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >> >
> > > >> >
> > > >> >> Tell me about it. I realized today I may need up 5K or
> > > >> >> more of
> > > >> > variable
> > > >> >> RAM, unless I figure a better way to handle my data. Don
> > > >> >>
Original Message
> > > >> >> From: "Jim Gorbet" <jimgorbet@y...>
> > > >> >> To: <basicstamps@yahoogroups.com>
> > > >> >> Sent: Tuesday, May 07, 2002 4:44 PM
> > > >> >> Subject: Re: [noparse][[/noparse]basicstamps] Re: Math & percent
> > > >> >>
> > > >> >>
> > > >> >> >
> > > >> >> > Don,
> > > >> >> > Leroy and I are working together trying to
> measure weights and
> > > > percents
> > > >> >> of a race cars tire, Such as lf=left front,
> rr=right rear. Tracy
> > helped
> > > >> >> Leroy with the original math and I believe I became
> confused. I
> > > > hopeTracy
> > > >> >> didnt think I stole his code. by the way Tracys
> code ran great but
> > know
> > > > Im
> > > >> >> stuck because the bs 2 doesnt have enough variable
> space to do what
> > is
> > > >> >> needed.
> > > >> >> > Keep on stamping
> > > >> >> > Jim Gorbet
> > > >> >> > mtlhead7 <renegade.engineer@v...> wrote: Jim I'm
> > > >> >> > assuming that you tried Tracy Allen's math
> solution, like I
> > > >> >> > did, and found that it works perfectly.
> > > >> >> > I just have one question: what are you comparing?
> What do those
> > > >> >> > variables (tcw, lrt, rrt, etc.) stand for?
> > > >> >> > Just curious!
> > > >> >> > Don
> > > >> >> >
> > > >> >> >
> > > >> >> > --- In basicstamps@y..., Jim Gorbet wrote:
> > > >> >> > >
> > > >> >> > > Help Im stuck!!!!!!!!!!!!!!! The program below
> runs great but I
> > > >> >> > cannot get the correct percents for the variable
> lsp. Any help
> > would
> > > >> >> > be great.
> > > >> >> > >
> > > >> >> > > Thanks
> > > >> >> > >
> > > >> >> > > Jim Gorbet
> > > >> >> > >
> > > >> >> > > '{$STAMP BS2}
> > > >> >> > > tcw var word
> > > >> >> > > lft var word
> > > >> >> > > rrt var word
> > > >> >> > > lrt var word
> > > >> >> > > rft var word
> > > >> >> > > lsp var word
> > > >> >> > > lt var word
> > > >> >> > >
> > > >> >> > > lft=1111
> > > >> >> > > rft=1122
> > > >> >> > > rrt=1203
> > > >> >> > > lrt=1384
> > > >> >> > >
> > > >> >> > > tcw=lft+rft+rrt+lrt 'total
> > > >> >> > >
> > > >> >> > > pause 100
> > > >> >> > > debug "Total: ", dec tcw/10,".",dec1 tcw,cr debug cr
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > tcw=lft+rft+rrt+lrt
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > lt=lft+lrt
> > > >> >> > > Debug "total:", dec lt/10,".",dec1 lt,cr
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > lsp = (lt*100)/tcw
> > > >> >> > > debug "percent:", dec lsp,cr
> '????????????????????????????????
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > >
> > > >> >> > > Do You Yahoo!?
> > > >> >> > > Yahoo! Health - your guide to health and wellness
> > > >> >> > >
> > > >> >> > > [noparse][[/noparse]Non-text portions of this message have been removed]
> > > >> >> >
> > > >> >> >
> > > >> >> > To UNSUBSCRIBE, just send mail to:
> > > >> >> > basicstamps-unsubscribe@yahoogroups.com
> > > >> >> > from the same email address that you subscribed.
> Text in the
> > Subject
> > > > and
> > > >> >> Body of the message will be ignored.
> > > >> >> >
> > > >> >> >
> > > >> >> > Your use of Yahoo! Groups is subject to
> > > >> > http://docs.yahoo.com/info/terms/
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >> > Do You Yahoo!?
> > > >> >> > Yahoo! Health - your guide to health and wellness
> > > >> >> >
> > > >> >> > [noparse][[/noparse]Non-text portions of this message have been removed]
> > > >> >> >
> > > >> >> >
> > > >> >> > To UNSUBSCRIBE, just send mail to:
> > > >> >> > basicstamps-unsubscribe@yahoogroups.com
> > > >> >> > from the same email address that you subscribed.
> Text in the
> > Subject
> > > >> > and
> > > >> >> Body of the message will be ignored.
> > > >> >> >
> > > >> >> >
> > > >> >> > Your use of Yahoo! Groups is subject to
> > > >> > http://docs.yahoo.com/info/terms/
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >> To UNSUBSCRIBE, just send mail to:
> > > >> >> basicstamps-unsubscribe@yahoogroups.com
> > > >> >> from the same email address that you subscribed.
> Text in the
> > Subject
> > > > and
> > > >> > Body of the message will be ignored.
> > > >> >>
> > > >> >>
> > > >> >> Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >
> > > >> >
> > > >> > To UNSUBSCRIBE, just send mail to:
> > > >> > basicstamps-unsubscribe@yahoogroups.com
> > > >> > from the same email address that you subscribed.
> Text in the Subject
> > > > and
> > > >> > Body of the message will be ignored.
> > > >> >
> > > >> >
> > > >> > Your use of Yahoo! Groups is subject to
> > > > http://docs.yahoo.com/info/terms/
> > > >> >
> > > >> >
> > > >>
> > > >> To UNSUBSCRIBE, just send mail to:
> > > >> basicstamps-unsubscribe@yahoogroups.com
> > > >> from the same email address that you subscribed. Text
> in the Subject
> > and
> > > > Body of the message will be ignored.
> > > >>
> > > >>
> > > >> Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > > To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > > from the same email address that you subscribed. Text
> in the Subject
> > and
> > > > Body of the message will be ignored.
> > > >
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > >
> > > To UNSUBSCRIBE, just send mail to:
> > > basicstamps-unsubscribe@yahoogroups.com
> > > from the same email address that you subscribed. Text in
> the Subject and
> > Body of the message will be ignored.
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
>
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/