about Arduino control SERVO turning disorderly.

Thread Starter

LAOADAM

Joined Nov 21, 2018
956
I don't recognize any of the items in the pictures except the cables. What are they and what are you trying to do with them?
Well, seems it is not easy to explain all story.
simple they are rotate encoder trying to use to count the SERVO rotate degrees.
 

Ya’akov

Joined Jan 27, 2019
10,274
I would offer some suggestions but I have no idea what you are trying to do.
My inference is that he wants a wide range positionable servo so he is trying to take a continuous rotation servo and instrument it so he can manage the position.

I don't know which library he could use for that but in principle it seems doable.
 

djsfantasi

Joined Apr 11, 2010
9,237
My inference is that he wants a wide range positionable servo so he is trying to take a continuous rotation servo and instrument it so he can manage the position.

I don't know which library he could use for that but in principle it seems doable.
I think the standard servo library would work, as the servo only uses three commands. Move servo clockwise, counterclockwise and stop. With the encoder, he’d start the servo moving, count the pulses and stop the servo when it is in position. Note that with an encoder, the number of positions is limited.

I thought the solution presented by KeithWalker was the best one based on my understanding of the TS requirements.
 

KeithWalker

Joined Jul 10, 2017
3,613
I built this ultrasonic distance sensor some years ago. It plugs onto a Uno like a shield. The servo rotates 90 degrees in 1 degree steps, rotating the platform 180 degrees and the software plots the position of the echo on a semi-circular display, something like radar. To get the exact rotation of the servo, it is geared to a feedback potentiometer that rotates 270 degrees. This may give you some ideas for your project.
.
DistPlot 001.jpgDistPlot 002.jpg
 
Last edited:

Delta Prime

Joined Nov 15, 2019
1,311
I built this ultrasonic distance sensor some years ago. It plugs onto a Uno like a shield. The servo rotates 90 degrees in 1 degree steps, rotating the platform 180 degrees and the software plots the position of the echo on a semi-circular display, something like radar. To get the exact rotation of the servo, it is geared to a feedback potentiometer that rotates 270 degrees. This may give you some ideas for your project.
.
View attachment 262469View attachment 262470
Would you happen to have a ultrasonic distance sensor schematic to go along with the wonderful photos by chance, please. ;)
 

Thread Starter

LAOADAM

Joined Nov 21, 2018
956
My inference is that he wants a wide range positionable servo so he is trying to take a continuous rotation servo and instrument it so he can manage the position.

I don't know which library he could use for that but in principle it seems doable.
Thanks.
Yes, what I have in hand are 180 degree SERVO, I ordered lot of 360 degree SERVO when I saw that products on aliexpress, but that is really not SERVO at all.
They removed the potentiometer inside and just continually running without possible to control the position.
 

Thread Starter

LAOADAM

Joined Nov 21, 2018
956
I built this ultrasonic distance sensor some years ago. It plugs onto a Uno like a shield. The servo rotates 90 degrees in 1 degree steps, rotating the platform 180 degrees and the software plots the position of the echo on a semi-circular display, something like radar. To get the exact rotation of the servo, it is geared to a feedback potentiometer that rotates 270 degrees. This may give you some ideas for your project.
.
View attachment 262469View attachment 262470
Thanks for the idea.
I like to find if there are products on market.
 
Top