E-mail: wisdomlongkeji@163.com
Cellphone: +0086-13534205279
SIMILAR PRODUCTS
SGMAH-02AAA61D-OY
SGMAH-02AAA61D-YO
SGMAH-02AAA6C
SGMAH-02AAA6CD-0Y
SGMAH-02AAA6SD
SGMAH-02AAAG761
SGMAH-02AAAGB61
SGMAH-02AAAH161
SGMAH-02AAAH76B
SGMAH-02AAAHB61
SGMAH-02AAAJ32C
SGMAH-02AAAJ361
SGMAH-02AAA-SB12
SGMAH-02AAAYU21
SGMAH-02AAF4C
SGMAH-02ABA21
SGMAH-02ACA-SW11
SGMAH-02B1A21
SGMAH-02B1A2C
SGMAH-02B1A41
SGMAH-02B1A6C
SGMAH-02BAA21
SGMAH-02BAA41
SGMAH-02BAAG721
SGMAH-02BBA21
SGMAH-03BBA-TH11
SGMAH-04A1A2
SGMAH-04A1A21
SGMAH-04A1A2B
SGMAH-04A1A2C
SGMAH-04A1A41
SGMAH-04A1A4B
SGMAH-04A1A4C
This can be used for example if you want to control the pan and tilt of a camera or sensor connected to the servos. It is almost the same code like the above example with the addition of code to read the voltage on a potentiometer. This value is scaled so that the position of the pot (from 0 to 1023) is mapped to a
value between 0 and 180 degrees. The only difference in the wiring is the addition of the potentiometer; please see figure below for hardware connection
●Resolution
This shows the angle that the motor rotates for 1 pulse.
The motor positioning accuracy is determined by the resolution. For example, resolution = 1000 p/rev means that a single rotation (360˚) can be divided into 1000.
●Speed Control, Position Control
The speed and positioning control commands of NX Series are performed by inputting the pulse signal the same as with stepping motors. The relationship of pulse, speed and position is as follows:
●The rotation angle (position) is proportional to the pulse number.
●The rotation speed is proportional to the pulse frequency.
Additionally, torque control and tension control are possible for NX Series
Arduino Sketch:
#include <Servo.h> Servo myservo; // create servo object to control a servo
int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
val = analogRead(potpin); ! ! // reads the value of the potentiometer
val = map(val, 0, 1023, 0, 179);!! ! // scale it to use it with the
servo
myservo.write(val);! ! ! ! // sets position to the scaled value
delay(15);! ! ! ! ! // waits for the servo to get there
}
Future Electronics Egypt Ltd. (Arduino Egypt).
.