5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY PLUG Super Starter Kit For Arduino Project 6: Crash Sensor

Posted by Fiona Su on

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.

thumb

Upload the Code
Below is an example code.

thumb

thumb

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.

thumb

thumb

You should be able to see the value printing on the monitor.

thumb

Extension Experiment:
Switch Controlling Relay
Hookup Guide
Connect the EASY Plug Crash sensor and relay module to control board using an RJ11 cable.

thumb

Upload the Code
Below is an example code.

thumb

What You Should See

thumb

If crash the limit switch, the LED on the relay module is turned on.

thumb

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

 Buy here>>EASY PLUG Super Starter Kit For Arduino STEM EDU

0 comments

Leave a comment

Please note, comments must be approved before they are published