You will find a complete description on locoduino.org to build your own Railcom system : https://www.locoduino.org/spip.php?article334