excution speed
nemesiswes
Posts: 17
Hey·I need to know how fast can the bs2 or the one on the board of education excute it's programming.
I·need it to do it atleast about every 1-10 milliseconds, maybe faster , and if it cant then could like a pc with a intel pentium 4 3Ghz 1.5G of ram do it.
The program is only about 5-10 lines not sure yet and it loops so it keeps going.
The program is for a motor·I am building, i have the circuit diagram made but just wasnt sure if the stamp could do it fast enough because it has to read a sensor and then if the sensor is on or high then it turns the electromagnet to high and then when the sensor is off, it turns the EM off
I·need it to do it atleast about every 1-10 milliseconds, maybe faster , and if it cant then could like a pc with a intel pentium 4 3Ghz 1.5G of ram do it.
The program is only about 5-10 lines not sure yet and it loops so it keeps going.
The program is for a motor·I am building, i have the circuit diagram made but just wasnt sure if the stamp could do it fast enough because it has to read a sensor and then if the sensor is on or high then it turns the electromagnet to high and then when the sensor is off, it turns the EM off
Comments
That's about 500 uSec per instruction, or 2 instructions per millisecond. So, then it depends on how difficult (how many instructions) what you want to do is.
Since you haven't told us what kind of motor this is, my guess is that this is either a brushless DC motor or a DC stepper motor that you are trying to operate. If I am correct there are better methods to control either/both of them.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There is no pleasure in having nothing to do;
the fun is in having lots to do, and not doing it!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support