Professional Documents
Culture Documents
Rana Basheer
LED
HDNS-2000
Optical Mouse
When I built ADAM-1 the most important
problem that I faced was estimating the
position of my robot. The cheap dc motor
that I used has no optical encoder attached
to it neither the gear system that I got
from a Tamiya toy allowed any possibility
of attaching an optical encoder to it.
Fig 9. Motorola Chip MC68HC908JB8 to
control HDNS-2000 Though I have been using Optical mouse
even before I started building ADAM-1 the
idea of using optical mouse for determining
the position never struck me. But when I
was faced with the same problem in ADAM-
2 I got the idea of using optical mouse.
Theory of Operation
Fig 10. Pin Layout of MC68HC908JB8
Optical mouse uses a tiny camera to take
approximately 1,500 pictures every
second. The pictures are taken by bouncing
light from a small, red light emitting diode
(LED) off the surface under the mouse,
onto a Complimentary Metal Oxide
Semiconductor (CMOS) camera. The CMOS
camera sends each image to a Digital
Signal Processor (DSP) for analysis. The
DSP, operating at 18 MIPS, is able to
detect the changing pattern in the images
between movements. Based on these
patterns, the DSP determines how far the
mouse has moved and sends the
corresponding coordinates to the external
microcontroller.
Quadratur
Pin Name PS/2 Mode
e Mode
PS/2 PS/2
1 PS2_C Interface Interface
Clock Clock
MODE/X Select PS/2
2 XA output
A Mode
Right Button
3 RB/XB XB output
Input
Middle Button
4 MB/YB YB output
Input
Left Button
5 LB/YA YA output
Input
LED control LED control
6 XY_LED
output output
3.3 VDC
7 Vdd3 3.3 VDC input
input
Internal Internal
8 REFB
Reference Reference
Oscillator Oscillator
9 OSC1
Input Input
10 GND Ground Ground
Oscillator Oscillator
11 OSC2
Output Output
12 GND Ground Ground
5 VDC
13 Vdd5 5 VDC input
input
5 VDC
14 Vdd5 % VDC input
input
15 NRESET NRESET NRESET
PS/2
PS/2
16 PS2_D Interface
Interface Data
Data
Table 1. Pin Description for HDNS-2000
The PCB also contains the MC68HC908JB8
HCMOS Microcontroller Unit from Motorola.
Fig 8 gives a more closer view of the
Motorola microcontroller while fig 9. gives
the pin out of this chip. Though HDNS-
2000 has the capability to provide a PS/2
interface the Motorola microcontroller helps
to provide a dual interface (PS/2 or USB).
At power up, the firmware in the Motorola
microcontroller tests the CLK (green wire)