How to properly supply a motor?

Hello everyone!
I'm working on a project in which involves the use of two stepper motors. In particular nema 17.
My problem is how to supply motor and arduino mega 2560 in the same time.
Arduino mega 2560 needs 7-12V, while these motors needs 12V (0.4A each).
I bought the power adapter for 9V batteries for arduino. Some idea?

Use a 12V 2A supply for the motors (0.4A x two windings x two motors + some headroom).

Use a USB supply for the Arduino, then you can't have noise/spikes on the 12V supply damaging the
board.

Alternatively a decent(*) DC-DC converter can bring 12V down to 5V for the Arduino, and filter out most
of the noise/dropouts pretty well.

Also are you sure you have the right motors? They won't move particularly fast if they are high impedance.

(*) ie capable of a wide input voltage range

I need batteries because the prototype moves.
What other motors do you recommend? I do not need a lot of strength. One of the motors to lift 0.5/1.0kg maximum, with a maximum reach of 0.10-0.20m.
I'm looking for a battery that works for all
Thank you very much!

One of the motors to lift 0.5/1.0kg maximum, with a maximum reach of 0.10-0.20m.

In what amount of time and how often?

Sounds like you need linear actuators, not motors.

I want to build 2 (or 3) Axis Gimbal for my camera.
I know how a stepper motor works, I studied it in college. I don't know how to use the batteries to make them work outside the home.

Can you reconcile this:

One of the motors to lift 0.5/1.0kg maximum, with a maximum reach of 0.10-0.20m.

with this:

I want to build 2 (or 3) Axis Gimbal for my camera.

Which is it? Lifting or rotating?

Sorry for my english :frowning:
I need rotation. Look the attachments.

Image.png

The drawing doesn't look much like a camera gimbal. Unless your mechanical construction skills are quite good, you will have much better luck with a commercial camera mount. Servocity has a good selection and they are not expensive, in my opinion.

Stepping motors are power hogs and generally, are not used with battery powered systems.

No, that's a big lever arm to power - lots of torque wasted unless you can arrange a counter-balance
so that less force is needed. How fast do you want to wave that load around?