Go Down

Topic: Steppers 28BYJ-48 for webcam pan-tilt (Read 1 time) previous topic - next topic

sbright33

If you have a mechanical stop then 2 methods become possible.  Just rotate long enough so you know you are at the limit.  Or use my library to detect the change in current to a winding when it hits the stop.  Only a resistor is needed for hardware using this code.
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

harriscreekcentral


Is there any other way to know position of stepper ? I really need to do it.
May I need be some rotary encoder, but I dont know which and how to connect it to my stepper
I many time have tried to find solution in google but nothing ..


Check out this You Tube Video.  This is where I am heading to make a dividing head for my mini lathe. I want to cut brass gears, so if I need 16 teeth in my gear, I set it for 16 divisions. You may be able to use this concept

Here is the link to the video::  https://www.youtube.com/watch?v=XwX0YjClgQE

Harvey
in Kelowna, BC
Harvey
in Kelowna, BC

d00m

Is there any other way to know position of stepper ? I really need to do it.
May I need be some rotary encoder, but I dont know which and how to connect it to my stepper
I many time have tried to find solution in google but nothing ..

d00m

MarkT
Thank you !
So you advise put two microswitches on the stepper in two places where shaft will get 0 and 180 degree and somehow get a signal from them to ardiuno sketch ?
But what they should switch ? How to get these signals to arduino ?
Maybe encoders are good idea, but what kind of them should I search ?

MarkT

Steppers only hold position when powered up, so after they've been off the position won't be well defined.
(by contrast hobby servos have an absolute reference built in).

You need some means to obtain a reference position, typically a limit switch. On power-up you
need then to step till the limit switch is hit, this defines your current position, and thereafter you
can just rely on the stepper keeping accurately to the step output (assuming it has enough
torque for the load).

There are alternatives like an absolute encoder, but not commonly or cheaply available.  Microswitches
are stock items.
[ I won't respond to messages, use the forum please ]

Go Up