Arduino controlled 12v Linear Actuator for Halloween Barrel Rising Prop

Hi, I'd like to get advice regarding a project using an Arduino Uno with a SEEED Relay Shield to control a
a 12v DC Linear Actuator from ServoCity. I am using this project from the project hub as my guide:

However, my project is different in that I don't want to have pushbutton control, I just want to put it the yard with a 30-120 second delay between the linear setting off the prop ( a Pirate Barrel, where the actuator lifts the lid, exposing a foam head in a mask i've attatched to the bottom of the lid. Is this possible? I have 4 relays on the SEEED relay board, but I am unsure of the wiring if, in the example from the Hub, each pushbutton controlled a different relay, triggering it to rise and lower. I would just like the prop to rise and lower on its own. I know that has to change polarity in the motor for that to occur, I'm just unsure how to pull it off. Thanks for any help you can provide.

If its for Halloween, you are preparing early.

To reverse the polarity of the linear actuator, google for "Arduino H bridge"
Using push buttons to control relays with timing is no problem.

halloweenrick:
Is this possible?

I have 4 relays on the SEEED relay board, but I am unsure of the wiring...

I'm just unsure how to pull it off.

Yes.

You only need two of the four relays, and the wiring exactly as in the article.
Motor wires to the two common (C) contacts of the two relays.
Motor supply ground to the two normally closed (NC) contacts.
Motor supply positive to the two normally closed (NC) contacts.

Here we usually don't write code for you, but we help with the code you have.
Controlling motor direction is just activating one relay at the time.
If you have no coding experience, then forget about the example, and go through some of the sketches that come with the IDE. Controlling a relay is not any different from controlling a LED.
Leo..

Thank you! Its working like a charm. Only thing for anyone following along is that:

Wawa:
Motor supply ground to the two normally closed (NC) contacts.
Motor supply positive to the two normally closed (NC) contacts.

The motor supply ground is hooked to the two normally open (NO) contacts.

I've got it with a 35 second delay in this coding example:
[code

/*

Manual Linear Actuator Control using an Arduino and 
This demo shows how to do basic manual control of a large linear
actuator using an Arduino. The first button extends
the actuator and the second retracts the actuator.
 
 
 
 * SEEED Relay#3 - Digital Pin 5
 * SEEED Relay#4-  Digital Pin 4 
 

 */

// constants won't change. They're used here to set pin numbers:
const int relay3Pin =  5;      // the number of the Relay3pin
const int relay4Pin =  4;      // the number of the Relay4pin



void setup() { 
  
  
  //start serial connection
  Serial.begin(9600);  
  
  // initialize the relay pin as an output:
  pinMode(relay3Pin, OUTPUT);    
  pinMode(relay4Pin, OUTPUT);    
}

void loop(){
    
    // turn relay3 on:    
    digitalWrite(relay3Pin, HIGH); 
    delay(35000); //activate for 35 seconds
  
 
    // turn relay3 off:
    digitalWrite(relay3Pin, LOW); 
    delay(35000);//deactivate for 35 seconds
  
  
    
    // turn relay4 on:    
    digitalWrite(relay4Pin, HIGH);
    delay(35000);//activate for 35 seconds 
  
 
    // turn relay4 off:
    digitalWrite(relay4Pin, LOW);
    delay(35000);//deactivate for 35 seconds 
  
}

][/code]