background image

3

Z-Wheel

The motion of Z-wheel is detected using the quadrature 

signal generated by optical sensors. Two phototransistors 

are connected in a source-follower configuration forming 

Channel  A  and  Channel  B.    An  infrared  LED  shines, 

causing the phototransistors to turn on. In between the 

phototransistors and LED is a pinwheel that turns on the 

mouse ball rollers. The fan of this pinwheel is mechanical-

ly designed to block the infrared light such that the pho-

totransistors are turned on and off in a quadrature output 

pattern. Every change in the phototransistor outputs rep-

resents a count of mouse movement. Comparing the last 

state of the optics to the current state derives directional 

information.  As  shown  in  Figure  3.  below,  rotating  the 

wheel forward produces a unique set of state transitions, 

and rotating the wheel backward produces another set of 

unique state transitions.

Figure 3. Optics Quadrature Signal Generation

Mouse Buttons

Mouse buttons are connected as standard switches. These 

switches are pulled up by the pull up resistors inside the 

microcontroller.  When  the  user  presses  a  button,  the 

switch will be closed and the pin will be pulled LOW to 

GND. A LOW state at the pin is interpreted as the button 

being pressed. A HIGH state is interpreted as the button 

has  been  released  or  the  button  is  not  being  pressed. 

Normally the switches are debounced in firmware for 15-

20ms. In this reference design there are three switches: 

left, Z-wheel, and right.

Hardware Implementation

Optical Mouse Sensor

This  reference  design  features  the  ADNS-3040  optical 

navigation engine. It contains an Image Acquisition System 

(IAS),  a  Digital  Signal  Processor  (DSP),  and  a  three-wire 

Serial Peripheral Interface consists of the serial clock (SCLK), 

the master-in/slave-out (MISO) and the master-out/slave-

in (MOSI). In addition a fourth signal, Motion, is an output 

intended  to  act  as  an  interrupt  to  the  microcontroller 

whenever the ADNS-3040 senses motion. When the mouse 

is moved the ADNS-3040 alerts the system controller by 

activating the Motion signal triggering an interrupt service 

routine.  At  the  same  time  the  ADNS-3040  accumulates 

the horizontal and vertical displacements (count per inch, 

or  cpi)  in  its  Delta_X  and  Delta_Y  registers  respectively. 

The ADNS-3040 deactivates the Motion signal as soon as 

movement stops. The SmartSpeed technology automati-

cally optimizes the frame rate by examining the acquired 

images of the surface. It also manages the integrated LED 

driver to coordinate with the shutter.
The system controller reads the motion information and 

reports it to the PC to update the cursor position. 
The advantages of using ADNS-3040 optical sensor are the 

efficient power management, high tracking accuracy, and 

efficient communications with the optical sensor via the 

full duplex SPI port. 
To learn more about sensor’s technical information, please 

visit the Avago web site at http://www.avagotech.com

Microcontroller

The Texas Instruments MSP430 family of ultra-low power 

microcontrollers  consists  of  several  devices  featuring 

different sets of peripherals targeted for various applica-

tions.  The  architecture,  combined  with  five  low-power 

modes,  is  optimized  to  achieve  extended  battery  life  in 

portable measurement applications. The device features 

a powerful 16-bit RISC CPU, 16-bit registers, and constant 

generators that attribute to maximum code efficiency. The 

Digitally Controlled Oscillator (DCO) allows wake-up from 

low-power modes to active mode in less than 6 µsec.
The  specific  device  used  in  this  reference  design  is  the 

MSP430F1222 with 28 pin to accommodate ample amount 

of I/O. It is an ultra-low power mixed-signal microcontrol-

lers with a built-in 16-bit timer, 10-bit A/D converter with 

integrated reference and Data Transfer Controller (DTC), 

and 14 (20 pin package) or 22 (28 pin package) general 

purpose  I/O pins. The MSP430x12x2 series microcontrol-

lers have built-in communication capability using asyn-

chronous (UART) and synchronous (SPI) protocols.

Summary of Contents for ADNK-3043-ND24

Page 1: ...tech com USB controller data sheet can be found on the Cypress web site www cypress com The Nordic transmitter and receiver data sheets are available on www nordicsemi no Key reference design objectiv...

