2015-01-01から1年間の記事一覧

Arduino IDEのEdisonに対する挙動

#!/bin/sh # # clupload script to invoke lsz # Copyright (C) 2014 Intel Corporation # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the…

Ubuntu14.04でflashall.shして文鎮Edisonを復旧する

ここを参考に http://qiita.com/key/items/900bfc6dc6b660c50e2f Ubuntuにdfu-util0.8を入れたらできた(apt-getで入るのは0.5)dfu-util http://dfu-util.sourceforge.netlibusb-1.0.9 http://www.libusb.org sudo ./flashall -v

Virtual BoxがVERR_SUPLIB_OWNER_NOT_ROOTとなって起動しない

ここを参考に http://okogeki.hatenablog.com/entry/2014/06/10/152035/Applicationsフォルダの権限設定がおかしいらしい ls -l / total 93 drwxr-xr-x+ 301 20821 wheel 10234 11 24 14:04 Applications drwxrwxr-x@ 11 root wheel 374 7 25 2014 Developer…

PIC Kit 2でdsPIC32F2012に書き込み

ここを参考に http://www.eleki-jack.com/mycom2/2011/07/post_15.htmlICSPコネクタのピン配置 1番ピン /MCLR/Vpp VPPラインに接続、またリセット(MCLR)にも使用 2番ピン VDD 電源ラインに接続し、マイコンに電源を供給 3番ピン Vss GNDラインに接続 4番ピ…

Raspi2のGPIOレジスタのアドレス

http://qiita.com/typo-kun/items/b2b61dd533044ee49b71GPIO Function Selectレジスタのベースアドレスを Raspi B+ : 0x20000000 Raspi 2 : 0x3F000000に変更すればいい(追記)違ってた!!! http://qiita.com/moutend/items/534d597cf5c867273319 Raspi 2…

Raspi 2で自作デバイスドライバが読み込めない

root@raspberrypi:/home/pi/device-driver# insmod ssegled.ko Error: could not insert module ssegled.ko: Device or resource busy root@raspberrypi:/home/pi/device-driver# dmesg | tail [ 162.673488] ssegled loading... [ 162.673520] request_mem_…

Raspiカーネルのクロスコンパイル

ここを参考に https://www.raspberrypi.org/documentation/linux/kernel/building.md

Raspiのカーネルを特定のものにアップデートする

http://tech.enekochan.com/en/2014/03/08/upgradedowngrade-to-a-specific-firmware-kernel-version-with-rpi-update-in-raspbian/ 特定のコミットを指定してrpi-updateをかける sudo rpi-update 2ef601a50b68eebeeb4dc3c6c525855961891be6 コミットはrpi-f…

Ubuntuのディスクフォーマットがext3かext4か調べる

https://wiki.ubuntulinux.jp/UbuntuTips/Hardware/HowToKnowDeviceFileName $ sudo fdisk -l

MatlabでSimulinkのシミュレート終了を待機する

http://stackoverflow.com/questions/23918278/block-a-matlab-script-while-simulink-runs あんまりいい方法は無くて、get_parmでシミュレーションのステータスを取得するのが現状 set_param(sys,'SimulationCommand','start'); while ~strcmp(get_param(sy…

ホモグラフィー行列で台形ひずみを補正

http://mhr380.hatenablog.com/entry/2014/09/28/214457

ピエゾセンサで振動検知

Fundamentals of Piezoelectric Shock and Vibration Sensors http://www.digikey.com/en/articles/techzone/2011/dec/fundamentals-of-piezoelectric-shock-and-vibration-sensors 簡易的な方法 http://www.robotoid.com/appnotes/sensors-piezo-disc-touch…

SimulinkでArduinoのA/D変換値をリアルタイムキャプチャする

http://www.element14.com/community/thread/32223/l/arduino-uno-serial-comms-to-simulink?displayFullThread=true2つのSimulinkブロック間でシリアル値を渡すらしい 1. Enable External Mode in Simulink. Note: Arduino Uno is not supported for exter…

SimulinkでArduino RoTHを使う

