Difference between revisions of "Sensor-Gesture"

From Microduino Wiki
Jump to: navigation, search
(Created page with "{{Language|Microduino-Gesture }} {| style="width: 1000px;" | | 400px|thumb|right|mCookie-Hall The product number of mCookie Sensor—Gesture is...")
 
(Instruction of Pins)
 
(5 intermediate revisions by 2 users not shown)
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==
+
{{ST_Pinout
{{Sensor_explain
+
|st_name=Gesture Sensor
|nameA=[[Sensor-Gesture]]
+
|pin3=IIC SDA
|modeA=Analog signal input
+
|pin4=IIC SCL
|modeB=NC
 
 
}}
 
}}
 
  
 
==Features==
 
==Features==
 +
*Adopts APDS9960 sensor and IIC communication.
 
*With high detection and good stability.
 
*With high detection and good stability.
*A linear hall sensor with a polarity.
+
*With small size which is easy to install.
 
 
  
 
==Specification==
 
==Specification==
Line 31: Line 29:
 
**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 57:
  
 
===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 72:
 
==Purchase==
 
==Purchase==
  
==History==
 
  
 
==Gallery==
 
==Gallery==
Line 86: Line 77:
 
|-
 
|-
 
|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]]
 
|}
 
|}
 
|}
 
|}

Latest revision as of 23:35, 30 March 2017

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

Gesture Sensor
General Pin Out Sensor / Trinket's Pin Out
PIN1 (GND) GND
PIN2 (VCC) VCC
PIN3 (SIGNAL-A) IIC SDA
PIN4 (SIGNAL-B) IIC SCL
  • General Pin Out is the standard pin out of a Sensor / Trinket connector.
  • Sensor / Trinket's Pin Out is this specific Sensor / Trinket's wiring in relation to the General Pin Out.
  • SIGNAL-A / SIGNAL-B are signals that could be digital input, digital output, analog input or analog output. Or special signals such as serial communication (SoftwareSerial, IIC (I2C), etc) or other special signals.
  • Not Connected refers to the Pin not being used for this particular Sensor / Trinket.
  • Read more about the hub module.

Features

  • Adopts APDS9960 sensor and IIC communication.
  • With high detection and good stability.
  • With small size which is easy to install.

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


Microduino-sensorhub I2C.JPG


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
Retrieved from "https://wiki.microduinoinc.com/index.php?title=Sensor-Gesture&oldid=14520"