FBTUG-戶外土壤感測設計

緣起

Scope

安裝

校正

使用

設計

Arduino UART 輸出格式

相關零件

Arduino 接線

Arduino Code

示意圖

外殼與接線

RPI 系統安裝

RPI 取資料

做這樣實驗,常會希望知道量測的時間,一般在控制器中取得真實時間不容易。真的把時間輸出,其他處理程式又會造成困擾。目前這樣的處理,簡單又方便

取得 Serial 輸出,補上時間

cat /dev/cu.usbmodem1421 | ts

輸出範例:

May 09 13:36:57 327,66.67,240,501 ,385,49.45,247,520 ,399,41.64,242,511 

May 09 13:36:58 327,66.67,240,501 ,385,49.45,247,520 ,401,40.89,242,511 

May 09 13:36:59 327,66.67,240,501 ,392,46.89,247,520 ,399,41.64,242,511 

May 09 13:37:00 327,66.67,240,501 ,387,48.72,247,520 ,399,41.64,242,511 

May 09 13:37:01 327,66.67,240,501 ,385,49.45,247,520 ,399,41.64,242,511 

May 09 13:37:02 327,66.67,240,501 ,385,49.45,247,520 ,399,41.64,242,511 

轉成 Google sheet 

cat humidity.txt | awk ’{print $1" "$2" "$3","$4}’

Power Consumption

出借

零件