ページ

2018年10月28日日曜日

Raspberry PiにLCD追加

海外旅行を目の前にして(結果的には旅行は中止になったのだが)、いつも主にバックアップのためだけにPCを持っていっていくことについて苦々しく思っていた。
日本ではSDから直接バックアップを取れるDiskが売られていないので、RasPiでできるじゃないかと自分で作ることにした。但し、SDからSDのコピーである。

今回したことは、LCDを購入してドライバーをインストールすること。タッチスクリーンにすると、うまくいけばmouse、keyboardなしで使えるかも。

使った部品は
Raspberry Pi 2 B+ (以前買ったもの)
Quimat 3.5インチタッチスクリーンディスプレイ (Amazonで購入)

テレビ(ディスプレイとして使用。うちにあるもの)
HDMIケーブル (以前買ったもの)
USBキーボード (iMacから借用)
USBマウス (以前windows PCで使っていたもの)
DC電源 (スマホの付属品)

はじめは、RaspbianはそのままでQuimatから来たDVDに従いインストールした。bootは始まるのだが、暗い画面で終了してしまう。これで1日終了。
翌日、(1)ではDVDを使わなかったと書いてあったので、(2)に従い、(3)からOS再インストール。

(4)・(5)でwifiに繋ぎ、(2)でLCDドライバー(LCD-show)インストール。rebootするがno signal。電源 on-offするもno-signal。ここで溜息ついてまた終了。
3日目。ふと思いついて、HDMIのTVを外しLCDに繋ぎ変えて再起動。一応動いた。しかし、画面がちらつく。解像度をみても間違いない。またrebootする。おお、今度はうまくいった。


まだ複数SDをつなぐ装置(下図の予定)を入手していないが、それは次回で。

参考になったサイト

(1)Raspberry Piに最適な小型ディスプレイ「Quimat 3.5インチタッチスクリーンディスプレイ」を素のRaspbianからセットアップする方法
全般的な話、ケース組み立て方など

(2)GitHub 2.4" 2.8"3.2" 3.5" 5.0" 7.0" TFT LCD driver for the Raspberry PI 3B+/A/A+/B/B+/PI2/ PI3/ZERO/ZERO W
Raspbian インストールからLCDドライバインストールまで

(3)Raspbian DOWNLOADS
Raspbian ORGのサイト。OSダウンロード、インストール方法等。

(4)Raspbian のWi-Fi設定(Raspberry Pi 初期設定)
GUI/CUIでの設定方法

(5)Raspberry Pi 3をUpdateしたらWiFiに繋がらなくなった
SSIDがステルスの場合の設定方法


2018年10月7日日曜日

吊りバンド Suspenders

ウエストがガバガバのズボンが沢山ある。まだ太っていた頃に考えもなしに買い溜めたツケだ。 ベルトで締めようとしても、ウエストが酷くシワシワになってみっともないし、十分締まらない。 サスペンダーを買った。最後に使ってから多分50年以上ぶりだろう。

I have many pants with very loose abound waist. It is a consequence of my having bought many without considering much before I started to reduce my weight. If I try to tighten a belt, the waistline gets uglily wrinkled and at the same time not being able to tighten enough. I bought a suspenders. It has been perhaps more than fifty years since I used one of these last.
Amazonをしばらく散策すると、上は英国製の1万円以上、下は千円以下とバラエティに富んでいる。
それぞれの違いは、

(1)全体の形: Y型、H型、ガンホルスター型
(2)ベルトの幅: 20mm〜35mm
(3)クリップの数: 3つ〜8つ
(4)クリップ等金具の素材: 鉄、真鍮、ポリカ
(5)所々に使われている接続具の材質: 合皮、革
(6)ブランド: アルバートサーストンというのが有名ブランドらしい

のようである。

After I browsed Amazon for a while, I found I have a variety of choise of price from over ¥10,000 to less than ¥1,000.
The difference among them are in;

(1)The whole shape: Y, H, gun holster;
(2)The width of the belt: 20mm - 35mm;
(3)The number of clips: Three - eight;
(4)The material of the metal parts: Steel, Brass, PC;
(5)The material of the connecting devices: Synthetic leather, Genuine leather;
(6)Brand: It seems Albert-Thurston is a leading brand.

エゲレス製有名ブランドを買えば間違いなさそうだが、それも面白くない。カスタマーレビューは、例によって自分勝手なものも多く、多くは当てにならない。あいまいなままで決心する必要がある。
形式張った服用を買う前にダメ元でGパン用に安いのを1つ買ってみることにした。したがって、ブランドは度外視。
幅は広いほうが肩の負担やゴムの耐久性にもよかろう。クリップは多いほうが外れにくそうで今はY型と言われる形がポピュラーらしいので、6個だな。金属はポリカは割れるという評判と、そのクリップの形式がそもそも問題という評判もあり、真鍮がbetterだが、安物の選択肢少なく、鉄で手を打った。接続具は写真上仕上げの悪そうな革より、正直な合皮で。

It would be safe to choose one of the famous English brands, but it is not interesting. The customer reviews are as usual often selfish and not dependable. I have to choose one without enough information. 
I decided to buy a cheap one for my jeans before I buy one for the suits. So, I ignored the brand name.
Wider width would be easier for my shoulders and good for the life of the rubber bands. The number of clips would better be more for the secure clip-on and the current trend I found is Y-shape, so I chose six clips. The metal I chose is steel as PC tends to crack and the structure of the clip is problematic according to the reputations, and also there are few choices in cheap suspenders with brass. Connecting devices I chose is of synthetic leather. Honest and well finished synthetic leather would be better than poorly finished genuine leather, I thought.

結局選んだのはこれだ。
Finally, this is the one I chose.

カスタマーレビューが1件だけで少々リスキーだったが半日の使用感としては気に入っている。妻にも¥5,000位かとおだてられた。

It was risky as the customer review for this one was only one, but I like this after a half day of use. My wife flattered me by saying they look like costing ¥5,000.