Acheiving Real Time Response
JTay
Posts: 3
Hi,
I am a new user of basic stamp. I'm on a robotic project that needs me to control a servo motor using the encoder. The motor has to turn in exactly the same amount as the encoder, and the encoder is controlled by the user. I can achieve this using basic stamp but the response is a little slow; the motor started turning just a bit later after the user turns the encoder. Is there a way to obtain real-time response using basic stamp, or something close to real time? i would like to ask wat is the limit on the response speed of basic stamp, say for the latest 2px.
Thank you.
I am a new user of basic stamp. I'm on a robotic project that needs me to control a servo motor using the encoder. The motor has to turn in exactly the same amount as the encoder, and the encoder is controlled by the user. I can achieve this using basic stamp but the response is a little slow; the motor started turning just a bit later after the user turns the encoder. Is there a way to obtain real-time response using basic stamp, or something close to real time? i would like to ask wat is the limit on the response speed of basic stamp, say for the latest 2px.
Thank you.
Comments
For the Stamps, there is a spec sheet that you can download that lists the approx. # of instructions per second that the stamps will perform. The BS2 is ~4000, the Px is ~19,000. So you should see an increase of responsiveness. But for comparison, the Px uses an SX48 processor clocked at 32Mhz to give you the ~19,000 IPS. You could run the SX48 at 32MHz, and get 32 Mips. Or run it at 4MHz for 4Mips.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
You may consider this approach as well...
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com