Go Down

Topic: Arduino mega puertos serial. (Read 1 time) previous topic - next topic


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.


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


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


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.)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131