![arduino conflict with codevision avr or avr studio arduino conflict with codevision avr or avr studio](https://www.mcu.by/wp-content/uploads/2014/09/15022012_avr_xmega-300x255.jpg)
But this can prove failure if the speed of robot changes due to drop in level of battery or some additional weight or simply due to an uneven terrain etc. So you keep the motor on for 20 second and expect that it has moved 100cm. Say if you happen to find out the your robot moves at 5cm per second then to move 100cm it will require 20 second. You cannot do this with DC Motors, because for it you need to calculate the exact speed for DC motor and then use blind timing for movement. Like if you say go forward 100cm then rotate right 45 degrees and move forward 50 cm. For example if you are making a robot, you want it to move exactly as per your program.
ARDUINO CONFLICT WITH CODEVISION AVR OR AVR STUDIO FULL
The thing is that the stepper motors have certain amount of steps per full 360 degree rotation (exact number depends on model) the controller can request the stepper to rotate any number of steps. This precise movement keeps the next printed pixel in alignment with previously printed pixels. For example a high speed desktop printer when the paper moves forward, to a novice it seems like a motor is just pushing the paper out but in reality the control board inside the printer request the motor to move the paper exactly same amount that has been printed.
![arduino conflict with codevision avr or avr studio arduino conflict with codevision avr or avr studio](https://www.njuskalo.hr/image-w920x690/elektronski-uredaji/zapakirani-arduino-mega-2560-r3-orginal-dostupan-odmah-slika-43668743.jpg)
Though to a naked eye the motor of stepper look no other than a DC motor but the difference is that each step of a stepper motor is in control. For example a printer, scanner, plotters, fax, floppy drive (not so modern though!), automatic industrial machines like CNC (Computer numerically controlled) drills, laser shows etc. Stepper motors pairs nicely with a smart device like a microcontroller to create precise digitally controlled movements that has made possible many of modern gizmos around us.