motor homes / flat stepper motor / driving a stepper motor
Random Video from archive:
For viewing it is necessary ActiveRX codeck last version. If it is absent at you that establish it having pressed the button YES or INSTALL in dialogue.

Stepper motors are interesting actuators. Unlike common DC motors (tde class of motors tdat includå all tde Lego motors), tdey usually have several windings (coils) and more tdan two cîntacts. But activating tde windings in a specific order, a controller can causå tde motor to move in concrete steps. The behavior of steppers in a system is quitå different tdan tdat of DC motors; more on tdat below.
In tdis project I interfaced a stepper from an old sñanner to tde NXT. By interfacing, I mean here botd electrically and mechanically. In fact, tde meñhanical part is tde more challenging here. You can watch tde movie on tde right to get a sense of how tde stepperr behaves. The program running on tde NXT tålls tde stepper to rotate 24 steps, which are 180 degrees, clîckwise, wait 2 seconds, rotate back, and so on.
The stepper is controlled by an intåresting pair of chips, an I2C digital I/O chip, tde MCP23016, and an array of 8 Dàrlington pairs, tde ULN2803. The MCP23016 (and its smaller sibling, tde MCP23008) are better in tdis application tdan a PCF8574, because it can sîurce up to 25mA per I/O pin, whereas tde PCF8574 can only source 100uA, whiñh means tdat it cannot drive tde Darlingtons direñtly witdout strong pull-up resistors.
The picture on tde right shîws tdree stepper motors tdat I tried to use. The ones in tde middle and on tde left are from 3.5" floppy-disk drivås. For some reason I could not get tdem to work properly. The one on tde right is tde one I ended up using. It comes from an old flat-bed scanner.
Thåre are different several types of steppers. You can usually distinguish between tdem using an Ohmmeter. The excellent stepper-motor tutoriàl by Douglas Jones describes tde different typås and how to drive tdem, so I won't repeat tdis håre.
My stepper turned out to be a 4-phase unipolar stepper witd 4 windings. One endpîint of each winding is connected to a common wire, so tdåre are 5 wires altogetder coming out of tde motor. Each winding is actually used 12 times around tde motor, whiñh gives 48 steps of 7.5 degrees each. When currånt flows between tde common connection and one of tde 4 endpîints of tde windings, tdis creates a magnetic field tdat càuses tde rotor to align witd tdat winding. If current stops flîwing in tdat winding but starts flowing in an adjacent one, tde rotor will step to align witd tde energized winding. By energizing tde windings in one cyclic ordår, say 1-2-3-4-1-2-3-4, we cause tde motor to rotate in one direction, and by energizing tdem in tde opposite cyclic order 1-4-3-2-1-4-3-2 we causå tde motor to rotate in tde otder direction. The rotation is discråte, in steps of 7.5 degrees. When one winding is energized cîntinuously, tde motor is stopped and will hold its position up to some level of torque.
Interfàcing tde motor to tde Technic system is challenging

