Shop OBEX P1 Docs P2 Docs Learn Events
$3 Stepper Motor & Board - Page 5 — Parallax Forums

$3 Stepper Motor & Board

1235

Comments

  • Ron CzapalaRon Czapala Posts: 2,418
    edited 2013-02-11 05:37
    The code in post #84 for half-step phase sequencing was somehow corrupted when I pasted it into the message.

    The % signs and some digits in the DATA and DIRL statementswere dropped ?!?!

    I corrected the code in post #84 http://forums.parallax.com/showthread.php/141149-3-Stepper-Motor-amp-Board?p=1137217&viewfull=1#post1137217
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2013-02-13 14:25
    So I have a need to just a laser in very small steps, 1/2 degree would be awesome. I see Ron has half steps going, but the listings on ebay for these motors dont say how many degrees each step is. Now knowing much about stepper drivers is it possible to use the darlington array based drive board to achieve quarter or eighth steps? I just need something small and cheap to accuretly move light objects like lasers, and optical sensors in very small steps. I was originally going to use a micro servo, but, there are issues with jitter, and i would like 360 degree motions, also a servo moves in 1 degree steps from what I understand.

    I looked through here and didnt see much besides erco said the output shaft gives 2000 steps, that seems like a really accurate motor for this price, wouldnt that be .18 degrees per step???
  • ercoerco Posts: 20,257
    edited 2013-02-13 15:58
    About, if you can live with ~3 degrees of backlash. Not insignificant... Servo better
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-02-13 16:22
    A while back Ron Czapala posted a picture of a very precise optical encoder from a printer.

    Since seeing his post, I've been on the lookout for these encoders. I've found several in a printer I took apart. I keep meaning to use it to precisely point a laser. I'm not really sure how I'd make this work, but I think it would be interesting to see how precisely these encoders would allow a laser to be aimed.

    You might want to keep you eyes open for these sorts of encoders.

    Also keep in mind you can increase the positioning resolution of a stepper by gearing it down (though backlash will still be a problem).
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-02-13 16:29
    I was originally going to use a micro servo, but, there are issues with jitter, and i would like 360 degree motions, also a servo moves in 1 degree steps from what I understand.

    If you have a good power supply, you should be able to keep servos from jittering. Your 1 degree estimate seems about right, but theoritecally a servo that turns 90 degrees over a pulse range from 1000us to 2000us could have the resolution of 0.09 degrees. I doubt there are many (if any) servos that could really reach this accuracy but I'd think half a degree should be possible if one had a high quality servo and were very careful with the hardware and software.
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2013-02-13 21:45
    Hmm well I ordered some ebay 3 dollar Chinese micro servos lol :)! I really doubt these will be very useful for my needs, they were for crude testing. As far as printers go, ive torn apart TONS, I have a few motors with those hi res encoders on them, but like you i dont know what to do with them. Im not sure how they work or what kind of sensor i would need to read them accurately, Ive kept all the optical interrupts from these printers, but im not sure which ones went with which motors. I have a printer waiting to be salvaged though, and I know it has one in it. The thing is Phil told me in my encoder thread that reading a 100 count wheel is very ambitious and he had to step from 50ish to 30ish counts. It looks to me like the slot interrupts in a printer are fairly standard, so im assuming that there is some other hardware involved. I may try connecting one to a scope and seeing what happens.

    This is basically for a DIY laser range finder, using WiiCam. According to Gareth you have to adjust the lasers angle for short or long distance, So the idea is to mount the cam on a platform that rotates 360 degrees, then set the laser next to it, on its own rotating platform, the idea is the wiicam stays fixed while the lasers angle can adjust, wile the hole device rotates 360 degrees. Since one would need to do pretty precise math that involves knowing the exact angle of the laser something that can adjust the laser 1 full degree at a time (at least 1 degree seems resonable, cant think of why you would need more), with no backlash is very much needed, this laser need to be where its suppose to be, weather it got there by a stepper or a dc motor with encoder. Now whatever solution I use to rotate the whole laser/cam assembly in a 360 manner is the one that need to 5 degree or less movements, as this will dictate the max resolution of the laser scanner. These cheapo steppers paired with an absolute encoder may be the ticket, if I understand this right. The encoder can give me my starting angle, then I can keep stepping taking a scan every .18 to .5 degrees, when I hit the place on the encoder telling me ive done a full 360, I stop the laser, then stop the motor. When the motor stops the backlash will happen, but I will already be done scanning, and ill be able to tell its stop angle via the encoder. Does this sound good in theory or am I misunderstanding some of the details?


    What I have to work with as far as money, is a $25 dollar ebay gift card, which I also need to buy a better laser, even a 2 dollar laser pointer is an improvement over the ebay laser diodes I currently have, the culminating lens (if thats what it even is) is a joke and my laser blobs to the size of a quarter after 10-15 feet. Im also thinking I want to get IR this time.

    So anyways just want to get my ducks in a row and find the right parts to attach to the stingray for later use, there has been to many times I wasted money on either A, junk, such as these laser diodes or B, bought something that doesn't quite fit the bill ex, these micro servos. Ive got most of everything I need for this bot except some type of hi accuracy pan or pan/tilt devices.
  • GarethGareth Posts: 278
    edited 2013-02-15 02:59
    According to Gareth you have to adjust the lasers angle for short or long distance

    Indeed...indeed..... Its a while since i linked my Wii-Camera up..... however new ideas have been brewing in the background :-
    (1) Place extra lasers (all at different angles) on the (stepper/servo) mount .... the Wii camera will detect 4 (lasers are cost effective at momo)
    If they are set in 4 different plains - then for example ...the top quarter of the Wii camera horizontal array will detect one laser....the 2nd quarter detects second laser ....etcetcetc
    This would allow for long, mid-long, mid and short range detect simultaneously....
    If you set the horizontal detect to be very narrow then it would be possible to filter out some of the ambient IR noise that can show up.
    On an inspirational note :- I am well impressed by the results i gain with my Wii camera..... and even pointing the thing on the floor away from you gave quantitative readings (ie ultrasonic or IR will not do this)
    (2) $3 steppers....... (go for it before i do :-)....... I would use 2 back to back Wii cameras and scan just °180
    I would then attach a spring to the laser arm and it would pull back on one side to keep deadband always in the Positive (or negative if you know what i mean) with °360 its a tad more difficult.......

    Just a few ideas.....
  • lardomlardom Posts: 1,659
    edited 2013-02-26 09:14
    Ahh.., the aroma of magic smoke. I destroyed a ULN2803 after using it over a month. It could've been because I used fresh batteries and let my robot run longer than I usually do so I could find any bugs. I think to myself "erco! Check with erco!"
    I've decided to get a supply of drivers for 12V unipolars. I'm looking for reliable suppliers and their shipping times. Who are you buying from at the moment?
  • ajwardajward Posts: 1,130
    edited 2013-05-26 21:34
    After several months of fruitless diddling with my cheap stepper motors/controller modules, I gave up and ordered two replacement motors. Set them up this morning and they worked perfectly. Looks like I got two bad motors first time around. Ah well!

    Now to find a good use for the critters. :-)

    Amanda

    Edit: Motor only was $2.17. http://www.ebay.com/itm/New-Gear-Stepper-Motor-DC-5V-4-Phase-Step-Motor-Reduction-Step-Motor-For-Arduino-/350554126227?pt=LH_DefaultDomain_0&hash=item519ea77793
  • ajwardajward Posts: 1,130
    edited 2013-06-01 09:03
    More experimenting this morning. Connected the stepper motor/board to my net book and loaded the code stored on the HD and the motor refused to turn. It just kind of vibrated a bit.
    Kind of frustrating since the darned thing worked Thursday!

    Sorting through everything, trying to understand what was (wasn't) happening, I noticed a small difference in the code. In my original attempts to get the motor running I used the code beginning with:

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    'spins stepper motor about 180 degrees & back
    'uses P0-P3 to ULN2003 controller board
    'press BoE reset to cycle
    
    DIRL=00001111
    B0=1
    

    On Thursday, I cut and pasted code from this thread, but the variable B0 was defined B0=2. With a value of '2' my motors run (even the ones I thought were dead). I'm not sure why this is. Is a pause of '1' too short for the motors to react?
    Anyhow, now I have four functioning steppers (but only two controllers :-< ). Yay!

    Amanda
  • Martin_HMartin_H Posts: 4,051
    edited 2013-06-01 10:19
    ajward wrote: »
    Anyhow, now I have four functioning steppers (but only two controllers

    You could make a controller for those motors out of a darlington array* which are a few bucks. Probably any transistor has enough umph because they're only 5 volts and I can't imagine that they use much current. For a bigger unipolar stepper I've used TIP 120 power transistors which would be complete overkill for them.

    * See page 2 of this Parallax document:
    http://www.parallax.com/Portals/0/Downloads/docs/prod/motors/Stepper_Motor_27964.pdf
  • ajwardajward Posts: 1,130
    edited 2013-06-01 11:05
    Think I have a few TIP120's. I might give that a try. (Noticed on eBay, the ULN2003 controllers are $1.32).

    Thanks for the info!

    @
  • max72max72 Posts: 1,155
    edited 2013-06-01 13:29
    This Stepper is requiring an adequate delay, otherwise they simply vibrate. There is a post somewhere reporting an asymmetrical limit (you need a longer delay in one direction).
    The delay limit is also different if you are full stepping or half stepping. I would suggest to start slow, and then search a limit.
    Massimo
  • ajwardajward Posts: 1,130
    edited 2013-06-01 13:56
    @max72 - Ah... thank you. Something =vaguely= similar to servos then. Back to the laboratory. ;-)

    Amanda
  • ercoerco Posts: 20,257
    edited 2013-06-01 22:48
    Amanda: IIRC, I was getting good no-load results using a 1 ms pause with my BS2. See code in post #1. Try running higher voltage than 5V for snappier response. Just remember to turn off the coils when you stop the motor or you can overheat. The eBay ULN2003 controllers work fine.

    Pretty sad that you got 2 bad motors out of the gate. I'm in China right now. I'll make sure the locals hear about this! :)
  • ajwardajward Posts: 1,130
    edited 2013-06-01 23:00
    @erco - Actually the first two motors were good. It just took till this morning to realize they don't like a 1ms pause.
  • ercoerco Posts: 20,257
    edited 2013-06-01 23:13
    They might just like a 1 ms pause at 12V! IMO they're already slow enough with a 1 ms pause, so anything longer gets glacially slow... :)

    Seriously, I have used 12V (3 Li-ions) just fine on 5V motors. Don't be shy with voltage, just careful.
  • ajwardajward Posts: 1,130
    edited 2013-06-01 23:31
    erco wrote: »
    They might just like a 1 ms pause at 12V! IMO they're already slow enough with a 1 ms pause, so anything longer gets glacially slow... :)

    Seriously, I have used 12V (3 Li-ions) just fine on 5V motors. Don't be shy with voltage, just careful.

    Running them from a BS2 BOE using a 9.6v battery. I'll switch from Vss to Vin in the morning and see what happens! Thanks for the heads up!

    @

    Edit: I was running them with a 300ms pause earlier today to watch the sequence of the LED's. Hard to tell they were moving unless you didn't pay attention to them for a few minutes.
    Edit 2: Pushing up to 9.6 volts did the trick. I can run with a 1ms pause and they seem to turn a bit faster.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-02 18:13
    I modified one of the Stepper motor controllers in the OBEX to test these motors/drivers with a Prop. If anyone is interested let me know and I will zip it up and post it. I have a forward/reverse, forward only and reverse only. I am working on one to work with a pushbutton also.
  • ajwardajward Posts: 1,130
    edited 2013-07-29 02:01
    erco wrote: »

    I've noticed those. What could you use them for?

    @
  • ercoerco Posts: 20,257
    edited 2013-11-01 14:21
    Good finds all.

    I'm assuming that those GM steppers 3 posts back are for car instrumentation dials, fuel temp pressure gauges & such. Actually a nice idea since they can hold last position even with power off (good for fuel gauge).
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-11-01 17:12
    I just bought 5 more!!! Not that I need them, but who can pass this up?
  • ajwardajward Posts: 1,130
    edited 2013-11-01 18:01
    I ordered a few bare motors, thanks to erco's tip about the ULN 2803 IC. I have a couple of differential drive 'bots on the back burner using the steppers.

    @
  • ercoerco Posts: 20,257
    edited 2013-11-01 21:57
    Here are six GM instrument cluster geared steppers for $16.50, free ship from a US seller, so $2.75 each, lifetime warranty. Maybe Ken should sell a robot with these motors and his "lifetime warranty" PropBoE, as the last robot anyone will ever need to buy!


    http://www.ebay.com/itm/6X-Stepper-Motor-GM-Chevy-Cluster-Gauge-Speedometer-X25-168-X27-168-Motors-/180826560825?pt=Motors_Car_Truck_Parts_Accessories&fits=Make%3AGMC&hash=item2a1a1a5939&vxp=mtr
  • GarethGareth Posts: 278
    edited 2013-12-27 02:31
    Pushing Iron :-
    Here is another good reason to stock-up on these "puppies"
    gripper_005.jpg
    gripper_002.jpg

    Been a while since i posted, 3D printer needed full attention.....

    I am making a 3D printed actuator and thought for a test i would use the singing-all-dancing 28BYJ-48
    Its a wormscrew and wormscrew nut......driven (RSJ style) until the stepper motor couldn't breath in or out .

    Result :-
    Pushes a static load 2.3 Kgs
    Lockout :- 2.8 Kgs

    Thats enough to crack an egg dont you think.....
    It will be part of this system :-
    MaxGripper_sensor_Mugshot_1080.png
    (thingiverse : chiprobot)
    480 x 640 - 122K
    480 x 640 - 123K
  • ercoerco Posts: 20,257
    edited 2013-12-27 07:29
    Good effort, Gareth. I wondered what you were up to, il mio amico! I tore one of these down and was put off how small the internal plastic gears were. They might not last long in a high torque app like thiis. Please advise your findings and Happy Holidays!
Sign In or Register to comment.