Kristopher,
This looks very promising for me to detect mouse speed. I am working on a project for my wife who wants to have constant stitch length when sewing quilts. The faster she moves the quilt the longer the distance between stitches, and the slower she moves it the closer they are together. She wants equal distance no matter has fast she is moving the quilt. I figured out how to control the needle's stitch speed on the sewing machine with a digital potentiometer but need to transfer the speed at which she is moving the quilt to the arduino in order to control the needle speed (potentiometer).
What does the -1, 1, 2 mean in the output?
I've tried to calculate speed by sqrt(abs(x)_abs(x) + abs(y)_abs(y))
with x=data[1]
with y=data[2]
But the velocities are not matching how fast I am moving the mouse.
Any help would be appreciated. Thanks
-Allen
Kristopher,
This looks very promising for me to detect mouse speed. I am working on a project for my wife who wants to have constant stitch length when sewing quilts. The faster she moves the quilt the longer the distance between stitches, and the slower she moves it the closer they are together. She wants equal distance no matter has fast she is moving the quilt. I figured out how to control the needle's stitch speed on the sewing machine with a digital potentiometer but need to transfer the speed at which she is moving the quilt to the arduino in order to control the needle speed (potentiometer).
What does the -1, 1, 2 mean in the output?
I've tried to calculate speed by sqrt(abs(x)_abs(x) + abs(y)_abs(y))
with x=data[1]
with y=data[2]
But the velocities are not matching how fast I am moving the mouse.
Any help would be appreciated. Thanks
-Allen