I wrote a quick script that utilizes the standard Firefly Firmata with an Arduino Uno to drive a stepper motor via manually pulsing. I have a small python script that puts out 1s and 0s (alternating) with each refresh of the timer. Through my testing, I am finding that there is a disconnect between the timer interval and the time it takes to execute the script. When I pulse 200 times for 1 ms each, it takes around ~10 seconds, but I am expecting it to only take .2 seconds. Is timer maybe not the correct tool for this application? Is there a better timing tool?
I know there is a piece of Firefly code that drives steppers specifically, and I have successfully gotten it to work.