RS-232

Hello!

Its my first time to post here!
I have been searching if it was possible to use all of the 4 UARTs of the arduino mega and i think it is possible.

So if we need to connect to devices in RS232 levels we need to use MAX232.

I have made a quick drawing in fritzing, that is attached.

Reading the datasheet of the MAX232 chips can see that it can be used for 2 UARTS, TTL to RS232.

Maybe if someone is more experienced with the chip can tell us if that is possible.

What you say is correct. Can't tell if its wired correctly without a schematic that shows the IO of the RS232 (which is so many of us don't like fritzing) and if the DB9 connectors are connecting to pins 2,3,5.
MAX232 usually needs 5 caps, I'd say you are missing one. Some versions need 1uF caps, some like MAX3232 only need 0.1uF caps.

With Mega, you will use Serial, Serial1, Serial 2, Serial3.
Serial also connects to PC via the 16U2, you may have to pull the Rx pin at least while downloading new sketches to prevent interference.

You are absolutely right i was missing one capacitor. I am attaching the right one.

Today it was the first time i used fritzing and i hated it too!

I posted the drawing just for you to understand the idea!

It is impossible to understand if the wiring is ok.

So about UART0 do you think i should put two jumbers to Tx and Rx so as to pull them out when i want to programme the mega board?

@TeslaGR, your orphaned post is why hijacking is a bad idea. I'll move it to the correct location in a few minutes.

@TeslaGR, please do not hijack. Threads split and merged.

ok i am sorry about that, i thought it could help the other guy in the post i replied!