raspberrylife.wordpress.com
2014年2月 – Raspberry Life
https://raspberrylife.wordpress.com/2014/02
A fine WordPress.com site. NOOBSの最新版(NOOBS v1 3 4.zip)をSDメモリに展開して、手順通りにインストールを行ったのだが、Raspbianだけがインストールを選択できないという謎の症状に陥って、前回は結局NOOBS Liteでインストールを行った。 でフォーマットを行ったあと、NOOBS v1 3 4.zipをSDメモリ上に直接展開。 Raspberry PiへのOSインストールは、以前はダウンロードしたRAWイメージをSDカードに書き込む方式しか選択肢が無く、書き込むドライブを間違えると悲惨なことになるので注意が必要だったのだが、新しくリリースされているNOOBS(New Out of Box Software)はSDカードにダウンロードしたファイルをコピーするだけでRaspberry Piで起動する状態になる。 からNOOBS (offline and network install)をダウンロードして、SDカードのフォーマットツールで初期化した4GBのSDカードに展開。 への Raspberry PiにカラーGLCD….
raspberrylife.wordpress.com
Node.js(2) GPIO – Raspberry Life
https://raspberrylife.wordpress.com/2015/05/12/node-js2-gpio
A fine WordPress.com site. Raspberry PiにNode.jsをインストールして、ExpressフレームワークでWebアプリを簡単に作成して動かすことができたが、何もデバイスを制御しない状態ではRaspberry Piを使う意味が無いので、まずはGPIOを制御するモジュールを追加して簡単な制御を行ってみる。 Express -e led $ cd led $ npm install $ npm install onoff. を実行するか、あるいは生成されたpackage.jsonにパッケージ名”onoff”を追加してから npm install を行えば良い。 このパッケージを使用してGPIO操作を行う場合、ユーザがgpioグループに属していればルート権限が不要なのでデフォルトの pi ユーザならそのままで使えるが、新たに作成したユーザでログインしている場合はsudoを付けてNode.jsを起動するか、あるいはそのユーザをgpioグループに属させる必要がある。 Sudo gpasswd -a ユーザID gpio.
raspberrylife.wordpress.com
2014年11月 – Raspberry Life
https://raspberrylife.wordpress.com/2014/11
A fine WordPress.com site. Remminaを起動すると以下のようなウィンドウが表示されるので、最初にツールバーの左から二番目にある 新規リモートデスクトップの作成 をクリックしてRaspberry Piを登録する。 サーバーに接続先PCのIPアドレスを入力するのだが、Raspberry Piに Avahi をインストールしてあるので、IPアドレスではなく ホスト名.local を設定している。 インストールはRaspberry Piのコンソール ターミナル から. Sudo apt-get update $ sudo apt-get install avahi-daemon. Avahiをインストールすると、その後は同じネットワーク内でZeroconfに対応したPCからは ホスト名.local でアクセスする事ができる。 Raspberry Piのホスト名をデフォルトから変更していなければ raspberrypi.local になる。 Qt Designerで作成した .ui ファイルには、フォームとコントロール全ての情報がxml形式で含まれていて. Qt Creatorに含ま...
raspberrylife.wordpress.com
Webカメラ – Raspberry Life
https://raspberrylife.wordpress.com/2013/02/25/webカメラ
A fine WordPress.com site. Raspbian wheezy の最新版にはデフォルトでUVC(USB video device class)対応のUSBカメラドライバが入っていると聞いたので、会社に転がっていたバッファローのUSBカメラを接続。 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub. Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter. Bus 001 Device 005: ID 0c45:62e0 Microdia MSI Starcam Racer. Sudo apt-get install motion.
raspberrylife.wordpress.com
MATE – Raspberry Life
https://raspberrylife.wordpress.com/2013/10/30/mate/comment-page-1
A fine WordPress.com site. Linux Mintディストリビューションの標準デスクトップ環境の一つとして採用されているMATE マテ はWindowsライクな外観と数多くのツールを持ち、比較的軽量らしいのでRaspberry Piで試してみる事にした。 RaspbianにMATEをインストールする為には、最初にパッケージ情報ファイル /etc/apt/sources.list にリポジトリ行を追加する必要がある。 Sudo nano /etc/apt/sources.list. Http:/ archive.raspbian.org/mate. Sudo apt-get install mate-core mate-desktop-environment. Sudo update-alternatives --config x-session-manager. There are 4 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).
raspberrylife.wordpress.com
Node.js(5) three.js – Raspberry Life
https://raspberrylife.wordpress.com/2015/05/30/node-js5-three-js
A fine WordPress.com site. Git clone https:/ github.com/tokoya/node three.git $ cd node three $ npm install $ npm start. ブラウザからは前回と同じように Raspberry PiのIPアドレス:3000/users へアクセス。 Threejsは実行時にサイトからダウンロードする事も可能なようだが、ローカルなネットワーク環境下でも動かせるように/public/javascripts/にthree.min.jsとTrackballControls.jsを予め置いてある。 への Raspberry PiにカラーGLCD….
raspberrylife.wordpress.com
2014年10月 – Raspberry Life
https://raspberrylife.wordpress.com/2014/10
A fine WordPress.com site. 0xbd: print('device incorrect.') sys.exit() i2c write(LPS25H, 0x20, 0x90) time.sleep(1) try: while True: pha = get press(LPS25H) print(pha, hPa) temp = get temp(LPS25H) print(temp, C) time.sleep(1) except KeyboardInterrupt: print(' nbreak'). 普段仕事で使用しているのがWindows PCなので、Raspberry Piへリモート接続する場合はWinSCPやputtyといったWindows用のツールを使用して行っているのだが、Raspberry PiはLinuxベースなのでリモート接続もLinuxからのほうが簡単に行える。 Ssh -l pi 192.168.1.2. ファイルマネージャのメニューで 移動 指定場所を開く を選択、または Ctrl L を入力。 Sudo apt-get install sshfs.
raspberrylife.wordpress.com
加速度センサ – Raspberry Life
https://raspberrylife.wordpress.com/2013/04/19/加速度センサ
A fine WordPress.com site. 動作電圧が2.4V 3.6Vで、5Vでは動作しないから5V動作のArduinoで使う時は注意が必要なのだが、Raspberry PiはGPIOが3.3Vなので都合が良い。 2 : VDD 6 : AVDD 8 : CS. Pi@raspberrypi $ sudo i2cdetect 1 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-1. I will probe address range 0x03-0x77. Continue? への Raspberry PiにカラーGLCD….
raspberrylife.wordpress.com
2014年12月 – Raspberry Life
https://raspberrylife.wordpress.com/2014/12
A fine WordPress.com site. Sudo apt-get install vsftpd. Anonymous enable=NO local enable=YES write enable=YES. Sudo service vsftpd restart. 従ってブラウザのモニタ画面でボタンを押された時に画像をFTPサーバへアップロードする場合は、アクションルールに マニュアルトリガ 、レシピに FTP転送 を設定する事になる。 Root', 'xxxxxxxx') netcam.save(). への Raspberry PiにカラーGLCD….