Differences

This shows you the differences between two versions of the page.

modules:opticalmouse [2010/07/29 13:08]
edwin
modules:opticalmouse [2010/08/16 15:15] (current)
edwin
Line 1: Line 1:
====== Optical Mouse sensor ====== ====== Optical Mouse sensor ======
 +
===== Introduction ===== ===== Introduction =====
Sensors from optical mice work as incremental encoders and camera-in-one. A lot of these sensors have an SPI interface which makes interfacing to a microcontroller system relatively easy. Sensors from optical mice work as incremental encoders and camera-in-one. A lot of these sensors have an SPI interface which makes interfacing to a microcontroller system relatively easy.
Line 51: Line 52:
The following Arduino sketch sends picture data (binary picture values). Other functions include sending dx, dy position data and more specific sensor oriented stuff like status, vendor ID, max and min pixel values, shutter (iris) value, etc. The following Arduino sketch sends picture data (binary picture values). Other functions include sending dx, dy position data and more specific sensor oriented stuff like status, vendor ID, max and min pixel values, shutter (iris) value, etc.
-==== Arduino Sketch ====+**Arduino Sketch**
<code c> <code c>
// inspired by Martijn The's sketch, adding all functionality of the 2610 chip, skipping // inspired by Martijn The's sketch, adding all functionality of the 2610 chip, skipping
Line 168: Line 169:
</code> </code>
-==== Processing Sketch ====+**Processing Sketch**
Displays the pixel image recorded by the mouse sensor. Note that you might have to restart the sketch once due to synchronization between arduino and processing since no header data is being sent. Displays the pixel image recorded by the mouse sensor. Note that you might have to restart the sketch once due to synchronization between arduino and processing since no header data is being sent.
 
modules/opticalmouse.1280401697.txt.gz · Last modified: 2010/07/29 13:08 by edwin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki