Overview
We use a crash sensor to detect whether happen collision or not. When an object crashes the metal switch of the sensor, it will output LOW level signal. When the switch is disconnected, it will keep HIGH level.
Component Required:
- EASY plug control board*1
- EASY plug Crash Sensor *1
- EASY plug LED Module *1
- EASY plug Relay Module *1
- RJ11 cable*1
- USB cable*1
Component Introduction:
Crash sensor, also known as snap-action switch, is an electric switch that is actuated by very little physical force.
It is a digital on-off input module necessary for elementary electronic.
By programming, it can be used for the light, sound device, key function of LCD display, 3D Printer position feedback, or other devices.
Onboard status indicator LED
M3 mounting hole, convenient for fixation on other devices.
If collision happened, outputs LOW level signal; no collision, outputs HIGH level signal.
Connect It Up
Connect the EASY Plug Crash sensor to control board using an RJ11 cable.
Upload the Code
Below is an example code.
What You Should See
When an object crashes the metal switch of the sensor, the LED is turned off. If no crash happened, LED is turned on.
You should be able to see the value printing on the monitor.
Extension Experiment:
Switch Controlling Relay
Hookup Guide
Connect the EASY Plug Crash sensor and relay module to control board using an RJ11 cable.
Upload the Code
Below is an example code.
What You Should See
If crash the limit switch, the LED on the relay module is turned on.
Troubleshooting:
- Program Not Uploading?
This happens sometimes, the most likely case is a confused Board and serial port, you should firstly select your proper board and port.
If it doesn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board.
All Tutorial
- EASY plug Super Starter Kit for Arduino STEM EDU Tutorial
- EASY plug Arduino Project 1: Hello World
- EASY plug Arduino Project 2: LED Light
- EASY PLUG Arduino Project 3: Line Tracking
- EASY PLUG Arduino Project 4: Push Button
- EASY PLUG Arduino Project 5: how to control a relay module
- EASY PLUG Arduino Project 6: to detect whether happen collision or not
- EASY PLUG Arduino Project 7: How to measure the outside force?
- EASY PLUG Arduino Project 8: detect whether there is a magnetic field
- EASY PLUG Arduino Project 9: how to make a countdown Clock?
- EASY PLUG Arduino Project 10: Photo Interrupter
- EASY PLUG Arduino Project 11: Hall Magnetic Detection
- EASY PLUG Arduino Project 12: Analog Temperature
- EASY PLUG Arduino Project 13: Tilt Switch
- EASY PLUG Arduino Project 14: how to use an LCD module
- EASY PLUG Arduino Project 15: How to use Sound Sensor
- EASY PLUG Arduino Project 16: How to detect the water drop?
- Easy PLUG Arduino Project 17: Detect the alcohol content in the Air
- Easy PLUG Arduino Project 18: How to Detect the Water Level
- Easy PLUG Arduino Project 19: Potentiometer
- Easy PLUG Arduino Project 20: Temperature and Humidity
- PLUG Starter Kit For Arduino Project 21: Matrix Display
- Easy PLUG Starter Kit For Arduino Project 22: Acceleration