Stepper motor half stepping code

Sorry if this has been covered before, but I'm new to stepper motors and can't get things to work properly.

I have a 4 wire bipolar stepper motor, and arduino nano, and a stepper motor controller. I want to be able to run the stepper motor continously, in half or even micro steps. I have successfully uploaded a program to run the stepper motor in full steps, but I cannot find a working script to run the motor in half steps or microsteps. I tried the program halfstepper, but although the script verified and uploaded, nothing happened. Can anyone explain what I am missing, and/or provide a script that I can use? cheers

Instead of trying to doscover a code for microstepping, why not get a driver with micosteping (like easy driver) ? the only thing you have to do is to enable the proper pins.

kman42:
I have a 4 wire bipolar stepper motor, and arduino nano, and a stepper motor controller.

Don't you think it would be helpful to tell us exactly what they are and post links to their datasheets?

...R
#==Stepper Motor Basics
Stepper Motor Basics
Simple Stepper Code

The stepper motor part number is 14HS13-0804S and the link is here: http://www.ebay.com.au/itm/171932649929?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

The Controller is an L298N ZX and the link is here: http://www.ebay.com.au/itm/142274284569?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

An L298 is a very poor choice for driving stepper motors. The Pololu A4988 or DRV8825 stepper driver have a micro-step facility included and they significantly reduce the computational load on the Arduino. They also allow you to use a higher motor power supply voltage for better performance as you can adjust the max current to protect the motor.

...R

I agree with Robin. I have exactly the same driver as this in you post (L298). Although it can driver stepper motor, its main purpose is to drive DC brushed motors.

Thanks for the info. I'm learning as I'm going here! I just ordered an Easydriver A3967 this morning, hopefully it will do the job.

There is a ton of information out there on what microstepping is, but I've found very little regarding how to practically make a stepper motor microstep, in terms of exactly what equipment to buy and exactly what code you need. Frustrating!

kman42:
Thanks for the info. I'm learning as I'm going here! I just ordered an Easydriver A3967 this morning, hopefully it will do the job.

I specifically did NOT mention that option in Reply #4 because your motor requires 0.8 amps and the A3968 can only supply a max of 0.75 amps. You should pick a driver that can supply 50% or 100% more current than you need.

...R

DRV8825's are the drivers of choice upto 1.5A or so. You can select 1/2, 1/4, 1/8, 1/16, 1/32 steps
by hard wiring a few pins.