Difference between revisions of "Sensor-Shake"

From Microduino Wiki
Jump to: navigation, search
(Specification)
Line 1: Line 1:
  
 
{{Language|Microduino-Shake }}
 
{{Language|Microduino-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 vibration detection sensor module.  
 
 
 
 
 
 
 
 
 
 
  
 +
Resistance strain vibration sensor is a kind of vibrating sensor which expresses the mechanical vibration quantity of the tested object by with the resistance variation.。
  
 +
==Sensor Pin Introduction==
 +
{{Sensor_explain
 +
|nameA=[[Sensor-Shake]]
 +
|modeA=Digital signal input
 +
|modeB=NC
 +
}}
  
 
==Features==
 
==Features==
*Small size
+
*With small size;
*Adjustable detection sensibility
+
*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
+
*Size of the sensor
**Measurement range: 300 grams to thousands of kilograms;
+
**Size of the board: 23.5mm*13mm
**Accuracy: 1/1000~1/10000.
+
**1.27mm-spacing 4Pininterface connected with sensorhub
 +
**CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
  
*Size
+
*Function description
**Size of the sensor: 10mm*7mm;
+
**After shaking the sensor, the digital output will change from 0 into 1.  
**Size of the board: 20mm*10mm;
+
*Connection
**1.27mm-pitch 4Pin interface connects with Sensorhub.
+
**This sensor can be connected to the following ports of the core: '''D2~D13'''
 
 
*Connection method
 
**Pin description: GND, VCC, signal output and NC(empty).
 
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).
 
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
 
[[File: Microduino-Shake_rule1.jpg|600px|thumb|center]]
 
  
 
==Document==
 
==Document==
  
*Schematic: '''[[File: Microduino_Shake.Zip]]'''
+
*Schematic diagram: '''[[File: Microduino_Sensor-Shake.Zip.pdf]]'''
 
+
*Crashdatasheet: '''[[File: Microduino_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:Microduino_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.)
 
*pinMode(pushButton, INPUT);    Define pushButton as the input pin.
 
*int buttonState = digitalRead(pushButton);    Read values of the pushButton input pin.
 
*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.
 
  
===Hardware Buildup===
+
===Programming===
*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.
+
{{Upload
*For reference: [[Microduino-Sensorhub]]
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
[[file:Microduino-sensorhub_6.JPG|thumb|400px|center]]
+
|nameB=[[Microduino-USBTTL]]
* For reference: [[mCookie-Hub]]
+
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
[[file:mCookie-sensorhub_6.JPG|thumb|400px|center]]
+
|fileName=Microduino_Sensor-Shake_Test.ino
*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.
 
  
 +
===Hardware Setup===
 +
*Referring to the following picture, connect Sensor-Crash to the digital port D6 of '''[[Microduino-Sensorhub]]'''.
 +
<br>
 +
[[file:Microduino-sensorhub_Shake.JPG|thumb|400px|left]]
 +
<br style="clear: left"/>
  
 +
===Result Observation===
 +
*After download, open the serial port monitor.
 +
*After the sensor is shaking, the digital output changes from 0 into 1.
 
==Application==
 
==Application==
*It can be used as a vibration sensor.
+
*Shake switch
  
 
===Project===
 
===Project===
[[Lazy Donkey]]
 
 
==Development==
 
It can be applied in vibration detection.
 
  
 
==Purchase==
 
==Purchase==
Line 86: Line 71:
 
==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]]
 +
|}
 
|}
 
|}

Revision as of 06:55, 26 August 2016

Language: English  • 中文
Microduino-Shake

The product number of Sensor-Shake is: MSDS51

Sensor-Shake is vibration detection sensor module.

Resistance strain vibration sensor is a kind of vibrating sensor which expresses the mechanical vibration quantity of the tested object by with the resistance variation.。

Sensor Pin Introduction

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-Shake sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): Digital signal input
    • PIN4(IO2): NC


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

Features

  • With small size;
  • 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 4Pininterface connected with sensorhub
    • CAD drawing of the sensor: File:Sensor CAD.zip
  • Function description
    • After shaking the sensor, the digital output will change from 0 into 1.
  • Connection
    • This sensor can be connected to the following ports of the core: D2~D13

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_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 picture, connect Sensor-Crash to the digital port D6 of Microduino-Sensorhub.


Microduino-sensorhub Shake.JPG


Result Observation

  • After download, open the serial port monitor.
  • After the sensor is shaking, the digital output changes from 0 into 1.

Application

  • Shake switch

Project

Purchase

History

Gallery

File:MicroduinoShake-F.JPG
mCookie-Shake-Front
File:Microduino-Shake-b.JPG
mCookie-Shake-Back