On page 24 of Industrial Control there is a short program that scales some values.Could anyone comment on this,or point me to some notes on the Parallax site that goes into detail on this matter?Bry.
TempSet = TempSet / 30?
That was done simply to reduce the value received from RC time to within a range appropriate to the example being performed. RCTime provided a value way outside the range of a normal shower temperature.
Does this clear it up?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<i>Electronic Systems Technologies
Southern Illinois University Carbondale
Well, I'm just all confused, my page 26 is a blank page. Are in version 1.1 or the pdf on line? I'd take a stab, but would prefer to see it in context for a book I really haven't looked recently.
-MH
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<i>Electronic Systems Technologies
Southern Illinois University Carbondale
Ah, I see now. It's on 24 in the PDF I opened using the text page numbers instead of the pdf page numbers. Confusion clearing...
In that program, I was trying to have the BASIC Stamp mimic the response of a system. So the the output wasn't linear, but more of a 1st order type response. THe larger the difference, the more effect it would have. By using CurTemp = CurTemp - TempSet/5, the amount changed by curTemp would be affect by the size of TempSet. The value of 5 I think was more or less trial and error for the desired results.
I know we said we'd let the reader figure it out, but never really expected anyone to ask [noparse]:)[/noparse]
Yes,thank you,Martin.But I think I still need to do some homework on this matter.Part of the problem is me jumping around through all these various manuals for whatever looks interesting.Did you write StamPlot?
Comments
That was done simply to reduce the value received from RC time to within a range appropriate to the example being performed. RCTime provided a value way outside the range of a normal shower temperature.
Does this clear it up?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<i>Electronic Systems Technologies
Southern Illinois University Carbondale
Personal Links - Lot of BASIC Stamp info
and
SelmaWare Solutions
StampPlot Pro Version 3 Release 4
Graphical Data Acquisition for your Micro and Imagination!
Now allows additional controls to be added, or developed.
-MH
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<i>Electronic Systems Technologies
Southern Illinois University Carbondale
Personal Links - Lot of BASIC Stamp info
and
SelmaWare Solutions
StampPlot Pro Version 3 Release 4
Graphical Data Acquisition for your Micro and Imagination!
Now allows additional controls to be added, or developed.
In that program, I was trying to have the BASIC Stamp mimic the response of a system. So the the output wasn't linear, but more of a 1st order type response. THe larger the difference, the more effect it would have. By using CurTemp = CurTemp - TempSet/5, the amount changed by curTemp would be affect by the size of TempSet. The value of 5 I think was more or less trial and error for the desired results.
I know we said we'd let the reader figure it out, but never really expected anyone to ask [noparse]:)[/noparse]
Hope this clears it up somewhat?
-Martin
Let me know if we can help more.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<i>Electronic Systems Technologies
Southern Illinois University Carbondale
Personal Links - Lot of BASIC Stamp info
and
SelmaWare Solutions
StampPlot Pro Version 3 Release 4
Graphical Data Acquisition for your Micro and Imagination!
Now allows additional controls to be added, or developed.