2008年12月13日土曜日

新しいインターフェース

タッチパネルの存在は今やなくてはならないものになった。
自分が使っているMacBookにだってもちろんついている。とても便利です。
君なしには生きていけないってぐらい便利です。

けど、その上にもっと大きな入力インターフェースが目を光らせながら
勇ましく寝そべっている。私たちが伝えたいことをすべて受け入れてくれる。
彼はいくら叩かれても文句を言わない。無償の愛の体現者。
そう、キーボードである。
私は思うのです、なぜ表面の半分以上を占めている
インターフェースが、文字入力にしか使えないのか!!もったいない!!
と、いうことで新しいインタフェースのプロトタイプアプリケーション
TouchBoardを作ってみました。



使い方は簡単。ホットキーを押すとキーボードがタッチパネルに大変身。左クリックもホットキーで操作できます。ただ、まだ制作途中なのでキーの反応はいまいち・・・。

理想的には、キーボードの上にのせられた透明なフィルム状のセンサーでマウスポインタの座標をコントロールできるといい。作ってみたい・・・(協力してくれる人募集中)。
イメージはこんな感じ?
送信者 chabashilah


今回はコンセプトモデルの段階なので、しっかりとしたものするためにもうちょい改良加えてみます。

2008年12月5日金曜日

Arduino XBee Shield Jumpers setting

英語のままだとわかりにくかったので翻訳してみた。おかしなところがあったら教えてくださいな。


訳)
ジャンパーの設定

Arduino XBee Shield には2つのジャンパーがある(2つのプラスチックの軸受けがそれだ。これらは3つのピンのうち、XBeeもしくはUSBと書かれたそれぞれ2本に接続される)。
これらはXBeeのシリアル通信がArduino上のマイクロコントローラー(ATmega8、もしくはATmega168)とFTDI USBシリアルチップとでどのように行われるかを決める。

ジャンパーをXBeeの位置にさした場合(ボードの内側の2ピン)、XbeeのDOUTピンがマイクロコントローラーのRX(受信)ピンに接続され、DINがTX(送信)に接続される。注意してもらいたいのが、マイクロコントローラーのRX、TX両ピンは依然としてFTDIチップに接続されているということだ。つまり、マイクロコントローラーから送信されたデータはUSBを通してコンピューターに送られ、同時にXbeeによりワイヤレスでも送信されているのだ。しかし、マイクロコントローラーはXbeeのデータを受信するのみで、USB経由でコンピューターからデータを得ることはできない。

ジャンパーをUSBの位置に指した場合(ボードの端の方の2ピン)、XbeeのDOUTピンはFTDIチップのRX(受信)ピンに、DINがTX(送信)に接続される。これはXbeeが直接コンピューターと通信できることを意味するが、これはマイクロコントローラーがArduinoから取り除かれた時のみ有効になる。もしも、マイクロコントローラーがArduino Boardに残されたままだと、USB経由でコンピューターと通信することができるが、コンピューター、もしくはマイクロコントローラーはXbeeモジュールと通信することはできない。

原文)
Jumper Settings

The Xbee shield has two jumpers (the small removable plastic sleeves that each fit onto two of the three pins labelled Xbee/USB). These determine how the Xbee's serial communication connects to the serial communication between the microcontroller (ATmega8 or ATmega168) and FTDI USB-to-serial chip on the Arduino board.

With the jumpers in the Xbee position (i.e. on the two pins towards the interior of the board), the DOUT pin of the Xbee module is connected to the RX pin of the microcontroller; and DIN is connected to TX. Note that the RX and TX pins of the microcontroller are still connected to the TX and RX pins (respectively) of the FTDI chip - data sent from the microcontroller will be transmitted to the computer via USB as well as being sent wirelessly by the Xbee module. The microcontroller, however, will only be able to receive data from the Xbee module, not over USB from the computer.

With the jumpers in the USB position (i.e. on the two pins nearest the edge of the board), the DOUT pin the Xbee module is connected to the RX pin of the FTDI chip, and DIN on the Xbee module is connected to the TX pin of the FTDI chip. This means that the Xbee module can communicate directly with the computer - however, this only works if the microcontroller has been removed from the Arduino board. If the microcontroller is left in the Arduino board, it will be able to talk to the computer normally via USB, but neither the computer nor the microcontroller will be able to talk to the Xbee module.


XBeeの設定ページのもと
http://www.arduino.cc/en/Main/ArduinoXbeeShield

2008年12月4日木曜日

arduino grapher

i made graph viewer of analog input for debugging.

arduino ping pong

i made a ping pong game. the controller are variable resistances!!

Arduino XBee Shield Configuration

I didn't know why I can't configure my XBee shield. The reason was I didn't pull ATMEGA168 out from arduino diecimila!!

Then just type
screen /dev/tty.usbserial*** 9600
to configure your XBee Shield.

Sigh, it took a lot of time to know that.