ElecFreaks
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 swi...
Get notified when back in stock
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.
Features
1.Swift motion, small volume
2.Contact point has very good anti-corrosion and wear resistance
3.Long life span
4.Working current:<200mA:<AX:
5.Working temperature -55 ~ 125鈩?/p>
6.Size: 23.48mm×31.28mm
Application
1.Can be used to liquid sensor, close sensor
2.Security Alarming System
3.Door magnetic switch
4.Runner Machine
5.Taximeter
Configuration
1.OCTOPUS Magnetic Switch module
2.Arduino UNO mainboard
3.3P electric brick cable
4.Micro USB Cable
5.Magnet


Quick Start
Hardware Connection
Connect octopus magnetic switch to P0 port on OCTOPUS:BIT.

Programming
Code
You can see the whole program from the link here
Result
When there is no magnet around, micro:bit will display a heart; when there is magnet around, micro:bit will display a rectangle.
Resources:
Jargon buster
Plain-language definitions for the technical terms used above.
- Reed switch
- A small switch sealed in glass that opens or closes when a magnet is nearby. It is useful for simple door, lid, wheel, or position sensing because it can detect motion without needing to be pressed directly.
Find this product in
Components
Sensors & Input
Related Tutorials
Free guides on learn.littlebird.com.au