Jump to content

anyone know anything about stepper motors?


Nuke

Recommended Posts

ive been gathering components for a cnc pcb mill. so far im in the preliminary steps of gathering parts. i started with the electronics part of the build and will build the machine itself later. im gathering the parts slowly, rail systems are kind of expensive but i got some spare 3d printer parts left over from a bed upgrade, and i got some spare linear bearings. i got a rather thick piece of acrylic salvaged from a dead monitor which would serve as a good base plate, since i have a lot of other salvage displays i figure much of the structure would be build out of acrylic and 3d printed parts. will probibly use a dremel flexi shaft as the buisness end with the dremel elsewhere to reduce the mass that needs to move around. anyway its going to be a small machine, so long as i can mill a 4x4" pcb with it. 

anyway i got an old arduino (i tried building an stm32 version of grbl but had trouble flashing it to the board, using arm has some advantages, more memory and has an fpu and hardware divide that the atmel chip doesnt have) running grbl with a 4 channel cnc shield. i only have a few steppers salvaged from junk, several laser actuators from dead cd/dvd drives, and a couple mitsumi motors from an old sewing machine. at some point im going to get me some nema 17 motors like the ones on my 3d printer. not sure whether im going to use lead screw drive or belts, but im concerned that belt drive wouldnt have the torque neccisary, but that extra torque costs speed, but its going to be a small machine so thats not a big issue. anyway i cobbled up some wiring harnesses and im using some lithium ion batteries for power. anyway they are unipolar 4-wire motors. i did find a data sheet on the motors, but they didnt cover the electrical connections. the drivers have 2 channels and its not hard to trace out the two coil sets in the motors, each pair of wires to one of the chanels. but im not sure if polarity matters. the channels are powered by an h bridge and will alternate between positive and negative between steps. 

anyway i connect the motors, load up bCNC with an svg file and initially i get them to spin. one motor is holding its position just fine, at least up to the limit of its hold torque. the other seems to be freely rotating at a significantly lower torque. this made me question my assumption that polarity didnt matter. maybe they are like encoders and operate with a grey code, maybe having reversed polarity on one of my coils is breaking that grey code. i rechecked my harneses and noticed that i had the coils flipped on one of them so i made them identical, matching the better of the two and im still getting one to spin freely, swapped motors/cables, controllers same difference. i tried lubricating the motors since they are all sleve bering type and have been in my junk bin for awhile. so long story short is there a right way to wire these things?is there some secret sauce that im missing?

Link to comment
Share on other sites

If I understand correctly, the bad motor is bad even when powered by the driver that performed well with the good motor? Smells like the problem with the motor.

Disconnect the motor from everything and check with multimeter to make sure you have the two pairs of wires that lead to the coils. Short circuit one of the pairs and turn the motor by hand. Does it spin with equal or more effort? Disconnect and try with the other pair. There should be a noticeable difference.

If you don't feel the difference with open circuit and short on both coils, you have a problem with the motor.

Connect one wire of the pair with one of the wires of the wrong coil. There should be no difference in torque when you spin it by hand. Repeat with the other wrong wire.

 

I've had very good experience with this type of drivers for some very small motors:

https://www.ebay.com/itm/1PCS-A4988-Stepper-Motor-Driver-Module-3D-Printer-Polulu-StepStick-RAMPS-RepRap/221921771119?epid=883626200&hash=item33ab917e6f:g:BpsAAOSwl9BWKyv1:rk:1:pf:1&frcectupt=true

and with this type for some larger (NEMA 17 size, but I forget the specs and don't have them at hand)

https://www.ebay.com/itm/DM542-Stepper-Motor-Driver-For-86-57-Series-2-phase-Digital-Stepper-Motor-Driver/202209366200?hash=item2f149e10b8:g:3qIAAOSwcSxab8y2:rk:8:pf:0

 

Both are very nice and provide current limiting function as well as microstep control, they do all the logic, you just provide 2 signals - direction and pulse for step.

 

Link to comment
Share on other sites

i do believe the a4988 is what im using. kit came with the shield and 4 controllers each sealed in its own esd packaging, they also included some heat sinks as well, but i had to attach them myself.

i did test all the coils with a multimeter which was necessary to identify the pairs. they passed a continuity test, i also checked the resistance which was in the neighborhood of 7.2 ohms (which was actually on the sticker on the side of the motor). i also tried powering the coils on the motors breifly and the hold torque was actually pretty strong. so im starting to expect my controllers. i did try the test you suggested anyway and got about the same increase in turn resistance from all pairs. 

need to trace pins all the way back to the mcu to make sure the board was assembled properly. i thought it was supposed to be a kit but it came fully assembled. could also be something with the atmega, i have several blank 328ps and some of them have been abused.

i also tested an actuator from an old cd drive. and that worked pretty well. though the control was a little too aggressive i had to use a weaker battery. 

Edited by Nuke
Link to comment
Share on other sites

So, does the bad motor work or not on the driver that the good motor worked on? And the opposite, the good motor on the driver where bad one didn't?

Check the connectors. They may have poor contact.

Also, check for dry joints on drivers and connectors. Those can be a pain the cheeks, cause all kinds of issues and hard to see. Use lots of light, some magnification and wiggle the components.

Link to comment
Share on other sites

ah the wiggle it technique. my wiring harnesses tested ok but they are far from perfect. i got some low quality crimp pins and the crimper was just crushing them. but the continuity was ok.

Link to comment
Share on other sites

And the PCB connectors?

You wouldn't believe how many issues I've had to troubleshoot due to dry joints. A thing would work for weeks or years and then start acting up intermittently. Usually a dry joint is not hard to find once you suspect it, but sometimes you are questioning yourself if you've just seen something move or was it your imagination. In those cases I just plop a generous amount of flux and retouch every joint that even remotely looks dubious.

What about using the bad motor on the good driver?

Link to comment
Share on other sites

7 minutes ago, Shpaget said:

And the PCB connectors?

You wouldn't believe how many issues I've had to troubleshoot due to dry joints. A thing would work for weeks or years and then start acting up intermittently. Usually a dry joint is not hard to find once you suspect it, but sometimes you are questioning yourself if you've just seen something move or was it your imagination. In those cases I just plop a generous amount of flux and retouch every joint that even remotely looks dubious.

What about using the bad motor on the good driver?

things are about the same. i plugged the cd drive stepper into that channel and it worked fine. at this point i dont think its the motors. its either a cold joint or a bad mcu. there also seems to be a trim pot on each controller, maybe they need some calibration, but i didn't get any instructions for how to do that..

Link to comment
Share on other sites

silly me, i think my problem was power related. the 3 18650 lithium ion cells in series i was using were getting a little low, so i stuck them in the charger and grabbed 3 more out of the pile. motors were holding torque for a little while and then stopped. i guess i may have over discharged my cells, one got down to 1.8v which is a hair into the danger zone. il probably dig out an old atx psu and break out the 12 v line. i already got one rigged up to my 3d printer, so i guess il just patch into it. everything worked fine with one motor but there just wasn't enough juice to power two. i guess i forgot that stepper motors draw power all the time as opposed to only when they are moving.

Edited by Nuke
Link to comment
Share on other sites

Yeah, power supply is somewhat crucial.

Good thing about steppers being driven by decent drivers is they don't really mind higher voltages, but you have to properly set the current limiting on the driver before you power the motor, or risk burning it.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...