motor position control

Hello Arduino community.

I might like some infos to start a personal project :

I need to set a stepper motor to a predefined position (I will store in the program) when 2 analog inputs are read.

basically :

if analog1 reads 1Vdc
and analog2 reads 1Vdc > motor goes to position 1000 (absolute)

if analog1 reads 2Vdc
and analog2 reads 1Vdc > motor goes to position 1500 (absolute)

analog values are just examples ...

An arduino board and stepper controller would be a good start ?

thanks alot

Philippe

Well yes, an arduino and stepper driver would be needed... Look at the examples, particularly for
analog input and for the AccelStepper and Stepper libraries.

Have a look at Stepper Motor Basics

The Arduino will "forget" where the stepper was when it is powered off. It is usual to have a startup routine to move the stepper to a HOME or ZERO position that is detected by a limit switch and then count steps from that.

As you have not said what you are trying to achieve I wonder if a servo might be a better option as it has in-built position control.

...R

Hello Mark and Robin

I have a Haydonkerk linear actuator, I would need to set the motor position to get the right X axis position... the motor has a feedback encoder.

I thought about the start up routine, like you said :wink:

The problem for me is to "swallow" the code ! :confused:

Kind regards

I could maybe try with only one input to control the motor .. ?
Any tips to start ?

kind regards

Philippe

philippef:
Any tips to start ?

Break your learning into small parts.

Write short programs to control the motor, to control the actuator, to detect the position etc. When you know how do each piece separately it will be time to start joining things together.

Have a look at Planning and Implementing a Program

You still have not provided a description of your project.

...R

Robin2:
Break your learning into small parts.

Write short programs to control the motor, to control the actuator, to detect the position etc. When you know how do each piece separately it will be time to start joining things together.

Have a look at Planning and Implementing a Program

You still have not provided a description of your project.

...R

Robin
I 'd like to adjust fuel delivery on a small 4 stroke engine ... It depends on speed (analog1) and power lever (analog2 = angular sensor) ...

:wink:

philippef:
Hello Mark and Robin

I have a Haydonkerk linear actuator

Please give details, the datasheet/partnumber for all hardware mentioned, otherwise
we are guessing.

Mark

here's the motor (43H4Q)

http://www.haydonkerk.com/LinearActuatorProducts/StepperMotorLinearActuators/LinearActuatorsHybrid/Size17LinearActuator/tabid/79/Default.aspx#Stepper_Motor_Linear_Actuator_captive

here's the angular sensor

You don't need a new Reply for every little thing - group them together. Too many Replies makes the Thread hard to read.

There seem to be different variants for that motor - which have you got?
What stepper driver are you using?

Your 1.3 line description is still very minimal.

  • What about a diagram showing how it will all work?
  • How much force is required by the actuator?
  • How much precision is required?
  • How will you deal with vibration and temperature?
  • What is the angular movement of the power lever?
  • Is that lever moved by the operator?

And I'm sure there is lots more you could tell us that would help us to help you.

...R

philippef:
Mark

here's the motor (43H4Q)

Size 17 Hybrid Stepper Linear Actuator | 43000 series Linear Actuator | Haydon Kerk

There are three winding variants for the 43H4Q, 1.56ohm, 7.2ohm and 41.5ohm. Which do you have?

It's the 1.56ohm motor

Then you'll need a chopper driver capable of 1.5A, such as a DRV8825 board.

Thanks
Is there any specialized board to start with or a simple Uno will do the job ?
Regards
Philippe

Well the position sensor appears to run from 5V and provide an analog output, you
can drive a stepper driver via the AccelStepper library, so no special requirements I think.