28560 Parallax Inc, 28560 Datasheet

Interface Modules & Development Tools Mouse Sensor Kit

28560

Manufacturer Part Number
28560
Description
Interface Modules & Development Tools Mouse Sensor Kit
Manufacturer
Parallax Inc
Datasheet

Specifications of 28560

Interface Type
Serial
Operating Supply Voltage
5 V
Product
Interface Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
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
Features
Key Specifications
Application Ideas
What Comes with the Kit
Copyright © Parallax Inc.
R1, R2
LED1
Part
U1
D1
R3
®
Compact module, including illumination, optics, and custom laser-cut base
“Close-to-the-metal” register-based serial interface for maximum flexibility
Holes for mounting to other equipment
Compatible with any BS2-family BASIC Stamp, the SX, and the Parallax Propeller
Accommodation for single or dual three-wire (servo-type) interface cables
Power requirements: 5 VDC at 35 mA
Communication: Two-wire serial (clock and data)
Logic compatible with 3.3V (using external resistor) and 5V microcontrollers
Dimensions: 1.80” (45.7mm) L x 1.00” (25.4 mm) W x 0.65” (16.5 mm) H
Measuring X and Y displacement on a flat surface
Detecting vibration in two dimensions over a flat surface
2 family, the Parallax Propeller™, and other microcontrollers.
Parallax No.
300-28560
604-28560
350-00031
350-00032
721-28560
501-00008
150-01021
150-01022
Printed circuit board
MCS-12086 mouse
sensor chip
Red T1¾ LED (lens
may be red or clear)
Right-angle LED holder
Clear plastic lens/light
guide
1N5817 Schottky diode
1K 1/8 W resistor
(brown, black, red)
100Ω 1/8 W resistor
(brown, black, brown)
Description
Mouse Sensor Kit (#28560)
Web Site: www.parallax.com
Forums: forums.parallax.com
Sales: sales@parallax.com
Technical: support@parallax.com
Illustration (not to scale)
v1.0 6/1/2010 Page 1 of 18
Office: (916) 624-8333
Fax: (916) 624-8003
Sales: (888) 512-1024
Tech Support: (888) 997-8267
Quan.
1
1
1
1
1
1
2
1

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 : " ...

Related keywords