44 | | VIN. The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin. |
45 | | 5V. The regulated power supply used to power the microcontroller and other components on the board. This can come either from VIN via an on-board regulator, or be supplied by USB or another regulated 5V supply. |
46 | | 3V3. A 3.3 volt supply generated by the on-board FTDI chip. Maximum current draw is 50 mA. |
47 | | GND. Ground pins. |
48 | | Memory |
| 44 | '''Vin''' |
| 45 | (USBコネクタやその他の安定化電源からの5Vではない)外部電源の入力です。 |
| 46 | 外部電源は、このピンに供給してください。 |
| 47 | また、電源ジャックから供給している場合は、供給されているそのままの電圧がここに出力されています。 |
| 48 | '''5V''' |
| 49 | ボード上のマイクロコントローラやその他の部品に供給されている安定化された5V電源の導線です。 |
| 50 | この導線の電圧は、電源ジャックまたはVinからの電圧をボード上の電源レギュレータによって安定化したもの、またはUSBコネクタからの5V電圧です。 |
| 51 | また、外部の安定化電源からの5V電圧を、このピンに供給することもできます。 |
| 52 | 電源ジャック、Vin、5Vピンから供給された電圧がUSBコネクタに逆流することはありません。 |
| 53 | '''3V3''' |
| 54 | ボード上のFTDIチップが生成した3.3V電源です。このピンの最大負荷は50mAです。 |
| 55 | '''GND''' |
| 56 | グラウンドです。 |
56 | | Serial: 0 (RX) and 1 (TX); Serial 1: 19 (RX) and 18 (TX); Serial 2: 17 (RX) and 16 (TX); Serial 3: 15 (RX) and 14 (TX). Used to receive (RX) and transmit (TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins of the FTDI USB-to-TTL Serial chip. |
57 | | External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2). These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details. |
58 | | PWM: 0 to 13. Provide 8-bit PWM output with the analogWrite() function. |
59 | | SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language. The SPI pins are also broken out on the ICSP header, which is physically compatible with the Duemilanove and Diecimila. |
60 | | LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off. |
61 | | I2C: 20 (SDA) and 21 (SCL). Support I2C (TWI) communication using the Wire library (documentation on the Wiring website). Note that these pins are not in the same location as the I2C pins on the Duemilanove or Diecimila. |
62 | | The Mega has 16 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and analogReference() function. |
| 66 | 54本あるデジタルI/Oピンは、入力または出力に切り替えて使用することができます。 |
| 67 | 切り替えには[http://arduino.cc/en/Reference/PinMode pinMode()]関数、出力には[http://arduino.cc/en/Reference/DigitalWrite digitalWrite()]関数、入力には[http://arduino.cc/en/Reference/DigitalRead digitalRead()]関数を使用します。 |
| 68 | 入出力の動作電圧は5Vです。 |
| 69 | 出力として使用する場合の最大負荷は40mAです。 |
| 70 | 入力として使用する場合、20~50KΩのプルアップ抵抗が接続されます。 |
| 71 | 一部のピンには、特有の役割があります。 |
64 | | There are a couple of other pins on the board: |
| 73 | '''シリアル:0番(RX)1番(TX)、シリアル1:19番(RX)18番(TX)、シリアル2:17番(RX)16番(TX)、シリアル3:15番(RX)14番(TX)''' |
| 74 | シリアル通信の送受信(RX=受信、TX=送信)に使います。 |
| 75 | 0番および1番のピンは、FTDI USB~TTLレベルシリアル通信変換チップの対応するピンにも接続されています。 |
| 76 | '''外部割り込み:2番(割り込み0)、3番(割り込み1)、18番(割り込み5)、19番(割り込み4)、20番(割り込み3)、21番(割り込み2)''' |
| 77 | 設定により、これらのピンの値LOW、LOW→HIGHのエッジ、HIGH→LOWのエッジ、いずれかの方向の値の変化によって割り込みをかけることができます。 |
| 78 | 詳細については[http://arduino.cc/en/Reference/AttachInterrupt attachInterrupt()関数のページ]を参照してください。 |
| 79 | '''PWM:0番~13番''' |
| 80 | [http://arduino.cc/en/Reference/AnalogWrite analogWrite()]関数により、8ビットのPWMでアナログ電圧を出力することができます。 |
| 81 | '''SPI:50番(MISO)、51番(MOSI)、52番(SCK)、53番(SS)''' |
| 82 | SPIによる通信に使用することができます。 |
| 83 | SPIはハードウェア的にはサポートされていますが、現時点ではArduino言語ではサポートしていません。 |
| 84 | SPIのピンは、ICSPヘッダー(ISPヘッダー)にも接続されています。これらは、DuemilanoveやDiecimilaと同じ配列です。 |
| 85 | '''LED:13番''' |
| 86 | 13番ピンは、ボード上に搭載したLEDにも接続されています。 |
| 87 | 値がHIGHの時に点灯し、LOWの時に消灯します。 |
| 88 | '''I^2^C:20番(SDA)、21番(SCL)''' |
| 89 | [http://wiring.org.co/reference/libraries/Wire/index.html 「Wire」ライブラリ](解説はWiringのウェブサイトにあります)を使用すると、I^2^C(TWI)による通信を行うことができます。 |
| 90 | これらの配置は、DuemilanoveやDiecimilaと異なります。 |
66 | | AREF. Reference voltage for the analog inputs. Used with analogReference(). |
67 | | Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset button to shields which block the one on the board. |
68 | | Communication |
| 92 | アナログ入力は16本あり、それぞれ分解能は10ビットです(つまり、1024段階の値を取ることができます)。 |
| 93 | デフォルトでは0~5Vの範囲を計測しますが、AREFピンに電圧を与え、[http://arduino.cc/en/Reference/AnalogReference analogReference()関数]で設定することにより、範囲の上限を変更することができます。 |
| 94 | |
| 95 | この他、ボード上には以下のピンがあります。 |
| 96 | |
| 97 | '''AREFピン''' |
| 98 | アナログ入力ピンで入力を行う際の参照電圧を印加します。 |
| 99 | このピンに印加された電圧を参照電圧として使用するかどうかは、[http://arduino.cc/en/Reference/AnalogReference analogReference()]で設定します。 |
| 100 | '''Reset(リセット)ピン''' |
| 101 | このピンへの入力電圧をLOWにすると、搭載しているマイクロコントローラをリセットすることができます。 |
| 102 | シールドを搭載するとDuemilanove上のリセットボタンを覆い隠してしまうため、このピンを使ってシールド上にリセットボタンを装備するのが普通です。 |
| 103 | |
| 104 | == 通信 == |