Top Banner
Russ Nelson Russ Nelson's personal blog Mon, 16 Oct 2006 Reusing a floppy stepper motor This is the second in a series of postings about the Makezine controller. The first one was the Jedi Cursor. Most 5.25" floppy disk drives have a stepper motor in them for positioning the head, plus interesting widgets like optical emitters and detectors. With a little bit of work, they can be removed and put back into service with your Makezine controller. I put together a set of photos showing how I disassembled my floppy disk drive and removed the useful bits. A stepper motor has magnets, poles, and windings. The windings go around the poles, and you energize the windings in a specific order to make the motor turn in one direction or the other. A motor can have four, five, or six wires coming out of it. You will need to use an ohmmeter to determine the meaning of the wires. 4. A stepping motor with four wires has only two windings and is bipolar. You have to be able to drive it with positive and negative voltages. In order to make the magnets spin around, you need to energize the windings with positive and positive, then negative and positive, then negative and negative, then positive and negative. You don't have to worry about which pairs of wires go with which winding. Just hook all four up to the digital outputs. 5. A stepping motor with five wires has four windings and is unipolar. One of the wires is a common connection for all four windings. It will have the same resistance to the other four wires. Connect that wire to ground and the other four to the digital outputs. 6. A stepping motor with six wires has four windings and is unipolar. One of the wires is a common connection for two of the windings, and the other for the other. It will have an equal resistance measurement to two other wires, and infinite resistance to the other three. Connect both common connections to ground, and the other four to the digital outputs. Once you have the motor connected, you will need to drive it with the correct sequence. Fortunately you can't hurt the motor by giving it the wrong sequence. It will just flail around helplessly. In the program below, the sequence is set by "order". It lists the digital output numbers in the order of the windings. Keep trying orders until the motor
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

Russ NelsonRuss Nelson's personal blog

Mon, 16 Oct 2006Reusing a floppy stepper motorThis is the second in a series of postings about the Makezine controller. The first one was the Jedi Cursor.

Most 5.25" floppy disk drives have a stepper motor in them for positioning the head, plus interesting widgets like optical emitters and detectors. With a little bit of work, they can be removed and put back into service with your Makezine controller. I put together a set of photos showing how I disassembled my floppy disk drive and removed the useful bits. A stepper motor has magnets, poles, and windings. The windings go around the poles, and you energize the windings in a specific order to make the motor turn in one direction or the other. A motor can have four, five, or six wires coming out of it. You will need to use an ohmmeter to determine the meaning of the wires. 4. A stepping motor with four wires has only two windings and is bipolar. You have to be able to drive it with positive and negative voltages. In order to make the magnets spin around, you need to energize the windings with positive and positive, then negative and positive, then negative and negative, then positive and negative. You don't have to worry about which pairs of wires go with which winding. Just hook all four up to the digital outputs. 5. A stepping motor with five wires has four windings and is unipolar. One of the wires is a common connection for all four windings. It will have the same resistance to the other four wires. Connect that wire to ground and the other four to the digital outputs. 6. A stepping motor with six wires has four windings and is unipolar. One of the wires is a common connection for two of the windings, and the other for the other. It will have an equal resistance measurement to two other wires, and infinite resistance to the other three. Connect both common connections to ground, and the other four to the digital outputs. Once you have the motor connected, you will need to drive it with the correct sequence. Fortunately you can't hurt the motor by giving it the wrong sequence. It will just flail around helplessly. In the program below, the sequence is set by "order". It lists the digital output numbers in the order of the windings. Keep trying orders until the motor

continuously turns in a circle. Note that the software requires the last of five be the same as the first. Uses an extra entry to keep the code clean. Run the program like this. Servo.py emits the OSC commands in the proper order and schedule. sendOSC hands them off to the Makezine controller. ./servo.py | (trap "" SIGINT;osc/sendOSC/sendOSC -h 192.168.0.200 10000)

#!/usr/bin/python """servo.py -- runs the servo around and around""" import time, sys # set this to if True: service = command = order = [ else: service = command = order = [ false to see the LEDs light up like the windings are energized. "digitalout" "value" 4,5,6,7,4 ] "appled" "state" 0,1,2,3,0 ]

set = "/%(service)s/%%s/%(command)s " % locals() set0 = set + "0\n" set1 = set + "1\n" + set + "1\n" set2 = set + "0\n" + set + "1\n" pausetime = 0.05 def run(): for i in range(0,4): sys.stdout.write(set1 % (order[i], order[i+1])) sys.stdout.flush() time.sleep(pausetime) sys.stdout.write(set2 % (order[i], order[i+1])) sys.stdout.flush() time.sleep(pausetime) try: while True: run() except KeyboardInterrupt: for i in range(0,4): sys.stdout.write(set0 % (order[i])) sys.stdout.flush()

You aren't signed in Search Russ Nelson's photos

Sign In

Help

reusing a floppy disk stepper motorCreated by Russ Nelson.

View as slideshow(New window )

The Makezine Controller can easily drive a floppy disk head positioning stepper motor.8 photos | Detail view 2 commentsPhotos are from between 14 Oct 06 & 16 Oct 06.

Russ Nelson's photos All Russ Nelson's setsThis set has been viewed 470 times.

FGC20063 photos

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

fd1

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 Viewed 114 times

q q

This photo is public

A typical 5.25 floppy disk drive

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

fd2

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 1 person calls this photo a favorite Viewed 69 times

q q q

This photo is public

remove the screws that hold the bits on

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

fd3

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 Viewed 69 times

q q

This photo is public

carefully remove sheet metal (may have punched edges which are as sharp as a razor)

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

fd4

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 Viewed 97 times

q q

This photo is public

You may need to pull friction-fit parts off, e.g. the door close lever.

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

fd5

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 Viewed 110 times

q q

This photo is public

Carefully separate out reusable parts like optical sensors, LED boards, and switches.

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

fd6

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 Viewed 137 times

q q

This photo is public

There may be cables attached underneath a board. If they have connectors, pull them out. If not, clip them close to the connector.This photo has notes. Move your mouse over the photo to see them.

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

usefulparts

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 14, 2006 Viewed 152 times

q q

This photo is public

This drive has a number of useful parts. See the notes for identifcation of the parts.

This photo has notes. Move your mouse over the photo to see them.

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.

You aren't signed in

Sign In

Help

Search everyone's photos

stepper-with-controller

Uploaded on October 16, 2006 by Russ Nelson

Russ Nelson's photostream

0

reusing a floppy disk stepper motor (Set)

8

photosView as slideshow

Tagsmakezinecontroller floppy disassembly

Additional Information All rights reservedq

Taken with a Kyocera Finecam SL400R. More properties Taken on October 16, 2006 Viewed 121 times

q q

This photo is public

This stepper uses uni-polar windings. The white wire is the center tap. The windings are yellow, orange, red, and brown, so I connected them to digitalout 4 through 7.

Would you like to comment?Sign up for a free account, or sign in (if you're already a member).

You Explore Help

Sign in | Create Your Free Account Last 7 Days | This Month | Popular Tags | Creative Commons | Search Community Guidelines | Forums | FAQ | Sitemap | Help by Email us

Save to del.icio.

Flickr Blog | About Flickr | Terms of Use | Your Privacy | Copyright/IP Policy | Report Abuse Copyright 2006 Yahoo! Inc. All rights reserved.