How to connect stepper motor to controller to arduino then to google home

Hey guys and girls, I am in need of some assistance if you wouldn't mind (also new to this forum so I'm unsure what category to put it in)

(I'm a learner) - if that helps lol

So I'm new to arduino and need help making a automatic blind that opens and closes my blinds with a "okay google" command (with google home), I will design and 3d print the housing after I figure all this out, So currently I have a stepper motor, control board and a arduino board (all links to the parts are listed below) I am firstly asking if with my current parts it is possible to do what I am asking if not then please suggest the correct parts. So I want to say "okay google open my blinds" then the stepper motor will start spinning a x amount of steps then stop then vise versa

A parts list is below

Nema 17 stepper motor

stepper motor controller

arduino board

I have tried looking for help on this topic but I only found a few and they weren't the clearest to a beginner, I understand this is a pain and I love figuring out things on my own but this is beyond me, Hopefully once this is done I have my head wrapped around a bit more.

I have built 3d printers and cnc machines in the past so I have the arduino program but that was just copy and paste (easy tutorials)

Post a data sheet for the stepper. We need to see the coil current spec.

The L298 is an ancient and inefficient DC motor driver. It is totally unsuited for driving a modern bipolar stepper motor. A much better choice would be an A4988 or DRV8825 (depending on the coil current).

You will also need a power supply capable of supplying adequate current.

As to the Uno Wifi and Google, I have no experience.


Thanks a bunch for the comment as I said i'm a noob to this so sorry.
How would I get a data sheet for the stepper? on the back of the box it has info like
Voltage (12VDC)
Operating current (1.7A per phase)
Stepper control (4 wire)
Torque (54g/cm2)
Holding (Torque 40g/cm2)

Once we figure out the coil current ill order the correct driver for it

for power I want to use a battery pack, but for the moment I just want to get this thing setup then ill go down the path of learning batteries

Once again sorry for my reply I am a noob but eager to learn
any reply is helpful so thankyou

That is the important specification for choosing a stepper driver. I would use a DRV8825 driver. I order mine from Pololu because they make quality products, stand behind them and provide good instructional pages for them. Pololu DRV8825 page. Those drivers are also available many other places (Amazon, EBay, many more).

You MUST set the coil current before using the driver. Follow the instructions on the Pololu page. You do not have to set to 1.7A, lower current will result in cooler running and longer life. You need no more current than it takes to run the motor, in its use case, without missing steps.

Use microstepping (x4 or more) to avoid resonance issues.

You will need a power supply of more than 8.2V that will safely supply the current (say 5A). 12V supplies are commonly used, but for the most torque and speed use closer to the maximum allowed by the driver (45V).

This is awesome thanks heaps,
Ill order the DRV8825 Stepper Motor Driver then while its coming in the post ill do more research on this, similar to setting the 3d printer stepper motors (high voltage the hotter they get) but the (lower voltage the weaker it is) I remember spending a few hours getting the perfect voltage.

Would a 9V battery work? I've seen people use them on smaller motors, if not I have a 12v power cable that goes straight into the arduino uno wifi

If you mean the PP3 smoke alarm batteries, no, not even close. They will not supply near enough current. I have 2 machines going with repurposed PC AT power supplies. You really need at least 2A but to be on the safe side 5A would be very safe.


Ah okay, that makes sense, ill order everything then just a 12v from the power to power it all

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.