How can I control two trains that are on different tracks and moving towards the same junction. I want in my project that the forward train may signal the previous train to reduce speed. I would like to accomplish this by using digital logic. Please help me i'm new here.