I have found the tutorial "Serial Input Basics" written by Robin2. This tutorial is for receiving and encoding the data over a serial cnnection.
In my project I have 2 MEGA's which shoud 'talk' to each other.
So now I'm curious f there is a tutorial which explains how to prepare the data for sending.
I want to read the analog value of 5 Potmeters and the state of a number of switches at MEGA(1). And send this data to MEGA(2).
.AND.
I want to send some bytes, int's from MEGA(2) to MEGA(1) back.