Reading Signal To Servo

My Arduino question is below, but here is the background of the problem I'm trying to solve: I bought a board (not an Arduino) for my model railroad that senses when a train is coming and makes grade crossing signals activate. One functionality of this board is it has three output pins to send a signal to a servo to rotate 90 degrees so the crossing gate arm goes down. (Of course the three pins are the power and signal wire.) It only has one place to plug the three servo wires into. With one servo it works perfectly. However, I need two servos to operate the gates on each side of the tracks. I tried simply splitting the wires to send its signal to two servos, but when I do that the servos get glitchy, sometimes activating and deactivating at the wrong times and the board itself gets glitchy like its getting some interference back from the servos. Would anyone know how to prevent that?
I am wondering if an Arduino could solve my problem. My thought is to plug the output control wire into the Arduino instead of a servo. Then program the Ardunio to listen for the signal, and have the Arduino tell each of the servos to rotate 90 degrees. But I'm not sure how to have the Arduino listen to the signal. What would the code look like to read that pin and sense that a servo activation signal had been sent?

Thanks for any help!

Victor

Hallo victortorgrimson

Sometimes it is easier to write your own railway control programme than to somehow read in complicated interfaces.

1 Like

Try giving the 2nd servo a separate source of power (with grounds connected, of course).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.