L298N + linear actuator control

hi all! I have a linear actuator 12v DC Motor from aliexpress . .

can anyone give me the code to control this motor auto (without any buttons)

  1. 0% (pipe out) delay 20000
  2. 50% (pipe out) delay 20000
  3. 100% (pipe out) delay 20000

What is the stall current of the linear actuator?
It is likely that the L298N driver will not work.

Presumably the 0, 50 and 100% are the extension? How does the thing know how far it's gone? Are there limit switches or what? Limit switches would typically be at the, well, limits, so not sure how the 50% would work.

You will need to provide far more detail than just "a linear actuator 12v DC Motor from aliexpress", like the datasheet for example.

Also post the code you have so far....