Page 2: ...ature encoder provides the Z wheel movement Each of the button switches is pulled up normally and provides a Ground when pressed The MAX1722 boost regulator maintains the 2 7 V operating voltage for t...

Page 3: ...the microcontroller whenever the ADNS 3040 senses motion When the mouse is moved the ADNS 3040 alerts the system controller by activating the Motion signal triggering an interrupt service routine At t...

Page 4: ...des a dedicated hardware based Serial Peripheral Interface SPI The three wire interface supports byte serial communication in either Master or Slave mode In this reference design the MSP430F1222 alway...

Page 5: ...ing Mode The receiver dongle is hot pluggable into the USB port The PC does not need to be powered off when plugging or unplugging the receiver dongle for the evaluation mouse Figure 4 Exploded view o...

Page 6: ...ode for added features Programming support and programmer adaptors for the MSP430 can be found through TI or through other 3rd party programming tool companies For further informa tion on this product...

Page 7: ...L position check 2 Decrement Timeout counter Firmware Implementation The firmware for this reference design is written in the C language The following files are required to compile the mouse firmware...

Page 8: ...T XIN P3 7 P3 5 P3 4 P2 5 U102 P3 0 P2 2 P1 3 P1 2 P1 1 P1 0 P2 4 P2 3 P2 1 P2 0 P3 3 P3 1 P3 2 P3 6 R104 100k C101 0 01uF 0 1uF C102 GND VBATT Vdd T101 Battery spring Battery spring Battery spring T1...

Page 9: ...SCLK NCS GND Vdd 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Vss_PA ANT1 ANT2 Vdd_PA Vdd IREF Vss PWR_UP CE CS CLK DIN Vdd XC1 XC2 Vss R202 22K C211 2 2nF C212 22pF 22nH L203 3 6nH L201 1pF C202 1pF C201...

Page 10: ...0 8 P2 1 9 P2 2 10 Vcc 11 D 12 D 13 P1 1 14 P0 7 15 P0 6 16 P0 5 17 P0 4 18 U100 CY7C63231A USB5V D101 Green DOUT2 5V CLK2 5V DR2 5V CE 5V CS 5V DR1 5V CLK1 5V DATA 5V LED C110 10nF C109 4 7 uF R110 1...

Page 11: ...R124 Resistor 0805 240 1 R125 Resistor 0805 27K 2 R107 R108 Resistor 0805 1 1 M 1 R109 Resistor 0805 1 0 M 1 R110 Resistor 0805 10 1 R111 Resistor 0805 0 1 R106 Resistor 0805 No Load 1 R122 Ceremic ca...

Page 12: ...PO 0402 1pF 2 C201 C202 Ceramic Capacitor 50v NPO 0402 22pF 3 C208 C207 C212 Ceramic Capacitor 50v X7R 0402 2 2 nF 1 C211 Ceramic Capacitor 50V X7R 0402 10uF 1 C210 Inductor 3 6 nH 1 L201 Inductor 22...

Page 13: ...nF 2 C301 C302 LED 1206 Green 1 D101 ACON USB Plug Freber FCMP04208 CON4 1 J101 Panasonic ELJRE3N3ZF2 3 3nH 1 L1 Panasonic ELJRE10NJF2 10nH 1 L2 Panasonic ELJRE5N6JF2 5 6nH 1 L3 Panasonic ELJRE5N6JF2...

Page 14: ...e Feature Figure C1 Illustration of base plate mounting features ADNS DIMENSIONS 31 5 x 17 0 mm ADNS 3120 001 LEN RECESS DIMENSIONS 31 5 x 17 0 mm KEY PYRAMID FEATURE 2 50mm HEIGHT MAX KEY PYRAMID FEA...

Page 15: ...dic Semiconductor The following Nordic applica tion note details the hardware design and firmware implementation The application note can be downloaded from www nordicsemi no Universal low cost USB Du...

Page 16: ...A RF Transceiver Datasheet h Nordic Semiconductor nRF2402 RF Transmitter Datasheet Hardware Support Files a ADNK 3043 ND24 BOM List b ADNK 3043 ND24 Schematic c ADNK 3043 ND24 Gerber File d IGES Base...

Reviews: