|
Turn The Screws! Open your eyes, look in front, look at the back, look at any angle and you will see something that is an engineer's creation. Engineers have been making things possible that others could only imagine. It perfectly makes sense to have a common place for engineers from around the world where they can share ideas, innovate, & help each other. Engineers are eternal, with the younger at 62 & the youngest at 17, the CEan gang consists of working professionals, students, entrepreneurs, CEOs, professors, geeks & nerds. Need we say more? Click Here To Join The Gang! |
![]() |
|
CE - Apprentice
![]() ![]()
I'm a Crazy Electrical Engineer
Join Date: 24th June 2008
Posts: 15
|
I'm not sure exactly how to interpret encoder data from a motor going into the PIC16F877. From the data sheet it looks like there is a channel A and B that generate square pulses that are 90 degrees out of phase with each other. I think they're out of phase so you can determine the direction of rotation. There is also a channel 'I' but I'm not sure what that does. It says it's TTL compatible so I think I can directly feed it into the PIC on a pin configured for input. Then do I periodically just count how many pulses I get in a given time period? It would be nice if I could get this process to run in the background because it seems like it would prevent the PIC from handling other tasks for a long time while it counts pulses. On the data sheet it says 512 lines per revolution. Is that the same thing as 512 pulses per revolution? Here is a link to the data sheet for the encoder I plan on using: http://www.micromo.com/uploadpk/IE2-512_MME.pdf It's the IE2-512. Thanks for any programming tips or suggestions on how I go about doing this.
|
|
|
|
| Sponsored links | |
|
|
|
| Sponsored links | |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Contact Us - Home - Impressum | Impressum - Archive |