Model railway loop- reverse polarity

I was wondering if it is possible to program a Nano to handle the reverse polarity in a loop.
if it is - is it just a matter of having the dpdt switch wired for reverse polarity or is there another way.
Would I only have to change the HIGH-LOW condition for IN1 and IN2 of the motor Driver.

How much current is involved? Assume it is DC?

Reverse polarity of what?

Elaborate.

It is DC and running about 16volts.

We are sure you know what your hardware setup looks like, however, we do not.

Volts is NOT amps.

The track.

Oh.
The other kind of loop.

Why didn't you mention that?

Sorry do not know how to calculate amps from volts.

Don't compute. Measure with a meter of some sort. How much current you are switching will decide how to switch it.

As best as I can I have a AC-DC adapter 24v 6a with a Buck converter to bring the volts down to 16v.
I do not know how to use a multimeter to determine the exact current. (I do have one).

Fact is, you have not in any way described what you want to do.

We understand that you need to use a reversing switch of some sort to power the loop. If you want to automate it, you clearly want a relay. Generally a DPDT relay, but two SPDT relays will work just fine and will be more robust. You can get nice twin relay boards that an Arduino can control.

The question however that you have not answered is - what does an Arduino (Nano would be best if needed) have to do with this in the first place since a simple switch would do?

Or if you are proposing to use a motor driver board, well, give us the Web link for this motor driver as we will want to check that it is suitable.

OK - I already have a DPDT switch to handle the reverse polarity on my loop.
As I asked in #1 I was *wondering * if it could be done by arduino nano and what might be needed - which you have already sort of answered.
So lets just say that this is closed so I don't waste anyone's time and effort.
Thanks to you all for your responses.

But your Nano can't drive a switch, but it can drive a relay (with buffering).
You could also add a simple switch to control the relay manually.

1 Like

If you post the requested information and a schematic showing the connection from the
Nano to the track we MIGHT be able to answer your question. If you're just going to throw
your hands up and refuse to provide the needed information that you don't deserve an
answer.

Afraid you have the wrong end of the stick - I asked a question - some have partially answered that question, some have not - I can take way with me the information provided and try to work it out for myself. Thus saving everyone's time.

Unfair.

This is interestering - what kind of relay would be needed. Just a thought

A DPDT relay.

There are a lot of relays out there:

Pay attention to the voltages and currents in your circuit.

1 Like