# Jacdac磁石感應器

![](https://kittenbothk.readthedocs.io/en/latest/_images/magnet11.png)

這是一個磁石感應器，它可以感應磁場的強度和極性。

### 產品參數

![](https://kittenbothk.readthedocs.io/en/latest/_images/magnet21.png)

### 連接教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/magnet31.png)

### MakeCode編程教學

![](https://kittenbothk.readthedocs.io/en/latest/_images/mcbanner16.png)

#### 參考程式

{% embed url="<https://makecode.microbit.org/_4s2VREa3eXhc>" %}

感應到磁石時Micro:bit會發出聲響。

[參考程式](https://makecode.microbit.org/_4s2VREa3eXhc)
