電位器模組

../../_images/poten2.png

這是一隻電位器模組,它可以檢測旋轉角度,它返回的數值是類比形式。

數值範圍由0-1023,數值越大代表角度越大。

產品參數

  • 工作電壓:3.3V~5V
  • 類型:類比模組
  • 接口:3Pin防反插

接線教學

由於這是類比模組,所以只能使用robotbit的PIN0-2。(使用PIN0的話需要拔除蜂鳴器跳線帽)

Robotbit Shield

將定位器連接到Robotbit Shield的3PIN接口。

../../_images/poten_wire2.png

Robotbit

將定位器連接到Robotbit的針線和3V接口。

../../_images/poten_wire1.png

MakeCode編程教學

../../_images/mcbanner14.png

../../_images/acbanner1.png

此模組可供Microbit和Meowbit使用。

讀取電位器角度編程

Microbit:

../../_images/poten_code.png

Meowbit:

../../_images/poten_codeMeow.png

KittenBlock編程教學

../../_images/kbbanner8.png

加載Robotbit插件

../../_images/addRB2.png

讀取電位器角度編程

../../_images/poten_codekb.png

Mu Editor編程教學

讀取電位器角度編程

../../_images/poten_codemu.png