Changes between Version 4 and Version 5 of ArduinoMega


Ignore:
Timestamp:
Mar 27, 2009 12:33:34 AM (15 years ago)
Author:
sgk
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ArduinoMega

    v4 v5  
    2222|| 動作電圧                 || 5V                                           ||
    2323|| 入力電圧(推奨)             || 7~12V                                        ||
    24 || 入力電圧(最大定格)           || 6~20V                                        ||
     24|| 入力電圧(定格)             || 6~20V                                        ||
    2525|| デジタルI/Oピン            || 54本(うち14本はPWM出力も可能)          ||
    2626|| アナログ入力ピン             || 16本                                          ||
    2727|| デジタル出力の負荷電流  || 最大40mA                                       ||
    28 || 3.3Vピン(3V3)の負荷電流     || 最大50mA                                       ||
     28|| 3.3Vピン(`3V3`)の負荷電流   || 最大50mA                                       ||
    2929|| フラッシュメモリ             || 128KB(うち4KBはブートローだで使用)               ||
    3030|| スタティックRAM            || 8KB                                          ||
     
    3434== 電源供給 ==
    3535
    36 The Arduino Mega can be powered via the USB connection or with an external power supply. The power source is selected automatically.
     36電源の供給は、USBバスパワーまたは外部電源から行います。これらの供給源は、自動的に選択されます。
    3737
    38 External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector.
     38外部電源(USBでは無い場合)は、いわゆるACアダプタまたは電池です。ACアダプタは、中心電極の太さが2.1mmで中心電極がプラス(センター・プラス)のプラグを、ボードの左端の電源ジャックに差し込みます。電池を使用する場合は、下の段の左のピンヘッダの「`Gnd`」および「`Vin`」の場所に電池からの配線を差し込みます。
    3939
    40 The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.
     40外部電源の電圧の定格は6~20ボルトです。しかし、7ボルト以下の場合には、内部の5V電源が5Vに満たないことがあり、動作が不安定になる可能性があります。また、12ボルト以上の場合には、ボードに搭載する電源レギュレータが過熱しボードが破損する可能性があります。したがって、外部電源の推奨範囲は7~12ボルトです。
    4141
    42 The power pins are as follows:
     42電源関係のピンは以下のとおりです。
    4343
    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   グラウンドです。
    4957
    50 The ATmega1280 has 128 KB of flash memory for storing code (of which 4 KB is used for the bootloader), 8 KB of SRAM and 4 KB of EEPROM (which can be read and written with the EEPROM library).
     58== メモリ ==
    5159
    52 Input and Output
     60ATmega1280には、プログラムコードの格納用として128KBのフラッシュメモリがあります(このうち4KBはブートローダ用に使用されています)。
     61さらに、8KBのスタティックRAM、4KBのEEPROMがあります。
     62EEPROMは、[http://www.arduino.cc/en/Reference/EEPROM EEPROMライブラリ]を用いてプログラム中から読み書きすることができます。
    5363
    54 Each of the 54 digital pins on the Mega can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:
     64== 入出力 ==
    5565
    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.
     6654本あるデジタル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一部のピンには、特有の役割があります。
    6372
    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と異なります。
    6591
    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== 通信 ==
    69105
    70106The Arduino Mega has a number of facilities for communicating with a computer, another Arduino, or other microcontrollers. The ATmega1280 provides four hardware UARTs for TTL (5V) serial communication. An FTDI FT232RL on the board channels one of these over USB and the FTDI drivers (included with the Arduino software) provide a virtual com port to software on the computer. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board. The RX and TX LEDs on the board will flash when data is being transmitted via the FTDI chip and USB connection to the computer (but not for serial communication on pins 0 and 1).