November 23, 2024, 07:09:44 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Wiring a 12V Motor Reverse Polarity Relay

Started by davisgraveyard, July 30, 2024, 03:20:32 PM

Previous topic - Next topic

davisgraveyard

I am trying to control a 12V Relay that drives a linear actuator causing it to push/pull rapidly.  The board has a programmable timer that is set to < 1 second.  The entire operation runs for 7 seconds.

When I turn on Pin9 so that there is 12VDC on the pin nothing happens with the board.  I am migrating this from a Prop1 and DC16 to a Prop2.

prop2wiring.png
relayboard.JPG

when I had it working before I had to use a separate 12v power supply to drive the board instead of wiring it to the V+ and ground of the Prop2.   

The code was from the Prop1 code that worked 

Solenoid PIN 9

Rattle_Solenoid:
  LOW Solenoid
  HIGH Solenoid
  PAUSE 7000
  LOW Solenoid
  PAUSE 100

davisgraveyard

Figured it out.  I looked at the old wiring of the DC16 and saw that I needed to wire the PIN9 to the power.  This diagram works.

prop2wiringfix.png

Jeff Haas

I see, Pin 9 toggles the GND for the relay module, which powers it up.  And once it's turned on, it reverses power on the linear actuator at the time you set up.  Is this what rattles the gate in the other stuff we talked about?

davisgraveyard

yes.  The relay has a timer circuit so I just have to apply 12v for 7 seconds and it will cycle the polarity as fast as it can and force the actuator to move in and out rapidly which rattles the gate.