Windows7~10 Soft AP の設定


Windows7~10 Soft AP の設定方法は同じで、以下のURLを参考にして実行できます。

http://tabletpcnavi.com/windows10-softap/


EAGLEライブラリーをDS-PCBに取り込む手順メモ

EAGLEライブラリーをDS-PCBに取り込む手順メモ
DS-PCB : (DesignSpark PCB)

1.EAGLE - >ライブラリーをOpen

2.DS-PCBのインストールフォルダーの中の"EagleULP"フォルダーの中にある"LibraryToIntermediate.ulp"をULPで実行する。
 変換された中間ファイルは"***.eil"で、適当なフォルダーに保存する。

3.DS-PCBを起動し、"File"->"Library"でLibrary Managerを起動します。

4."Schematics Symbols"タブをクリックします。

5."NewLibrary"ボタンをクリックし、新しく作るライブラリの名前を入力します。(EAGLEライブラリの名前と同じにできれば便利です。

6."Add Files"ボタンをクリックし、先ほど保存した中間ファイル"***.eil"を選んで"開く"ボタンをクリックします。

7."PCB Symbols"タブをクリックし、上記5.6.を繰り返します。

8."Components"タブをクリックし、上記5.6.を繰り返します。

以上で、完了です。

Raspberry Pi Original Touch screen LCD Configration



○ 画面の上下を逆にする。
(タッチスクリーンも同時に逆になった。)

Rotating the screen
If you're using our stand, you'll have to rotate the screen. We've orientated it so that the Pi power, AV and HDMI ports are facing upwards, to keep the sleek low profile look, and the GPIO is at the bottom so you can wrap a ribbon cable underneath for easy access to GPIO via Black HAT Hack3r.

You can rotate the LCD by editing /boot/config.txt and adding the line: lcd_rotate=2 to the top.

You can do this by booting up your Pi, going into the Raspberry menu, picking "Accessories" and then "Terminal".

In Terminal, type "sudo nano /boot/config.txt"
Add the line "lcd_rotate=2" to the top of the file.
Press CTRL+X
Then Y
Then Enter.
And reboot!

MP3プレイヤー DFPlayer mini 覚書

MP3プレイヤー DFPlayer mini を使うための参考URL

DFPlayer Mini SKU:DFR0299 - Robot Wiki - DFRobot








ユニバーサルスイッチと組み合わせて、おしゃべりリモコンにしてみました。


ユニバーサルスイッチボックス


いろんなスイッチが接続できて、商用電源をオン・オフできる、スイッチボックスを作成しました。
中身は、ラズベリーパイZEROにSSRです。
GPIOをスクラッチでプログラムして使えるようにしました。
特別支援学校の先生等を念頭に、誰でも気軽にプログラムできる、ユニバーサルなスイッチボックスです。
およその製作費用の目安は
スイッチボックス、3500円です。(ケースはジャンク品を使ったのでただ)
スイッチの製作費用は
ぬいぐるみ型タッチスイッチが400円
スポンジ型プッシュスイッチが2000円
超小型指先スイッチが200円
大きいプッシュスイッチが200円
お問い合わせは涵養塾まで
http://www.chumup.nrt













参考
簡単な説明

Raspberry Pi 電源投入で、Scratchのプロジェクトを自動起動する

Raspberry Pi 電源投入で、Scratchのプロジェクトを自動起動する

1.Configの設定(本当に必要か?)
参照URL
https://www.raspberrypi.org/documentation/configuration/raspi-config.md

コマンドラインで以下を実行

   $ sudo raspi-config

メニューの中から
  3 Boot Option
を選択

選択メニューから
   B4 Desktop Autologin Desktop GUI, automatically logged in as 'pi' user
を選択

2.自動起動の設定ファイルを作る

   /home/pi/.config/lxsession/LXDE-pi/autostart
このファイルに以下の2行を付け加える
   @scratch /home/pi/startp.sb  (実行したいスクラッチのプロジェクトファイル)
   @python /home/pi/broadstart.py  (スクラッチを起動するためのコマンドを吐き出すプログラム)


3./home/pi/broadstart.py の中身
   import time           #timeモジュールの読込み
   time.sleep(60)        #60秒スリープ PiZeroの起動ではこのくらい
   import scratch        #Scratchモジュールの読込み
   s = scratch.Scratch() #Mesh Serverと接続
   s.broadcast("start")  #"start"を送る Scratchでこの"start"を受け取ったら開始とする

4.Scratchでのプロジェクト
  *プロジェクトの開始は、Pythonの s.broadcast("start") の文字列
 *GPIOを使うために "gpioserveron" を 送る
詳しくは下記URL参照
https://www.raspberrypi.org/documentation/usage/scratch/gpio/README.md

参考URL:
https://www.moyashi-koubou.com/blog/python_scratch_send_val_cmd/#scratchpy
https://github.com/pilliq/scratchpy

Raspberry Pi をパソコンやスマホで使う VNC

Raspberry Pi をモニター、キーボード、マウスなど接続せずに使うには、VNCがとても便利です。

 設定は、いろんなところで、紹介されています。

 私は、こちらのURLを参考に設定しました。

パソコンや、スマホのVNC Viewer は こちらを使っています。