Hi, I'm a neophyte in arduino programming, I'm started to program arduino since 2 weeks, I have the necessity to drive a step motor (with arduino) and at the same time I want to monitoring ,with a linear encoder, the position of the slide drived by the step motor. How can I do that. Is possible?
Sorry for my poor english.
I wait your reply, this project is really important for me.
reply soon
thanks & best regards
AvioP
Do you have a particular linear encoder in mind? It sounds like you will need to read from the encoder, determine if there's a position error, convert this amount into steps and reposition the motor? Do we assume that errors are not expected to be the normal case?
How much travel range is required for your application?
I want to use a simple optical encoder (maybe the encoder used on the printing machine). Yes MARKT I want to convert the amount of position in steps and reposition the motor, but I don't know how to do that. the travel is about 120-140mm depends. The sensitivity of the encoder is about 0.05mm.In your opinion, Can I connect the output encoder pin directly to the arduino input pin? Or I have to use a board for convert the encoders signials? What about the arduino programming for this applications?
Reply Soon
Thanks a lot.
It should be a straightforward assembly. You should post a link to the encoder you're planning on purchasing for verification.
If you match the number of steps to the encoder to the number of steps of your motor (for example use a 200 step encoder for a stepper that steps 1.8 degrees per step) then programming will be quite simple -- just consisting of stepping the motor and then verifying that a step occurred.
thanks a lot for your reply. I want to use a linear epson 1290 encoder (i take it from a printer). I think thaht this encoder is really simple and economic. I don't know the encoder's resolution but I think it's about 0.1mm.