How to make two arduinos (arduino mini and mega 2560)communicate each other

@PaulS and Paul_KD7HB,

You guys are correct. In fact, I tried to Tx of one Arduino to Rx of the other and vice-versa.

yes I want to make those arduinos communicate serially. For that purpose, I tried to upload the code on one arduino at a time.So, basically I would like to send a random number Serially (number which I used is 100) to the Arduino Mini.Mini, on the other hand, will wait for the number to be arrived Serially and if it receves 100 it will send high_voltage to pin 12.

For reference purpose, i have attached my code I want to execute and the Snapshot of the connections which i made on breadboard. The green wires in the snapshot(which are connected via FTDI cable to the laptop).

In spite of trying possible connections, it is not working. Please let me know if I made a mistake.

Thanks,

Arduino-mega-code.JPG