Octopus Electronic Bricks, you can use them to build electronics projects just as easy as piling bricks. By using Octopus electronic bricks, you may connect Arduino/Freaduino compatible boards easily with various digital, analog, and I2C/Uart interfaces. These breadboard-less firm connections are prepared to extensive modules like potentiometers, sensors, relays, servos even buttons, just plug and play.
Crash Sensor Brick is a sensor module based on the crash switch, simple circuit design, and high sensitivity.
SPECIFICATION
Arduino special module
compatible with sensor shield
Output low level when touched, maintain high level when released
Used for robot collision detection touch detection
3P buckled wires connector
Easy to plug and play
Able to achieve very interesting and an interactive work
PACKAGE LIST
Module |
Quantity |
Crash Sensor Brick |
1 |
Analog Sensor Cable |
1 |
HARDWARE CONNECTION
Connect octopus crash sensor brick to P1 port on octopus:bit.


CODE
You can see the whole program from the link
Or you can download it from the page below.
RESULTS
When the metal shrapnel on the crash sensor is pressed, micro:bit displays a rectangle; when it is not pressed, then micro:bit displays a heart.