5v dc motor and 3 pin position encoder project

I plan to use a servo motor set up from a Yamaha crotch rocket exhaust valve. The Servo unit consists of a 5v motor and a position encoder.

Alps Position Encoder

Looking for basic high level programming help to accomplish using this device with the arduino to control the position of the motor with a potentiometer. I want to use this to control the throttle on a small engine dyno. My assumptions are that i will have to read the encoder position and translate that to a max and min value that will allow me to control the motor position to control the "throttle" position. I also have a feeling i will need to incorporate pid control to properly get the position data needed to have a smooth throttle position reading. any help is appreciated! thank you.

I plan to use an Arduino uno, and directly feed the motor from the Arduino board will i have any troubles controlling this small 5v motor from the Arduino outputs? will i need a motor driver board to feed the motor? i understand the limitations of the Arduino board are relying on the stall current of the motor at ~20mA (max pin output current) any tips on what i would need for this application?

What can you tell us about the encoder, it looks like a hall switch to me possibly counting the teeth or indicates open and closed. My suggestion buy a rotary encoder, it will work and be less problems in the long run.

Use an off the shelf rc servo and save yourself a lot of unnecessary bother.

1 Like

It is a 5v 10kohm rotary analog resistive position encoder. I have a link in the original post to it. It is a 3 pin, pwr,gnd,sensor.

That makes too much sense. I happen to have all that equipment already haha. I was looking for an excuse to pull out an Arduino again after all these years out of college :smiley:

What was the motor/encoder originally used for? If it uses a variable resistor to "encode" position, then that would suggest that in the original application there would be a limited range of movement otherwise the device would eventually hit the end of the resistor travel.

Can you post the link here?

Can you provide any more photos of the small sensor at the end of those 2 wires? Is there something attached to the black cog that is driven by the worm gear? Possibly a small magnet embedded in the plastic. There does look to be something around the 10 o'clock position but the photo of the gear is a bit too dark to determine if it's a reflection or not.

A simple one transistor driver may be all you need but first you need to find the motor stall current.

Treat is as a regular photometer. Assuming it is connected to 5V it will give you 0 - 5V, the voltage is in direct collation to your position. Keep your wiring clean and it should work good.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.