2013年11月17日日曜日

ラジコンヘリ


奥の深道 芸能人ラジコンヘリ 同類君

http://www.youtube.com/watch?v=Nfr5yjwBX2c

2013年9月13日金曜日

R をインストール

Rは統計処理が得意な言語らしいので、MacBookPro(MacOSX 10.8)にインストールしてみた。

http://essrc.hyogo-u.ac.jp/cran/
から、
R-3.0.1.pkg をインストール

次のサイトを参考にした。
https://sites.google.com/site/casualmacr/
こっちも、
http://ch3cooh.hatenablog.jp/entry/20121214/1355455184

MacBookPro アプリケーションに Rコンソールのアイコンができたので
クリック。


おぉ、簡単だ。

demo()って入力してけど、なんもでないよ。 まぁ、いいか。

参考にしたサイトに私も習って、RStudioをインストール。
http://www.rstudio.com/ide/download/desktop

べんり。

demo()って入力すると、コマンドヘルプが表示されるんだね。
それによると、demo(image)とかって、入力すると、デモンストレーションが表示される。

Rを学ぶに良い資料をググる。
google検索「R言語」

こことか、わかりやすい。
http://chianti.ucsd.edu/~rsaito/ENTRY1/WEB_RS3/PDF/JPN/Texts/R_Stats2.pdf

今日はここまで。


2013年9月10日火曜日

mbed を 調べています。

mbed 面白い。
Ethernet やUSBが配線だけでつながるとか便利がいい。

GPS受信機とインターネットのインターフェイスを作って、遠隔のモニタに利用しよう。


2013年8月29日木曜日

Teraterm で 16進表示


Tera termで16進数を取得するのは以下の通り。
  1. メモ帳でTERATERM.INIを読み出す
  2. Debug行をDebug=onと書き換える
  3. Teraterm起動
  4. 「Shift+Esc」を押すごとに、
  5. 通常表示 -> デバッグモード -> 16進デバッグモード -> 非表示- > 通常表示 ->…… と 切り替わる

2013年8月1日木曜日

Grove for Arduino on the Mac


http://www.seeedstudio.com/wiki/Grove_-_Serial_LCD
ライブラリーは、 v1.1からダウンロード

違うファイルをダウンロードしていたらしく、コンパイル時にエラー。 イライラ。

ダウンロードをやり直すと、すんなりと動作した。

http://www.seeedstudio.com/wiki/index.php?title=GROVE_-_Starter_Kit_v1.1b#Grove_-_Temperature_Sensor

を参考に、温度計を作成。  

---------------------------------------
#include <SerialLCD.h>
#include <SoftwareSerial.h> //this is a must
#include <math.h>
// initialize the library
SerialLCD slcd(11,12);//this is a must, assign soft serial pins

const int tempPin = 0;

void setup() {
  // set up
  slcd.begin();
  // Print a message to the LCD.
  slcd.print("Temperature is:");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  slcd.setCursor(0, 1);
  // print the number of seconds since reset:
//  float TT = readTemp();
  SLCDprintFloat( readTemp() ,1);
  slcd.print(" Celsius");
  delay(1000);
}

void SLCDprintFloat(double number, uint8_t digits)
{
  // Handle negative numbers
  if (number < 0.0)
  {
     slcd.print('-');
     number = -number;
  }

  // Round correctly so that slcd.print(1.999, 2) prints as "2.00"
  double rounding = 0.5;
  for (uint8_t i=0; i<digits; ++i)
    rounding /= 10.0;

  number += rounding;

  // Extract the integer part of the number and print it
  unsigned long int_part = (unsigned long)number;
  float remainder = number - (float)int_part;
  slcd.print(int_part , DEC); // base DEC

  // Print the decimal point, but only if there are digits beyond
  if (digits > 0)
    slcd.print(".");

  // Extract digits from the remainder one at a time
  while (digits-- > 0)
  {
    remainder *= 10.0;
    float toPrint = float(remainder);
    slcd.print(toPrint , DEC);//base DEC
    remainder -= toPrint;
  }
}

float readTemp()
{
  const int B=3975;
  double TEMP;
  int sensorValue = analogRead( tempPin );
  float Rsensor;
  Rsensor=(float)(1023-sensorValue)*10000/sensorValue;
  TEMP=1/(log(Rsensor/10000)/B+1/298.15)-273.15;
  return TEMP;
}

------------------


このページを参考にしてます.


-------------------------------
続けざま温度・湿度計にも挑戦中。こっちは単純なアナログ値ではないので、しきい値が高い。
(やはり、アナログ値みたいですね。でもどうするんだろ?)
やっぱり違うみたいね。
http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Weather/RHT03.pdf
Output signal is  digital signal via MaxDetect 1-wire bus.
ってなんだろ。

http://wiki.openpicus.com/index.php?title=Grove_-_Temperature_and_Humidity_Sensor_Pro

サンプルのzip ファイルはなんか変。
こちらに、展開したファイルを再び圧縮したファイルを置いてみた。

ファイルの置き方については、これを参考にした。
http://hinaoka.blogspot.jp/2011/04/blog-post_21.html






2013年7月26日金曜日

Mac OSX (Mountain Lion) でのフォルダーの上書きコピー

Mac OSXではフォルダーごとコピーすると、
相手先のフォルダで同一名のフォルダを消して、新しくフォルダが作られる。

差分だけをコピーする上書きコピーではないので、注意が必要。
いちど作業すると元にもどらない。のでタチが悪い。


option を押しながら D&D.  結合を選んでコピーするとよい。


http://sitearo.com/osx/fileCopy/  が参考になった。

Oracle VM Virtual Box をインストール

iMac にOracle VM Virtual Box をインストールしてみた。

ゲストOSは、Debian をインストール中。

最小限のisoファイル(i368用)をダウンロードした(サイズは、256MB)。
Virtual Boxで、 イメージファイル(?)を設定して  実行。
インストールメディア(デフォルトはDVDドライブ)を聞いてくるので、
先ほどダウンロードしたisoファイルを指定すると、 インストール ルーチンに入るので、メッセージに従って、<はい>や <続ける>をタブとenterとスペースを使って選ぶだけ。
ネットワーク越しに、インストールを開始。

なんか、懐かしい画面が...。

CUIインストールを選んだけど、 GUIインストールを選んだ方が楽だったかも?