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 the breadboard-less firm connection 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 crash switch, simple circuit design, high sensitivity.
Parameter
- 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
Included
- 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
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.