Difference between revisions of "Sensor-Shake"

From Microduino Wiki
Jump to: navigation, search
(Introduction of Sensor Pin)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
  
{{Language|Microduino-Shake }}
+
{{Language|Sensor-Shake }}
{| style="width: 800px;"
+
{| style="width: 1000px;"
 
|-
 
|-
 
|
 
|
 
[[File: Microduino-Shake.jpg|400px|thumb|right| Microduino-Shake]]
 
[[File: Microduino-Shake.jpg|400px|thumb|right| Microduino-Shake]]
 +
The product number of Sensor-Shake is: '''MSDS51'''
  
Microduino-Shake is a vibration detection sensor. As a resistance strain vibration sensor, it uses the variation of resistance to express mechanical vibration of the object to be measured, which can be applied in all kinds of sensors, such as the resistance strain gauge.
+
Sensor-Shake is a shake detection sensor module.  
 
 
 
 
 
 
 
 
 
 
  
 +
Shake sensor is for detect the mechanical vibration quantity of objects. 
  
 +
==Introduction of Sensor Pin==
 +
{{ST_Pinout
 +
|st_name=Shake Sensor
 +
|pin3=Digital Input
 +
}}
  
 
==Features==
 
==Features==
*Small size
+
*With small size which is easy to install;
*Adjustable detection sensibility
+
*With good detection sensitivity;
 +
*With adjustable detection sensitivity.
  
 
==Specification==
 
==Specification==
*Electrical specification
+
*Sensor voltage
**Digital signal input; 
+
**3.3V~5V working voltage
**3.3V~5V operation voltage;
 
 
 
*Tech parameters
 
**Measurement range: 300 grams to thousands of kilograms
 
**Accuracy: 1/1000~1/10000
 
 
 
*Size
 
**Size of the sensor: 10mm*7mm,
 
**Size of the board: 20mm*10mm
 
**1.27mm-pitch 4Pin interface connects with Sensorhub.
 
  
*Connection method
+
*Size of the sensor
**Pin description: GND, VCC, signal output and NC(empty).  
+
**Size of the board: 23.5mm*13mm
Note: The output signal is digital and it needs digital port to detect (D0~D13), which can connect to the pin (3-9) of Sensorhub with the corresponding pins (D4, D6, D8, D10 and D12).
+
**1.27mm-spacing 4Pin interface connected with sensorhub
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
+
**CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
[[File: Microduino-Shake_rule1.jpg|600px|thumb|center]]
 
  
==Document==
+
*Function description
 +
**The static signal of the sensor is LOW. When the shake occurs, the sensor will produce signal HIGH.
 +
*Connection
 +
**This sensor can be connected to the following interfaces of the core: '''D2~D13''', '''A0~A7'''
  
*Schematic: '''[[File: Microduino_Shake.Zip]]'''
+
==Documents==
  
 +
*Schematic diagram: '''[[File: Sensor-Shake.pdf]]'''
 +
*Main sensor: '''[[File: Sensor-Shake_datasheet.pdf]]'''
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Make sure you build Microduino IDE or refer to: [[Microduino Getting started]]
+
*Download and unzip the program '''[[File:Sensor_Shake_Test.zip]]'''
*Core selection
 
**1. Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core.
 
**2. Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core plus [[Microduino-USBTTL]] as the program download module.
 
 
 
 
 
===Program===
 
*Open Arduino IDE, select File→Examples→Basics→DigitalReadSerial program examples, choose the right board, compile and then download.
 
[[file:mCookie-crashCodeExample.JPG|thumb|800px|center]]
 
  
*int pushButton = 6;  Define the input pin as D6. (Users can also custom the name.)
+
===Programming===
*pinMode(pushButton, INPUT);    Define pushButton as the input pin.
+
{{Upload
*int buttonState = digitalRead(pushButton);    Read values of the pushButton input pin.  
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
*Open the serial monitor after download. You can tell if there is vibration or not by the detection value, which is "0" when there is no vibration or "1" under vibration. You can also adjust R3 resistance on the back of the sensor to change detection sensibility.
+
|nameB=[[Microduino-USBTTL]]
 +
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
 +
|fileName=Sensor_Shake_Test.ino
 +
}}
  
===Hardware Buildup===
+
===Hardware Setup===
*Connect Microduino-Shake with Sensorhub to the digital port D6, which refers to "Define pushButton" mentioned above and users can also change according to personal needs.
+
*Referring to the following diagram, connect the Sensor-Shake to the digital port D6 of '''[[Microduino-Sensorhub]]'''.  
*For reference: [[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_6.JPG|thumb|400px|center]]
+
[[file:Microduino-sensorhub_Shake.JPG|thumb|400px|left]]
* For reference: [[mCookie-Hub]]
+
<br style="clear: left"/>
[[file:mCookie-sensorhub_6.JPG|thumb|400px|center]]
 
*Connect the core, Sensorhub and Shake to a computer with a USB cable.   
 
* Select the right board and COM port, compile and download.  You can refer to [[AVR Core:Getting started]]
 
[[file:upload.JPG|thumb|800px|center]]
 
*Open the serial monitor after download and you'll see vibration values.
 
  
 +
===Result===
 +
*After download, open the serial monitor.
 +
*The static signal of the sensor is LOW. When the shake occurs, the sensor will produce HIGH signal.
  
 
==Application==
 
==Application==
*It can be used as a vibration sensor.
+
*Shake detection
  
 
===Project===
 
===Project===
[[Lazy Donkey]]
 
 
==Development==
 
It can be applied in vibration detection.
 
 
==Purchase==
 
  
 
==History==
 
==History==
  
==Pictures==
+
==Gallery==
 
+
{| border="0" cellpadding="10" width="100%"
*Front
+
|-
[[file: Microduino-Shake-F.JPG|thumb|600px|center|Microduino-Shake Front]]
+
|width="50%" valign="top" align="left"|
*Back
+
[[file: MicroduinoShake-F.JPG|thumb|480px|center|mCookie-Shake-Front]]
[[file: Microduino-Shake -b.JPG|thumb|600px|center|Microduino-Shake Back]]
+
|width="50%" valign="top" align="left"|
 +
[[file: Microduino-Shake-b.JPG|thumb|480px|center|mCookie-Shake-Back]]
 +
|}
 
|}
 
|}

