利用Soil Mositure Sensor 量度泥土濕度
植物們是沒有嘴巴的,他們不會發聲告訴你他們需要喝水.有想過透過一些感應器來讓他們告訴你他們不夠水嗎?
利用 SparkFun Soil Moisture Sensor, 你就可以輕易測量到泥土的濕度,從此你就可以知道用不用灌溉植物了!

所需物料 :
- 1x micro:bit
- 1x weather:bit Carrier Board (可以用其他extension board取代,例如I/O board)
- 3x 12" M/M Jumper Wires
- 1x SparkFun Soil Moisture Sensor
** (I/O board的教學會在下一章「自動灌溉系統」)
首先我們需要知道soil mositure sensor要如何接駁電線,
在sensor底版後面我們會看到3組英文字 , 分別是 : VCC , GND , SIG
只需要用M/M jumper wire駁回到weather:bit board下Soil Moisture相對應的 VCC, GND ,SIG 就可以了
電路概覽圖 :
Coding 概覽 :

首先我們需要在extensions中加入weather:bit ,


on start 裡的start weather monitoring 可以在最頂找到

soil moisture 會在較下的位置

完成編成後,按下micro:bit的Button A就會出現soil mositure的數值了!
數字愈大,代表泥土濕度愈高! , 我們可以利用SOIL MOSITURE的數據來製作自動灌溉系統.
==> 按我查閱