Networking and Communications

Design

I design 2 type of boards but both have Atmega328.
For design this board i use eagle.
This one have the pinout for the driver A4988 have the digital pins and analog pins.
I use this board to the sender.

This is one is more simple have pins analog pin digital and pins to vcc and gnd. I use this board to the receive.

Connect

To make the communication of this two boards i use the pins RX and TX also i use this one to give power to the other i connect the pin vcc and gnd to the other.
The pin RX is the pin where receive the data and TX is the pin where send the data.

To connect in the right way is to Connect RX to the TX the other board and to connect the TX to the RX to the other board.

Programming

I make a simple code to make the communication.
To the board sender i program the board to make Serial Write 1 and wait 5000 miliseconds and Serial Write and wait 5000 miliseconds in the loop.
To the receive board i program the board if reveice Serial Read 1 make Serial print "receive: 1" if receive 0 make Serial print "receive: 0".
Can check this exemple in this video.