Options for linear actuators with Arduino Nano

Actually its an evolving problem. Trying to build it inside out. Don't have the full pic myself.

I have decided to do this cleanly and not try to hack it. Have ordered a stepper and some attachments, some guide rails, seeing if I can do a neat job making my own linear actuator. Stepper should definitely be enough to give me the control I want. The probe meets a silicone soft surface where we ramp up the force. Of course that ramp would depend on the softness of the silicone and not just our set speed. A controlled force ramp where I can just put in say "0-50gms in 5 seconds" would be sweet, but even a slow but steady force ramp would be fine I guess, doesn't matter that much.

ok, update.

I got myself a Nema 17

and a tmc2209 driver

and I thought, how hard should it be to turn a motor...but i just can't get this to turn. Where am I going wrong? This is what I have done till now.

  1. Check continuity between the four wires on the motor, and based on the beep decided that red / blue and black / green are pairs.

  2. I connected one pair to 1A 2A, ad the other to 1B 2B.

  3. Connected 12V dc to the top right pin. connected 5V DC to Vdd. Conencted all GNDs together. Put arduino D2 to step pin, and Arduino D3 to DIR pin.

  4. Used the following test code const int STEP_PIN = 2;
    const int DIR_PIN = 3;

    void setup()
    {
    pinMode(STEP_PIN, OUTPUT);
    pinMode(DIR_PIN, OUTPUT);

    digitalWrite(DIR_PIN, HIGH);
    }

    void loop()
    {
    digitalWrite(STEP_PIN, HIGH);
    delay(100);
    digitalWrite(STEP_PIN, LOW);
    delay(100);
    }

  5. I had heard that with the coil powered I wouldn't be able to turn the motor with my hand, but here I can.

Where am I going wrong?

You need to enable the driver by connecting EN to Gnd. EN is internally connected to Vdd via a 20k resistor. This disables the driver by default.

Did you set the coil current correctly?

Sorry, I forgot to mention, I connected EN to Gnd also.

How do we set the coil current? I tried turning the pot randomly, to no effect. I measured voltage between Pot and gnd, it was 1.5V

1.5V should be ~1A. Max is 2.5V (1.77A).

But if you can easily turn the motor by hand, it's not enabled. Did you ever connect or disconnect the motor coils while the driver was powered?
This is the schematic with some setup information.

couple of times...yes

Then you may have destroyed your driver. Always remove power when changing connections - especially the coil connections.

that's scary. are we sure? I can measure voltage on my output pins

Which pins and which voltage? Do you have a skope?

Of course you cannot be sure. But if it doesn't work... At least disconnectin/connectiong motor coils while the driver is powered often damages the driver.

I've got one more board with me...going to test it out, solder everything.

First time working with this component. Anything else I need to watch out for? don't want to burn another unit...these are small but expensive

Always disconnect power before changing the wiring :wink: And always double check the power connections before switching on ... :blush:

Yup, changed the board...now motor turns...

thanks