Go Down

Topic: Relay as input to Arduino (Read 168 times) previous topic - next topic


My project is to make a controlled servo motor rotation by using relays. A simple example would be like servo rotating left for relay1 ON and servo rotating right for relay2 ON. Is there a way in which I can give relay as an input to Arduino to control the servo ?


Sep 25, 2019, 12:01 pm Last Edit: Sep 25, 2019, 12:30 pm by hammy
It's not clear what you mean here. I'm assuming you want a relay connected to an input and an Arduino output driving the servo ??
If you have a (spare) contact on the relay then you can use that connected to a digital input with a pull up resistor.

Have a lot at the digital examples in the ide or the beginners guides on this site.

If you dont have a spare contact if look at using an a direct connection , perhaps with a voltage divider from whatever powers the relay .

Could really have a bit more information - it's not clear if you saying the relay actually controls the servo directly or whether it's an input

Go Up