|
|
刚接触arduino,我的需求是要用板子连接GPRS模块,模块的提供方说是TTL3.3V的,我想问一下,第0脚和第1脚的RX TX,是否可以直接接GPRS模块的TX,RX 看了官方网站上好像说是和USB共用的是5V,那如果我用3.3V TTL是不是就要用到其它串口了,例如
Serial1 ,Serial2,这些,在程序中怎么调用,是 Serial3.println这类用法么
下面是官网的关于TTL的解释,高人给指点指点啊。
The Arduino Due has three additional 3.3V TTL serial ports: Serial1 on pins 19 (RX) and 18 (TX); Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX). Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip, which is connected to the USB debug port. Additionally, there is a native USB-serial port on the SAM3X chip, SerialUSB'.
The Arduino Leonardo board uses Serial1 to communicate via TTL (5V) serial on pins 0 (RX) and 1 (TX). Serial is reserved for USB CDC |
|