Scaling RCTIME
statemachine
Posts: 24
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.
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.