Pages: [1]   Go Down
Author Topic: Arduino mega puertos serial.  (Read 704 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hola compañeros, he pasado del arduino duemilanove al mega, por que tiene mas puertos serial, pero como puedo programarlos no se como hacer el programa, quiero leer por un puerto serial y por el puerto serial del usb mandarlo al monitor serial del ide, pero con el duemilanove no podia hacerlo al tener un unico serial, pero con mas de uno no se como proramar los demas.
Logged

Offline Offline
God Member
*****
Karma: 7
Posts: 635
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

En la referencia de la comunicación serie lo tienes explicado:

http://arduino.cc/en/Reference/Serial

El Mega tiene tres puertos adicionales que llamas como Serial1, Serial2 y Serial3.

Quote
The Arduino Mega has three additional 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). To use these pins to communicate with your personal computer, you will need an additional USB-to-serial adaptor, as they are not connected to the Mega's USB-to-serial adaptor. To use them to communicate with an external TTL serial device, connect the TX pin to your device's RX pin, the RX to your device's TX pin, and the ground of your Mega to your device's ground. (Don't connect these pins directly to an RS232 serial port; they operate at +/- 12V and can damage your Arduino board.)
Logged


Pages: [1]   Go Up
Jump to: