28560 Parallax Inc, 28560 Datasheet
![Interface Modules & Development Tools Mouse Sensor Kit](/photos/15/88/158880/28560-l_sml.jpg)
28560
Specifications of 28560
Related parts for 28560
28560 Summary of contents
Page 1
... Mouse Sensor Kit (#28560) The Parallax Mouse Sensor is a module in kit form which, when assembled, provides the tracking functions of an optical mouse. The two-wire serial interface is directly compatible with the Parallax BASIC ® Stamp 2 family, the Parallax Propeller™, and other microcontrollers. ...
Page 2
... Needle-nosed pliers • 99% isopropyl alcohol and an old (clean) toothbrush • Miniature (#0) Phillips screwdriver • Pointed tweezers • Eye protection Copyright © Parallax Inc. Description Illustration (not to scale) small diameter (1/32”) rosin-core solder (lead-free or leaded) Mouse Sensor Kit (#28560) Quan ...
Page 3
... Then, still pulling with the pliers, bend the leads sharply downward: NOTE: The LED is shown in the drawings with a red lens. The LED provided may be red or clear. Copyright © Parallax Inc. except U1 and LED1, as shown below, paying close attention to Mouse Sensor Kit (#28560) v1.0 6/1/2010 Page ...
Page 4
... Insert the black plastic snap rivets into the corner holes, so that the heads rest in the engraved recesses: Copyright © Parallax Inc. except for U1, the sensor chip Mouse Sensor Kit (#28560) . Make sure to v1.0 6/1/2010 Page ...
Page 5
... The nuts can then be installed from the bottom, one at a time, and the screws tightened. Copyright © Parallax Inc tighten. Mouse Sensor Kit (#28560) Repeat for the other v1.0 6/1/2010 Page ...
Page 6
... Make sure that servo power is jumpered to Vdd and not Vin servo headers. Copyright © Parallax Inc. From this point onward, be very careful not to let any , solder one of its corner pins from the top side of the Mouse Sensor Kit (#28560) . v1.0 6/1/2010 Page ...
Page 7
... To test the Mouse Sensor further with a BASIC Stamp, wire it as shown above. Then upload the program mouse_monitor.bs2, shown at the end of this document and downloadable from the Mouse Sensor product page (search "28560" at www.parallax.com). When run, a debug window will pop up, and you should see a display that looks something like this: The program accumulates the sensor’ ...
Page 8
... Mouse Sensor product page. It makes use of the MouseSensor object, which can also be found in the Propeller Object Exchange mouse_monitor.exe program, as shown above. You will find lot more responsive with the Propeller than with the BASIC Stamp. Copyright © Parallax Inc. (obex.parallax.com designed to Mouse Sensor Kit (#28560) be used with the v1.0 6/1/2010 Page ...
Page 9
... The three-wire Propeller circuitry is a little more complicated than that of the BASIC Stamp. This is because the Propeller outputs do not rise high enough to turn off a PNP transistor powered from +5V. Therefore, an additional transistor is required to do the job. Here’s the circuit: Copyright © Parallax Inc. Mouse Sensor Kit (#28560) v1.0 6/1/2010 Page ...
Page 10
... Resources and Downloads You may download free example and demo programs from the Mouse Sensor product page (search "28560" at www.parallax.com). and from the Propeller Object Exchange (obex.parallax.com). Device Information Theory of Operation The mouse sensor chip is actually a tiny camera that is continuously snapping pictures, comparing each with the one before to detect movement ...
Page 11
... Then eight data bits are clocked into the chip, most significant bit first. Copyright © Parallax Inc. Power on and wait 100 msec. Set resolution in register $1B. Read status register ($16). No Motion detected? Yes Read DX ($02) and DY ($03) registers. Update X and Y values. Mouse Sensor Kit (#28560) v1.0 6/1/2010 Page ...
Page 12
... It is not necessary for such a driver to have current sinking capability: a stiff pull-down is provided on the Mouse Sensor module itself. Copyright © Parallax Inc. Conditions Min. 4.1 Estimate only: value TBD Estimate only: value TBD 2 load 1.5 mA load dd Function Configuration Mouse Sensor Kit (#28560) Typ. Max. Units 5 0.0 V 5.0 V 3.5 ...
Page 13
... Mouse Sensor Dimensions Mouse Sensor Schematic Copyright © Parallax Inc. D! 1N5817 U1 Vreg 1 Vdd Vss SDIO C2 /LED 0.1 µF SCLK MCS12086 +5V R3 100R LED1 Mouse Sensor Kit (#28560) + 0.1 µF 47 µ v1.0 6/1/2010 Page ...
Page 14
... Source Code BASIC Stamp 2 Program This .bs2 program is available for download from the Mouse Sensor product page; search "28560" at www.parallax.com . ' ========================================================================= ' ' File...... mouse_monitor.bs2 ' Purpose... Monitors data coming from Mouse Sensor (#28560). ' Author.... Parallax ' E-mail.... support@parallax.com ' Started... 24 Feb 2010 ' ' {$STAMP BS2} ' {$PBASIC 2.5} ...
Page 15
... Subroutines ]------------------------------------------------------- ' DumpXYQ outputs X, Y, and Quality data to the programming port, for use with ' either DEBUG or an external program. DumpXYQ: addr = STAT GOSUB ReadAddr #IF (USE_DEBUG) #THEN IF (dat & CHNG = 0) THEN Copyright © Parallax Inc. Mouse Sensor Kit (#28560) v1.0 6/1/2010 Page ...
Page 16
... ELSE SEROUT 16, baud, [" "] ENDIF NEXT SEROUT 16, baud, [CR] RETURN ' ReadAddr reads a sensor chip register. ' Inputs: addr = address ($00 - $7F) to read. ' Outputs: dat = contents of the addressed register. ReadAddr: #IF (NEG_CLK) #THEN Copyright © Parallax Inc. "] Mouse Sensor Kit (#28560) v1.0 6/1/2010 Page ...
Page 17
... ReadNeg: ' ReadNeg simulates the SHIFTIN instruction, but with a ' negative-going (inverted) clock. ' Outputs: dat = data read from serial bus, MSB first. FOR dat = dat << 1 PULSOUT sclk, 25 dat.BIT0 = sdio NEXT RETURN Copyright © Parallax Inc. Mouse Sensor Kit (#28560) v1.0 6/1/2010 Page ...
Page 18
... Propeller Application Here’s the Top Level MouseSensorMonitor.spin listing. The referenced objects are included with the archive downloadable from the Mouse Sensor page (search "28560" at www.parallax.com) or from the Propeller Object Exchange (obex.parallax.com). CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 SCK_PIN = 22 SDA_PIN = 23 OBJ ms : " ...