OCTOPUS Magnetic Switch is a kind of electric brick-carrying magnetic switch and is compatible with the OCTOPUS series. It mainly consists of a WBSF12 dry reed switch. WBSF12 is a dry reed tube with a frequently open contact point. When the magnet comes close to a certain distance, the switch within WBSF12 will close. Under this principle, it can be used to detect magnets around. With magnet and WBSF12 combined, it can control links between electronic components.
Swift motion, small volume
Contact point has very good anti-corrosion and wears resistance
Long life span
Working current:<200mA:< AX:
Working temperature -55 ~ 125
Can be used for liquid sensors, close sensor
Security Alarming System
Door magnetic switch
OCTOPUS Magnetic Switch module
Arduino UNO mainboard
3P electric brick cable
Micro USB Cable
Connect octopus magnetic switch to P0 port on OCTOPUS:BIT.
You can see the whole program from the link
Or you can download it from the page below.
When there is no magnet around, micro:bit will display a heart; when there is a magnet around, micro:bit will display a rectangle.