“Microduino-Crash”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(Created page with "{{Language|Microduino-Crash Sensor}} {| style="width: 800px;" |- | 400px|thumb|right| Microduino-Crash Sensor Microduino-Crash Sensor is a...")
 
 
第28行: 第28行:
 
**Digit input  
 
**Digit input  
  
*Size 尺寸
+
*Size  
 
**Size of the Switch: 12mm*6mm,
 
**Size of the Switch: 12mm*6mm,
 
**Size of the Board: 20mm*20mm
 
**Size of the Board: 20mm*20mm
第44行: 第44行:
  
 
==Development==
 
==Development==
===Preperation===
+
===Preparation===
 
*Make sure you build Microduino development environment. If not, please refer to: [[Microduino Getting started]]
 
*Make sure you build Microduino development environment. If not, please refer to: [[Microduino Getting started]]
 
*Choose the core module
 
*Choose the core module

2015年10月23日 (五) 07:09的最新版本

Language English
文件:Microduino Crash-rect.jpg
Microduino-Crash Sensor

Microduino-Crash Sensor is a sensor which can perceive collision.

It is used to detect if there is collision or crash. Therefore, it can also be called crash signal sensor. Due to different collision position, it can classified as left-crash sensor or right-crash sensor. Crash switch can turn mechanical quantity to electricity. When this sensor collided with an object, it'll cause circuit switch close. So, the circuit loop will be opened, the LED will be lighten and the voltage between the two sides of the sensor will turn high level to low. Microduino-Crash judges collision by detecting the electrical level between its two side. It can used in limit and anti-collision such as 3D print motor limit switch and robot anti collision.



Features

  • Left-crash and right-crash
  • LED collision indicator
  • Small and easy to install

Specification

  • Electrical specification
    • Operation voltage: 5V
    • Input device
  • Tech parameters
    • Pin description: GND, VCC, signal input and NC(Empty).
    • Digit input
  • Size
    • Size of the Switch: 12mm*6mm,
    • Size of the Board: 20mm*20mm
    • 1.27mm-pitch 4Pin interface connected with Sensorhub
  • Connection method
    • Include left-crash and right-crash
MCookie-sensorhub rule.JPG

Document


Development

Preparation

Program

  • Open Arduino IDE, select File→Examples→Basics→DigitalReadSerial program example, select the right board, compile and download.
  • int pushButton = 6; Define input pin as D6(Also can be defined by users.)
  • pinMode(pushButton, INPUT); Define pushButton as the input pin.
  • int buttonState = digitalRead(pushButton); Read values of pushButton.
  • Open the serial monitor after download. When there is no collision, the input value is "1" and the input value is "0" under the opposite circumstance. So we can judge if there is collision by input values on the serial monitor.

Hardware Buildup

  • Connect Microduino-Crash and the Sensorhub's digital port(D6) which is also the input pin of "pushButton".
  • For reference: Microduino-Sensorhub
  • Connect the core, Sensorhub and LED together to a computer with a USB cable.
  • Choose the right board and COM port, compile and download. Please refer to: AVR Core:Getting started
Upload.JPG
  • Open the serial communication after download and you'll see button input values.

Application

  • Used as a switch
  • Used as a crash sensor

Project

Purchase

History

Pictures

  • Front
文件:Microduino-CRASH Sensor -b.JPG
Microduino-Cube-Station Front
  • Back
文件:Microduino-CRASH Sensor-F.JPG
Microduino-Cube-Station Back