jn-wp:
hi again!
since i am new to arduino and motors and things like that: can someone explain the difference between the l293dne as i mentioned and the A4988 or DRV8825 as jremington said?!?
thx for your help!
now that I have checked and realized that 5 wires are used... this question becomes more academic.
not sure of the definition of 'proper' is in electronics. maybe a different post?
but the L298 is an H-bridge. it has inputs to allow you to use sense resistors so you can control the output current to the motors and not either under power or over power them.
read up on micro-stepping. you can power one coil and the motor will lock into that position. you can power one coil, then another and the motor will lock between the two. this is called a half step. if you charge one coil, release it, then a second, the motor will move from one step to the second step. if you repeat this the motor will spin.
the logic would be 1-2-3-4-1-2-3-4.... and the motor will spin one way. or 4-3-2-1-4-3-2-1.... and it will spin the other way.
there are logic chip that will see only two signals. one is either high or low. the other is simply a pulse input.
so, if you you have the pin high, the output will be 1-2-3-4-1-2-3-4..... the rate of change is dependent on your pulse input.
bring that first pin low and it goes 4-3-2-1-4-3-2-1.... again. the speed of the pulse dictates motor speed.
micro-stepping a whole different process. as stated above, half stepping is powering two coils at the same time. one could quarter step. or charge one coil more and the second one less. this can be done in quarter steps, eighths steps, 10th's, 16's, 32's, 128's.......
but, in reality, the motor can only move in half or quarter steps. the reason for the micro-steps is to have the motor move between steps with a smooth transition. the holding power between coils falls rapidly as the number of micro-steps increases.
stepper motors are low speed devices. when you try to spin them fast, they get in their own way and miss steps. the micro stepping is a way to get more speed out of a motor without missing steps.
bottom line, if you can, get a step and direction driver board. your sketch will be much simpler and the control of the motor much easier.