Changes between Version 7 and Version 8 of ArduinoDuemilanove
- Timestamp:
- Oct 26, 2008 2:15:35 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ArduinoDuemilanove
v7 v8 82 82 一部のピンには、特有の役割があります。 83 83 84 '''シリアル通信:0番( 受信RX)、1番(送信TX)'''84 '''シリアル通信:0番(RX、受信)、1番(TX、送信)''' 85 85 シリアル通信の送受信に使います。 86 86 これらのピンは、FTDI USB~TTLレベルシリアル通信変換チップの対応するピンに接続されています。 … … 115 115 [http://arduino.cc/en/Hacking/PinMapping168 ArduinoとATmega168チップの入出力ピンとの対応]を参考にして下さい。 116 116 117 == Communication==117 == 通信 == 118 118 119 The Arduino Duemilanove has a number of facilities for communicating with a computer, another Arduino, or other microcontrollers. The ATmega168 provides UART TTL (5V) serial communication, which is available on digital pins 0 (RX) and 1 (TX). An FTDI FT232RL on the board channels this serial communication 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. 119 Arduino Duemilanoveには、コンピュータ、他のArduino、あるいは他のマイクロコントローラと通信を行う機能があります。 120 ATmega168はTTLレベル(5Vレベル)のUARTによるシリアル通信機能を持っていますが、この機能はデジタル入出力ピンの0番(RX、受信)および1番(TX、送信)で利用することができます。 121 Duemilanoveが搭載するFTDI FT232RLチップはこのシリアル通信をUSB上の通信に変換し、[http://www.ftdichip.com/Drivers/VCP.htm FTDIドライバ](Arduinoソフトウェアの配布物に同梱してあります)によって、パソコン上では仮想COMポートとして認識されます。 122 Arduinoソフトウェアにはシリアルモニタ機能があり、これを使うとArduinoボードが送信するデータを表示し、またArduinoボードに対してデータを送信することができます。 120 123 121 A SoftwareSerial library allows for serial communication on any of the Duemilanove's digital pins. 124 [http://www.arduino.cc/en/Reference/SoftwareSerial ソフトウェアシリアル通信ライブラリ]を使用すれば、0番1番以外の任意のデジタル入出力ピンでもシリアル通信を行うことができます。 122 125 123 The ATmega168 also supports I2C (TWI) and SPI communication. The Arduino software includes a Wire library to simplify use of the I2C bus; see the documentation on the Wiring website for details. To use the SPI communication, please see the ATmega168 datasheet. 126 127 ATmega168は、I^2^C(TWI)およびSPIによる通信の機能をも持っています。 128 Arduinoソフトウェアには、I^2^Cによる通信を簡単にするWireライブラリが含まれています。 129 このライブラリの詳細については、[http://wiring.org.co/reference/libraries/Wire/index.html Wiringのウェブサイト]を参照して下さい。 130 SPIによる通信の機能は、現状のライブラリでは提供していません。 131 SPIの使用方法については、ATmega168のデータシートを参照してください。 124 132 125 133 == Programming ==