Skip to main content

06 Magnet Sensor

MagnetSensor.png​

Module Introduction​

jacdac30.png

  1. Jacdac Interface
  2. Jacdac Communication Indicator
  3. Hall Sensor
  4. Jacdac Standard Through Hole
  5. Product QR Code

Components used​

  • 1x MicroUSB Cable
  • 1x MicrobitV2
  • 1x Jacdaptor
  • 1x Cable
  • 1x Magnet Sensor

Connection​

PC-〉MicroUSB -〉MicrobitV2-〉Jacdaptor-〉Cable-〉MagnetSensor

5.JPG

Coding Platform​

https://makecode.microbit.org/

Create a new project​

jacdac05.png

Establish a connection​

webUSB.png

Extensions——Jacdac

jacdac扩展.png

Add Jacdac MagnetSensor Block​

jacdac19.png

Program and download​

jacdac18.png

After downloading, you need to press the A button to start​

12.JPG

The Result​

When there is no magnet:

13.JPG

When the magnet is close:

14.JPG