查看“Microduino-Crash”的源代码
←
Microduino-Crash
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Language|Microduino-Crash Sensor}} {| style="width: 800px;" |- | [[File: Microduino Crash-rect.jpg|400px|thumb|right| 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 [[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]] [[File: Microduino-CRASH Sensor_rule1.jpg|600px|thumb|center]] [[File: Microduino-CRASH Sensor_rule2.jpg|600px|thumb|center]] ==Document== *Principle: '''[[File: Microduino_Crash.Zip]]''' ==Development== ===Preperation=== *Make sure you build Microduino development environment. If not, please refer to: [[Microduino Getting started]] *Choose the core module **1. Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core board. **2.Adopt [[Microduino-Core]] or [[Microduino-Core+]] as the core board and you also need [[Microduino-USBTTL]] to work with the core for program download. ===Program=== *Open Arduino IDE, select File→Examples→Basics→DigitalReadSerial program example, select the right board, compile and download. [[file:mCookie-crashCodeExample.JPG|thumb|800px|center]] *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]] [[file:Microduino-sensorhub_6.JPG|thumb|400px|center]] * For reference: [[mCookie-Hub]] [[file:mCookie-sensorhub_6.JPG|thumb|400px|center]] *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]] [[file:upload.JPG|thumb|800px|center]] *Open the serial communication after download and you'll see button input values. ==Application== *Used as a switch *Used as a crash sensor ===Project=== * '''[[Music Box One—Key Version]]''' ==Purchase== ==History== ==Pictures== *Front [[file: Microduino-CRASH Sensor -b.JPG|thumb|600px|center|Microduino-Cube-Station Front]] *Back [[file: Microduino-CRASH Sensor-F.JPG|thumb|600px|center|Microduino-Cube-Station Back]] |}
该页面使用的模板:
模板:Language
(
查看源代码
)
模板:Nmbox
(
查看源代码
)
返回至
Microduino-Crash
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息