Good day to you all, i am new in arduino and electrical. I am trying to run the linear actuator model Sumret SRA6000 with motor driver L298N. Will it works? If not work, what motor driver can i use for synchronize both linear actuator and is there any source for reference?
Thank you.
Specification SRA6000
stroke:250mm
Load capacity:6000N
No-Load capacity:5mm/s
Input voltage: dc12V
Below is the code that i use in Arduino.ide
Mod: added Code quotes.
Thank you.
Specification SRA6000
stroke:250mm
Load capacity:6000N
No-Load capacity:5mm/s
Input voltage: dc12V
Below is the code that i use in Arduino.ide
Mod: added Code quotes.
C-like:
#include <ActuatorsAndSensors.h>
#include <ActuatorsAndSensors.h>
#define IN1 2
#define IN2 3
#define ENA 4
//Instantiate the Linear Actuator
LinearActuator LinAct(IN1, IN2, ENA);
void setup() {
//Allows the actuator to recieve power
LinAct.turnOn();
}
void loop() {
int pwm = 255;
//Sends the actuator up at specified pwm (default value of 255 if not passed)
LinAct.goUp(pwm);
delay(5000);
//Stops linear actuator motion until a goUp() or goDown() but doesn't turn it off
LinAct.pause();
delay(5000);
//Sends the actuator down at specified pwm (default value of 255 if not passed)
LinAct.goDown(pwm);
delay(5000);
//Turns the linear actuator off, goUp() and goDown() will not work until turnOn() is called
LinAct.turnOff();
}
Last edited by a moderator: