Thread Tools
This thread is privately moderated by kevinlau, who may elect to delete unwanted replies.
Sep 03, 2019, 01:04 AM
Registered User
Thread OP
Discussion

DOMAN position feedback servo


The servos DOMAN S2003MD and S2000MD are now available with digital position feedback without the need of additional wires.

How to

To get the current angle, send a 50us (microsecond) pulse to the servo motor. The servo will pull the control wire high after the microseconds that represent the current position. This can be done using Arduino:

pinMode(pin, OUTPUT);
digitalWrite(pin, HIGH);
delayMicroseconds(50); // send a 50 us pulse to get the current position
digitalWrite(pin, LOW);
pinMode(pin, INPUT);
int position = pulseIn(pin, HIGH); //e.g. 500-2500

Examples
Teach and Replay
Wire the servo as shown below:


01





Press enter on the serial monitor (enable Carriage return) to teach the current angle. 3 angles can be teached. Press enter to replay the angles.

Mirror movement
Wire two servos according to:



Move the servo connected to pin 9. The servo on pin 10 should follow. Open the serial plotter to view the read angle.
Sign up now
to remove ads between posts


Quick Reply
Message:
Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
New Product DOMAN RC new programmable HV digital servos springrc Radios 1 May 15, 2012 08:54 PM
Discussion Micro/SubMicro Servo with 360 rotation and position feedback? lostmybrakes Radios 4 Mar 02, 2010 05:24 PM