Difference between revisions of "Sensor-Gesture"

From Microduino Wiki
Jump to: navigation, search
Line 3: Line 3:
 
|
 
|
 
|
 
|
[[File:Microduino-Gesture.jpg|400px|thumb|right|mCookie-Hall]]
+
[[File:Microduino-Gesture.jpg|400px|thumb|right|Sensor-Gesture]]
The product number of mCookie Sensor—Gesture is: '''MSDI81'''
+
The product number of Sensor—Gesture is: '''MSDI81'''
  
mCookie Sensor-Gesture is APDS9960.
+
Sensor-Gesture can detect the movement direction and the distance of hands.  
  
  
  
 
+
==Instruction of Pins==
==Instruction of Sensor Pin==
 
 
{{Sensor_explain
 
{{Sensor_explain
 
|nameA=[[Sensor-Gesture]]
 
|nameA=[[Sensor-Gesture]]
Line 31: Line 30:
 
**Sensor of the board: 23.5mm*13mm
 
**Sensor of the board: 23.5mm*13mm
 
**1.27mm-spacing 4Pin interface connected with sensorhub
 
**1.27mm-spacing 4Pin interface connected with sensorhub
**CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
+
**CAD drawing of the sensor:'''[[File:Sensor_CAD.zip]]'''
  
 
*Function description
 
*Function description
**This sensor is 10-bit ADC(0~1023), and the static value pin IO1 get is 512.
 
**The magnetic strength varies from north to south pole.
 
***If approach to the hall circuit with N pole from the back, the output voltage will reduce, and so will the analog value(512~0).
 
***If approach to the hall circuit with S pole from the back, the output voltage will increase, and the analog input value will increase(512~1023).
 
***If approach from the front, the output state is positive.
 
<br>
 
*[[File:Microduino-Hall_xianxingtu.JPG|600px|thumb|left]]
 
<br style="clear: left"/>
 
  
*Connection  
+
**This sensor can detect the movement direction and the distance of hands.
**This sensor can be connected to the following interfaces of the core: '''A0~A7'''
+
**This sensor can detect the environment light and the RGB chroma.
 +
 
 +
*Connection
 +
**This sensor can be connected to the I2C interface of core.
 +
 
  
 
==Document==
 
==Document==
 +
*Schematic diagram: '''[[File:Sensor-Gesture.Zip]]'''
 +
*Main chip: '''[[File:APDS9960_datasheet.pdf ]]'''
  
*Schematic diagram: '''[[File: Microduino_Gesture.Zip.pdf]]'''
 
*HAL49E datasheet: '''[[File: Microduino_Gesture_datasheet.pdf]]'''
 
 
==Development==
 
==Development==
 
===Program Download===
 
===Program Download===
*Download and unzip the program '''[[File:Microduino_Gesture_Test.zip]]'''
+
*Download and unzip the program '''[[File:File:Sensor-Gesture_Test.zip]]'''
  
 
===Programming===
 
===Programming===
Line 63: Line 58:
  
 
===Hardware Setup===
 
===Hardware Setup===
*Referring to the following picture, connect Sensor-Hall to the analog port A0 of '''[[Microduino-Sensorhub]]'''.
+
*Referring to the following picture, connect Sensor-Gesture to IIC port of '''[[Microduino-Sensorhub]]'''.
 
<br>
 
<br>
[[file:Microduino-sensorhub_Gesture.JPG|thumb|400px|left]]
+
[[[file:Microduino-sensorhub_I2C.JPG|thumb|400px|left]]
 
<br style="clear: left"/>
 
<br style="clear: left"/>
  
 
===Result===
 
===Result===
 
*After download, open the serial monitor.  
 
*After download, open the serial monitor.  
**If approach to the hall circuit with S pole from the back, the output voltage of the two ends of hall sensor is between 2.5V~5V, and the returned analog value is between 512~1023.
+
*Move your hands to left and right toward the sensor, and the serial monitor will print out the corresponding direction, such as UP, DOWN, FAR and so on.  
**If approach to the hall circuit with the N pole from the back, the output voltage is between 2.5V~0V, and the returned analog value is between 512~0.
 
**If from the front, the output state is positive.  
 
 
==Application==
 
==Application==
*It can be used to detect the magnetic field strength.  
+
*It can be used in gesture control system.
  
 
===Projects===
 
===Projects===
Line 80: Line 73:
 
==Purchase==
 
==Purchase==
  
==History==
 
  
 
==Gallery==
 
==Gallery==
Line 86: Line 78:
 
|-
 
|-
 
|width="50%" valign="top" align="left"|
 
|width="50%" valign="top" align="left"|
[[file: Microduino-Gesture-F.JPG|thumb|480px|center|mCookie-Hall Front]]
+
[[file: Sensor-Gesture-F.JPG|thumb|400px|center|Sensor-Gesture Front]]
 
|width="50%" valign="top" align="left"|
 
|width="50%" valign="top" align="left"|
[[file: Microduino-Gesture-b.JPG|thumb|480px|center|mCookie-Hall Back]]
+
[[file: Sensor-Gestur-b.JPG|thumb|400px|center|Sensor-Gesture Back]]
 
|}
 
|}
 
|}
 
|}

Revision as of 09:12, 10 November 2016

Language: English  • 中文
Sensor-Gesture

The product number of Sensor—Gesture is: MSDI81

Sensor-Gesture can detect the movement direction and the distance of hands.


Instruction of Pins

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-Gesture sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Analog signal input
    • PIN4(IO2): NC


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.


Features

  • With high detection and good stability.
  • A linear hall sensor with a polarity.


Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Size of the sensor
    • Sensor of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected with sensorhub
    • CAD drawing of the sensor:File:Sensor CAD.zip
  • Function description
    • This sensor can detect the movement direction and the distance of hands.
    • This sensor can detect the environment light and the RGB chroma.
  • Connection
    • This sensor can be connected to the I2C interface of core.


Document

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Microduino_Gesture_Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup


[[[file:Microduino-sensorhub_I2C.JPG|thumb|400px|left]]

Result

  • After download, open the serial monitor.
  • Move your hands to left and right toward the sensor, and the serial monitor will print out the corresponding direction, such as UP, DOWN, FAR and so on.

Application

  • It can be used in gesture control system.

Projects

Purchase

Gallery

File:Sensor-Gesture-F.JPG
Sensor-Gesture Front
File:Sensor-Gestur-b.JPG
Sensor-Gesture Back