22. Octopus Magnetic Switch

22.1. Introduction

OCTOPUS Magnetic Switch is a simple electric brick module with magnetic control switch.It is normally combined with electromagnet or components with magnet.It can be used to security alarming system,door magnetic switch and so on.


22.2. Characteristics

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

22.3. Specifications

Item | Parameter :-: | :-: SKU|EF04075 Working Voltage|3.3-5V Weight|5g Mode of Motion|Swift, small volume Touch Points|Strong corrosion and abrasion resistance Working Current|200mA Working Temperature|-55~125℃ Size|23.48mm×31.28mm

22.4. Outlook and Dimensions


22.5. Quick to Start

Materials used and connection diagram

  • Connect to the P0 port

    Take sensor:bit for example


Add Package

Program as the picture shows




You can also download the links below:



  • When there is magnet approaching, a rectangle is showing on the micro:bit; Or an icon is showing on the micro:bit.

22.6. Relevant Cases

22.7. Technique Files