janisj
Newbie level 2
mouse phototransistor
Hello,
I have crisis of faith ..
It's seems that I'm missing something obvious only novice can miss
I have 2 PC USB rotary encoder mices. When the firts one is connected to USB and oscyloscope is connected to phototransistor left or right ping I see excelent curves. signal is changing from almoust 0 till +5.
I took other mouse and soldered wires to
- phototransistor middle pin (it goes to +5 in breadboard)
- phototransistor left pin (it goes to ground via 10K resistor, and right before resistor to PIC 18F452 RB5, TRISB.5=1)
- two wires to IR LED (and checked with camera that there is light in it)
I've connected everything, powered up, nothing is burning. Connected oscyloscope as with previous mouse (phototransistor left pin) and ... almous nothing. Something is going on, but on the level of milivolts.
Any ideas why phototransistor when connected to mouse native chip shows excelent signal and when directly to PIC port, made as input, show almoust nothing? I suspect that in that chip in mouse there is some sircuit which makes phototransistor happy.
Any help will be appreciated!
Hello,
I have crisis of faith ..
It's seems that I'm missing something obvious only novice can miss
I have 2 PC USB rotary encoder mices. When the firts one is connected to USB and oscyloscope is connected to phototransistor left or right ping I see excelent curves. signal is changing from almoust 0 till +5.
I took other mouse and soldered wires to
- phototransistor middle pin (it goes to +5 in breadboard)
- phototransistor left pin (it goes to ground via 10K resistor, and right before resistor to PIC 18F452 RB5, TRISB.5=1)
- two wires to IR LED (and checked with camera that there is light in it)
I've connected everything, powered up, nothing is burning. Connected oscyloscope as with previous mouse (phototransistor left pin) and ... almous nothing. Something is going on, but on the level of milivolts.
Any ideas why phototransistor when connected to mouse native chip shows excelent signal and when directly to PIC port, made as input, show almoust nothing? I suspect that in that chip in mouse there is some sircuit which makes phototransistor happy.
Any help will be appreciated!