gps79 / Amiga-Laser-Mouse-ADNS-9800

Other
10 stars 2 forks source link

Mouse response is very choppy and jumps all over the screen. #3

Open RMonaghan-Illuscio opened 2 years ago

RMonaghan-Illuscio commented 2 years ago

Hi!

Thanks for taking a shot at the ADNS-9800 Amiga Mouse project at PCBWay.. This hasn't worked for me at all. Several issues required me to make some adjustments. First, the delay in loading the firmware is too short. I changed line 93 in adns9800.c to "200". That worked well enough for ADNS-9800 to complete its firmware update, and a subsequent read of REG_Product_ID to be non-zero.

After flashing the board, Firmware appears to executing, srom is uploading and UART output works really well. However, the pointer on my Amiga is jumping all over the place, moves by itself, or moves in the opposite direction. I have tried to change delays, added more diagnostic text for SQUAL, etc.. Nothing appears to reveal what the problem is.

If I had to guess, something isn't correct when the i16DeltaX/i16DeltaY is converted into Quadrature Phases. (The debugging output seems to show that the ADNS-9800 is working properly.)

Suggestions? Also, what is the best set of components to be used? I followed the list on the Polish website. But several versions of components were suggested. I went with the 10K/0 ohm resistor combination.

Thanks! Promising work! bob

RMonaghan-Illuscio commented 2 years ago

I just read that two of the pins on the mouse cable have to be swapped. I used a set of ESD tweezers to push in the metal tab on the individual connectors, which allowed them to slide out. (the connections labeled "2" and "3"). Once the cable positions were swapped and pressed back in, the mouse worked perfectly.

It is strange that this is needed. I am curious to know if this is a software issue or hardware issue?

bob