Opto-interuptor (from mouse) to drive a PIC input line

Status
Not open for further replies.

Err404

Junior Member level 1
Joined
Mar 20, 2011
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
London
Activity points
1,429
What if any amplification/conditioning will I need before the PIC (PIC10f) to detect the broken-pulse from the slotted wheel in a mouse?
 

You should expect the sensor to be almost open circuit when shaded from IR and less than 0.6V when illuminated. All you need is a pull-up resistor (suggest 10K) to ensure the input can rise to supply voltage, it can then be connected directly to the PIC input pin. If interference is a problem, try a capacitor from the output to ground. I suggest a starting value of 1nF. Larger values might help but will also make the circuit less responsive to fast pulses.

Brian.
 
Reactions: Err404

    Err404

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…