利用UV Index, LIGHT Sensor (SL01) 及Servo driver (OC05)製作自動餵食機

當寵物遮擋UV Index, LIGHT Sensor(SL01) 時, 光度便會下降,代表寵物靠近餵食機。
餵食機便會倒出食物( SERVO打開,食物倒下)。
所需材料
micro:bit x 1
micro:bit bridge IM01 x 1
UV Index, LIGHT Sensor (SL01) x 1
SERVO DRIVER(OC05) x 1
Servo 180 x 1
xChips Connector x 2
usb cable x 1
手工物料 , 如紙卡
micro:bit coding platform : https://makecode.microbit.org/
接駁方法 :

請注意 : 電源需直接插到micro:bit bridge IM01 而不是micro:bit 的usb port上.
Servo 接駁方法 :

橙線 是 Signal 駁至 SERVO DRIVER(OC05)的 CH
紅線 是 + 駁至 SERVO DRIVER(OC05)的 V+
啡線 是 - 駁至 SERVO DRIVER(OC05)的 GND
這次我們插在CH1 上。

編程教學 :

選取「OC05」及「SL01」。