define position for wiper motor

Hy Guys,

I have following problem:

I am controlling a 24V wiper motor with an arduino uno and a BTS7960B motor driver.
Controlling speed and direction works fine, but I want to include a current messurement.
So if the current rises above a certain value, the engine should stop and go back to a defined position.

So I don´t know if it´s possible to define such a "parking position" and how it could be done.

If anybody has an idea how it could be done, I'd really appreciate some help.Thank you in advance.

-r

define such a "parking position" and how it could be done.

Zero or parking position is usually defined by something attached to the motor shaft. That can be either a cam or lever that trips a switch, or a disk with a hole that allows light through. Use an optointerrupter to detect the hole.

jremington:
That can be either a cam or lever that trips a switch, or a disk with a hole that allows light through. Use an optointerrupter to detect the hole.

I also thought about an photoelectric sensor, but my hope was, that it would be possible with the software only...

thanks for the quick response

You have no real control of position/angle with a DC motor unless you have a sensor measuring it. You
get to control current (and therefor torque) and unloaded speed (voltage), but you have no information on the
rotation speed other than rough estimation, and integrating a rough estimate of speed gives a rubbish estimate
of position.