i use 8 slot encoder.
after googling few minutes. i add this code into usbdemo
COUNT PORTA.2,100,speed
speed = speed * 10 * 60 / 8
rpm[0] = speed / 1000 // 10
rpm[1] =...
Type: Posts; User: dr_w; Keyword(s):
i use 8 slot encoder.
after googling few minutes. i add this code into usbdemo
COUNT PORTA.2,100,speed
speed = speed * 10 * 60 / 8
rpm[0] = speed / 1000 // 10
rpm[1] =...
i want to use usbdemo to count rpm of motor and display the rpm in computer. how to do that?