工業製造
産業用モノのインターネット | 工業材料 | 機器のメンテナンスと修理 | 産業プログラミング |
home  MfgRobots >> 工業製造 >  >> Manufacturing Technology >> 製造プロセス

ドアの状態のストリーミングビデオを備えたラズベリーパイガレージドアオープナー。

このInstructableは、他の2つのガイドを変更します。ページのドアの状態に磁気センサーを接続しました。

ステップ1:最初にこれらのInstructablesを実行する

これを行う必要がありますInstructable @ http://www.instructables.com/id/Raspberry-Pi-Garage-Door-Opener
次に、これを@http://pimylifeup.com/raspberry-pi-webcam-で行いますserver /
次に、ボタンと同じ画面にビデオを作成するために変更したものを表示します。

ステップ2:次の\ var \ www \ style.cssを編集

[メール保護] $ nano /var/www/css/style.css
すべてのテキストをこれに置き換えます(貼り付けするとフォーマットが削除されるようです)IPアドレスをRasPiに置き換えます。
html、body {
margin:0px;
padding:0px;
background:#263238;
background-image:url(“ http://192.168.1.150:8081/videostream.cgi” );
background-size:980px 735px;
background-repeat:no-repeat;

text-align:left;
}
div.awrap {
position:fixed;
height:150px;
left:110px;
top:792px;
width:760px;
text-align:left;
}
a {
display:inline-block;
border-radius:15px;
border:2px solid#263238;
width:760px;
height:150px;
background:#B5B1B1;
-moz-box-shadow:inset 0 0 10px#000000;
-webkit-box-shadow:inset 0 0 10px#000000;
box-shadow:inset 0 0 10px#000000;
-webkit-tap-highlight-color: rgba(255、255、255、0)$
}
a:active {
background:#263238;
-moz-box-shadow:inset 0 0 50px#000000;
-webkit-box-shadow:inset 0 0 50px#000000;
box-shadow:inset 0 0 50px#000000;
}

ステップ3:sudo nano / var / www / index.phpを変更する

ステップ4:sudo nano / etc / init.d / garagerelayを変更する

#! / bin / bash

#/ etc / init.d / garagerelay

#システムから要求されたときに特定の機能を実行する

ケース「$ 1」

開始)

echo“ Starting Relay”

#0をオンにすると、リレーがオフになります

/ usr / local / bin / gpio write 0 1

#BCM出力モードでGpio0または17を開始

/ usr / local / bin / gpioモード0出力

#BCMでGpio2または27をプルアップモードで起動します(マグスイッチのグラウンドとしてBCM 27の右側のピンを使用)

/ usr / local / bin / gpioモード2in

/ usr / local / bin / gpioモード2アップ

;;

停止)

echo“ Stopping gpio”

;;

*)

エコー「使用法:/etc/init.d/garagerelay {start | stop}」

出口1

;;

esac

0を終了

ステップ5:起動時にモーションを開始する

$ sudo nano /etc/init.d/cam_motion
次に、ブロブを下に貼り付けます
#! / bin / sh
#/ etc / init.d / cam_motion
#システムから要求されたときに特定の機能を実行します
case“ $ 1” in
start)
echo「カメラモーションの開始」
nohup / home / pi / mmal / motion -n -c /home/pi/mmal/motion-mmalcam.conf 1> / dev / null 2>&1;;
stop)
echo“ Stopping Camera Motion”
killall motion
;;
*)
echo“ Usage:/etc/init.d/cam_motion {start | stop}”
exit 1
;;
esac
exit 0
crtl o to save
crtl x to exit
実行可能にする
$ sudo chmod 777 / etc / init.d / cam_motion
起動時に開始する
$ sudo update-rc.d -f cam_motion start 4
再起動

詳細:ドアステータスのストリーミングビデオ付きのラズベリーパイガレージドアオープナー。


製造プロセス

  1. DS18B20で温度を読み取る|ラズベリーパイ2
  2. RASPBERRYPIによる温度測定
  3. ラズベリーパイで温度を監視する
  4. Raspberry PiのHAでのモーションセンサー、アラーム、ビデオ録画
  5. ラズベリーパイで雷を検出する
  6. tコブラープラス付きラズベリーパイ2ウォーターアラーム
  7. ThingSpeak Temperature Monitor with Raspberry Pi
  8. ラズベリーパイと湿度センサーを備えたエアロポニックス
  9. LIRCなしでRaspberryPiでIRRemoteを使用する
  10. 巣箱のカムとラズベリー
  11. スリープモードのラズベリーパイシャットダウン回路