Latest revision as of 22:47, 30 March 2017

Language: English  • 中文
Microduino-Shake

The product number of Sensor-Shake is: MSDS51

Sensor-Shake is a shake detection sensor module.

Shake sensor is for detect the mechanical vibration quantity of objects.

Introduction of Sensor Pin

Sensor backpin.png

Shake Sensor
General Pin Out Sensor / Trinket's Pin Out
PIN1 (GND) GND
PIN2 (VCC) VCC
PIN3 (SIGNAL-A) Digital Input
PIN4 (SIGNAL-B) Not Connected
  • 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

  • With small size which is easy to install;
  • With good detection sensitivity;
  • With adjustable detection sensitivity.

Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Size of the sensor
    • Size 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
    • The static signal of the sensor is LOW. When the shake occurs, the sensor will produce signal HIGH.
  • Connection
    • This sensor can be connected to the following interfaces of the core: D2~D13, A0~A7

Documents

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 "Sensor_Shake_Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following diagram, connect the Sensor-Shake to the digital port D6 of Microduino-Sensorhub.


Microduino-sensorhub Shake.JPG


Result

  • After download, open the serial monitor.
  • The static signal of the sensor is LOW. When the shake occurs, the sensor will produce HIGH signal.

Application

  • Shake detection

Project

History

Gallery

File:MicroduinoShake-F.JPG
mCookie-Shake-Front
File:Microduino-Shake-b.JPG
mCookie-Shake-Back
Retrieved from "https://wiki.microduinoinc.com/index.php?title=Sensor-Shake&oldid=12678"