eh i feel dumb doing this but i need help finding out the info for this part:
So it just counts am i right?
I can see which side is the diode through the markings on top. How do i connect the photo diode on the other side? (it has 2 pins) should i like pull it high and then when ever the pathway is clear it connects the pulled high side to the PIC?
if(cPin == 0) setpixel (global_Y++,global_X++);
He'd have a hard time overwhelming the hardware timer on a PIC with a mechanical wheel and Opto encoder. Most of the PIC frequency counter projects, which work up to 40-50Mhz, use the hardware timer and prescaler at much higher frequencies than AtomSoft will ever see from his encoder wheel.Depends on if the timer is synchronous or not, depends on a lot of things actually, like how fast you need to spin the wheel, what resolution you want and the frequency of the pic (if it's synchronous)