センサとマイコン(Arduino, Raspberry Pi)による行動分類
#ref(): File not found: "setsuzoku.jpg" at page "今回の技術資料とは無関係"
#ref(): File not found: "teraterm.png" at page "今回の技術資料とは無関係"
上のような画面が出てくるので,アドレスを「10.0.221.144」に変更し「接続」をクリック.#ref(): File not found: "teraterm2.png" at page "今回の技術資料とは無関係"
ユーザー名に「pi」、パスワードに「raspberry」を入力する.(ラズパイ初期設定のままの場合)sudo nano sensa.pyここでsensa.pyの編集を行う.
#ref(): File not found: "program.png" at page "今回の技術資料とは無関係"
・urlの部分のIPアドレスを自分のPCのものに変更する.ls /dev/ttyA*もう一回post.pyの編集画面を開き型番を確認、違ったら変更する.
#ref(): File not found: "xampp2.png" at page "今回の技術資料とは無関係"
Apacheの横にある「start」をクリック.~ (これでラズパイからphpファイルへ接続するためのサーバーを建てた)python sensa.pyすると,changerootフォルダ内にデータを記録したcsvファイルができる
#ref(): File not found: "last1.png" at page "今回の技術資料とは無関係"
#ref(): File not found: "last2.png" at page "今回の技術資料とは無関係"
※自分はDesktopのPCで行った際には,csvファイルが生成されませんでした.山元君の場合でも同じ現象が起きています.