On 9 June 2012 18:00, Brian May <[email protected]> wrote: > So now I have the encoder using the hostmot driver and also the Z Pulse > being read by the encoder component. I turned the spindle on at 120RPM and > expected to read the counter of the encoder component counting 2 counts > every second. It did not, It is not counting reliably. Only at like 4RPM > (turning by hand) does it count reliably..
Don't worry about that, it is because the GPIO pins only get updated once a millisecond by default, so you will miss lots of pulses. You can add the gpio_read and gpio_write functions to a base-thread, but I really don't think it is worth the bother. The question is, do you see the index change state? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
