12. Octopus Crash Sensor Brick

12.1. Introduction


  • Crash Sensor Brick is a sensor module based on crash switch, simple circuit design, high sensitivity.

../../_images/YR7t4Pj.jpg

12.2. Characteristics


  • The 3-pins ports is easy to plug and play.

    It can work with micro:bit in 3V.

12.3. Specifications


Item | Parameter :-: | :-: SKU|EF04013 Working Voltage|3.3-5V Connector Type |Digital Pins Definition|1-Signal 2-VCC 3-GND Response|Quick to response with high sensitivity Power Dissipation|ULP Working Temperature|-20-70℃ Circuit|Simple Stability|Stable and durable

12.4. Outlook and Dimensions


../../_images/vtK7bwP.png

12.5. Quick to Start


Connection diagram

  • Connect to P1 port as the picture shows.

Take sensor:bit for example

../../_images/UUQlBRi.png

Quick to Start

  • Set the P1 port to a higher level to initialize the module.

  • After being pressed, the returned value is 0, the digital read P1 pin is 0, then the icon is shown on the screen.

  • Or it shows a box.

../../_images/Lp93T7L.png

Reference

Links: https://makecode.microbit.org/_WMwRtRXFe2tw

You can also download it directly below:

---

Result


When the sensor is pressed, a rectangle is showing on the micro:bit; while released, an icon is showing on the micro:bit.

12.6. Relevant Cases


12.7. Technique Files