RoTH = Run on Target Hardware手順は 0. Prepare 1. Build(Deploy) 2. Simulate(Run)例(Scopeは不要だがつけてみた) SimulinkとArduinoの連携も最新のやり方は本家を参考にすると良い。 1. Prepare for Run 注意点:明示的にシリアルポートを指定する(/de…

ArduinoとMATLABの連携(MATLAB 2015a)

Target Hardwareのライブラリの追加 $ supportPackageInstallerMATLABおよびSimulinkライブラリを追加する次の書籍を参考にしたが、やり方が異なるので注意。 ちなみにAPIもかなり変わっているので、本家のサイトかヘルプ画面からArduinoチュートリアルを見…

Maximaで部分分数分解と分数の簡単化

http://www.cc.kyoto-su.ac.jp/~mtkg/lecture/comp_A/2014/14.html partfrac(), ratsimp() (%i4) partfrac(x/(x+1), x); 1 (%o4) 1 - ----- x + 1 (%i5) ratsimp(%); x (%o5) ----- x + 1

Javaをインタプリタ的に実行するjavarepl

Javaの文法の確認に使える https://github.com/albertlatacz/java-repl

Railsのモデルで自分自身にアソシエーションを張る

http://stackoverflow.com/questions/5109893/rails-how-do-self-referential-has-many-models-work belongs_to :parent, :class_name => "Folder" has_many :folders, :foreign_key => "parent_id"

matlabのPatchのメモ

計測自動制御エンジニアの過去問

1 アラームマネージメントシステムについて,知るところを述べよ. 2 制御系のコントローラをディジタルコンピュータで実装する場合,どのようなことを考慮して, サンプリング周期(コントロールレート)を決定すべきか. 3 生体信号を計測す…

Androidデバイスのsqliteをダウンロードする

adb shell "run-as com.afri_inc.senri.demo chmod 666 /data/data/com.afri_inc.senri.demo/databases/tsuru.db" adb shell "run-as com.afri_inc.senri.demo cp /data/data/com.afri_inc.senri.demo/databases/tsuru.db /sdcard/" adb shell "run-as com.a…

財務諸表は何を表しているか

熱処理の種類

Annealing(焼きなまし) 電気炉の電源を切って自然に冷やす→パーライト+フェライト+セメンタイト共存状態? Normalizing(焼ならし) 室温で比較的速く冷やす→ソルバイト(微細なパーライト) Quench(焼き入れ) 油(トルースタイト)や水(マルテンサイト…

共晶と固溶体と化合物の違い

α-Fe3C(パーライト)・・・共晶:2つの相が相状態で結合しているα(フェライト)・・・固溶体:体心立方格子をとるα鉄の内部にCが無理やり進入している状態Fe3C(セメンタイト)・・・化合物:金属結合 or 共有結合???(→たぶんイオン結合 ... https://ja.…

鉄の相

フェライト(α・(*β)・δ) オーステナイト(γ) セメンタイト(Fe3C) パーライト(α-Fe3C層状に共析) ベイナイト トルースタイト ソルバイト マルテンサイト(オーステナイトから焼入れ(quench)でマルテンサイト変態)参考: http://club.pep.ne.jp/~sugidam…

炭素鋼の基礎

炭素鋼の基礎 http://ms-laboratory.jp/strength/ms2/ms_71/71.htm 炭素鋼を加熱して急冷するとき組織変化 http://ms-laboratory.jp/strength/ms2/ms_72/72.htm 炭素鋼をオーステナイトの状態から徐冷した場合の状態の変化 http://ms-laboratory.jp/strength…

OTA(On The Air)でiOSアプリをワイヤレス配布

http://kaigian.co.jp/taka/2013/ota.html

重いSTLをSolidWorksで読み込む

SolidWorksではSTLの読み込みオプションで、Import as to Solid bodyを選択すれば STLをソリッドで読み込める。 https://grabcad.com/questions/how-do-i-convert-stl-graphics-to-a-solid-modelただしこのやり方ではッシュのfaceが20,000?を超えると読み込…

MacでBluetoothのID(MACアドレス)を知る

http://apple.stackexchange.com/questions/49931/how-to-obtain-bluetooth-id-os-x オプションキーを押しながらBluetoothアイコンをクリックする

Nexus5とMacがペアリングできない

セーフモードでペアリングしたらできた http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008#U348008 セーフモードへの入り方: 電源長押し→Power Off長押し→Safeモードを選択