Go Down

Topic: New 28BYJ-48 library (Read 17 times) previous topic - next topic

Erni

Hi Sbright

I have tried it, works very well so far.
This is good work, there is often questions about this motor in the forum.
And once again i am surprised how smooth this motor runs. And for the torgue, I cant hold it with my fingers.

sbright33

#11
Jan 30, 2012, 08:01 pm Last Edit: Jan 30, 2012, 08:27 pm by sbright33 Reason: 1
Finally some feedback!  Thank you.  I tried to make it simple.  The 4 nowait functions might confuse someone.  All the functions are calibrated to be accurate according to RPM.  The torque is inverse to the RPM past the startup speed.  At slow speeds the Hot functions have more torque than the cold ones, especially with a 5v supply.  This is at the expense of power consumption.  Please ask if you want to know why I did something in the code.  Did you try the halt when there's too much load subroutine?  You can change it to print the load instead.  Did you see you can turn 1.00 deg 360x and it works!  Or 1.50 deg 240x.  3.00 deg 30x is 90.  Without microstepping.  You get the picture.

You can easily remove the floats to make the code size much smaller.  You only lose movedeg and err functionality.  Only the functions that you use are included in the executable.  Some of my sketches are 1.2K in size.  I think this will work on ATTINY85 with a few changes.

I was thinking of adding sleep between steps when you're going slow.  Anyone want it?
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Bajdi

I just tried it out, had not seen that you posted the .pde file  :smiley-red: It does work very well. I've thought about buying a cheap tripod and add a stepper motor to it to make 360 pano's. Might be possible with this little motor? That's quite a bit of code you have written, hats off to you!

sbright33

http://www.amazon.com/gp/product/B0000AUR21/ref=cm_cr_mts_prod_img
This is much better in the real world with big lenses making a GigaPan, it's sturdy.
I wrote a simple library for it. You just need a screwdriver to modify it.
I removed the internal stops and made a simple one on the outside.
You could design a bearing to use with our tiny motors.
But I just mounted my T2i on the shaft!  Made a wooden base for the motor.
It works fine so long as you have a level table or rock to set it on.
The Bescor goes 7deg/sec max.
Our stepper 30RPM which works out to 180deg/sec or 25x as fast.
Too fast to stop blur with a 200mm lens spinning on it.
That's why I wrote unramp() to stop and start.
With the Bescor I can take a panorama or Gigapan without stopping @300mm.
With the stepper I can capture 360 deg in 2 seconds.
I've been making endless panoramas, they just keep going and going, round and round...
Faster than this, 1/8th the price:
http://gigapan.org/cms/shop/epic-pro
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

Bajdi

Haha, many times I have almost ordered a Gigapan. But the local camera shop over here wants 1000€ for the pro version. Which I need for my Nikon D300/700. Never heard of the Bescor, looks like a nice cheap solution. It's on my wanted list, thanks for the info.

Go Up