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