• 追加された行はこの色です。
  • 削除された行はこの色です。
%indent

* Arduino [#af771018]
* Arduino [#af771018]d [#i181010c]
- 本家参照: http://arduino.cc/en/Reference/HomePage
- 和訳参照: http://www.musashinodenpa.com/arduino/ref/

* センサー [#y2b6426f]
** 圧力センサー [#n8d1602f]
*** FSR-402 [#rbe019a9]
- 秋月 http://akizukidenshi.com/catalog/g/gP-04002/
- jkoba http://jkoba.net/prototyping/arduino/pressure_practice.html
- Hard
### verilog
Arduino arduino;
FSR-400 sensor;
R10kΩ R1;

sensor- = arduino.Gnd;
sensor+ = arduino.A1
sensor+ = R1-;
R1+ = arduino.Gnd;
###

- soft
### c
const int iSensor = 1;

void fSendInt1024(int a);

void setup() {
  Serial.begin(9600);
}
void loop() {
  int vSensor = 0; // in int[0:.1024]
  vSensor = analogRead(iSensor);
  fSendInt1024(vSensor);
  delay(500);
}

void fSendInt1024(int a) {
  char vData[6];
  vData[3] = '0' + a % 10;  a /= 10;
  vData[2] = '0' + a % 10;  a /= 10;
  vData[1] = '0' + a % 10;  a /= 10;
  vData[0] = '0' + a % 10;
  vData[4] = '\n';
  vData[5] = '\0';
  Serial.write(vData);
}
###

** 光センサー(硫化カドミウム CdS セル) [#w99d750f]
- 秋月 http://akizukidenshi.com/catalog/g/gI-00110/
- jkoba http://jkoba.net/prototyping/arduino/cds_practice.html

** コンパレータ [#y0f424aa]
|2u/chip|LM393N  | \25/1chip|\12.5/unit|
|4u/chip|LM339   | \30/1chip|\ 7.5/unit|
|2u/chip|NJM2903D|\100/5chip|\10.0/unit|
|4u/chip|NJM2901N| \50/1chip|\12.5/unit|

** 6.7kΩ [#v4531e1b]

    技術 一覧 検索 最新 バックアップ リンク元   ヘルプ   最終更新のRSS