Communication between Atmega 328 and arduino due (Serial)

Hello,

I don't now where to post this so i did it here.

I'm making a project and in this project I use a atmega 328 for some background work.

My question is:
Is it possible to communicate with the arduino due and the atmega 328 trough serial (without making the arduino due ports broken)?

Thanks. I hope i'm clear enough. My english is verry bad at the moment.

Greets,
Peter

You can use the Software Serial library to set up a serial port on each, connect them together (RX to TX, TX to RX) and communicate without disturbing the hardware ports. I am not very familiar with the Due, it may have extra hardware ports that would be better used.

Hello,

Thank you for the reply.
I wondered if it is possible to communicate with the arduino due without breaking a port of the due. I know how to communicatie with Rx and Tx :wink:

(this beacause the arduino due use 3.3V and the atmega 328 5V)

There are level shifter shields available. I use a 4050 non-inverting buffer to go between my 3V3 stuff and Uno. The inputs to the 4050 are 5V tolerant when the 4050 is powered from 3V3 and the outputs from the 4050 are 3V3. I think you can wire the Due 3V3 output to a 328 input and it will be recognized as a high at 3V3.