hi all ,
am a mechatronics engineering student , am working on my graduation project , and i want to connect a shaft encoder to a gear fixed on DC motor , can anyone help me for the code that i can use to get the speed and the direction of rotation ,
thanks ...
And Google is not helping you? Post us an example of what you have found and what problems you are having with adapting that code to your project.
We may also need more details like what is the rest of the project around this gear - like how fast is the shaft spinning?
i got a code for the direction of rotation , but i just need a code for speed measurements , my project is an isokinetic excersing machine , i have a chain belt connect to gears we move the chain belt with my hands ( this machine is like a body building machine that use and electromagnetic force instead of wieghts ) . i hope that u got it , because this project no one can get the idea of it
Have a look at the pulseIn() function to measure the duration of the pulses. There are a lot of limitations to this function but it does measure the length of a pulse accurately.
For this application, you don't need to measure every pulse. You might get a good estimate of the speed by measuring just one of 100 and then let the other 99 go by without measuring their duration.
did u know someone called dr.za'er Abu-Hammour ??? he is our supervisor , and he told us if we dont got a linear relationship and measure the speed , we will not graduate , so all i need now a code for speed measurement for shaft encoder ... to GRADUATEEEE ...
did u know someone called dr.za'er Abu-Hammour ??? he is our supervisor , and he told us if we dont got a linear relationship and measure the speed , we will not graduate , so all i need now a code for speed measurement for shaft encoder ... to GRADUATEEEE ...
If I write the code I should be the person graduating.
...R