How to Conversion from BasicStamp *bs2 code to Propoller *spin code?
chenguanyann
Posts: 15
The is a sample code for basicstamp
FlexiForce_Simple.bs2
30056-FlexiforceDemo-v2.0.pdf
I use the sensor (Model: A201-1 "1-lb" not "25-lb") on propoller chip. How could I rewrite the program from *bs2 code to *spin code?
FlexiForce_Simple.bs2
30056-FlexiforceDemo-v2.0.pdf
I use the sensor (Model: A201-1 "1-lb" not "25-lb") on propoller chip. How could I rewrite the program from *bs2 code to *spin code?
Comments
I cheated a bit with the BS2_Functions object......
I have a question. When I get the RC time value, how can I calculate the "real" force value?
This is the website for the company that makes them.
It has a section indicating the ration between weight and resistance etc.
There are several ways of calculating it, from a simple "lookup" table to formulas.
I try the code to prpoller, but the display doesn't Time =XXX. It's look like Garbage value...
BaudRate=9600.
Okay I have re-done it without the calls to the BS2 functions object.
Remember I don't have the flexiforce sensor to play with so my object should work (no guarantees.....)
OK it's work, thank you.
No problem. ;-)