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?
I want to control speed of DC motor with usb. from google i found that i can use 18f4550/18f2550 to communicate with usb port and create pwm output from ccp pin.
i'm new with pic programming, still...