Hey!
Also ich habe wie bereits gesagt einfach das Demo-Programm, das Dirk auf der ersten Seite gepostet hat, genommen!
Code:
// Uncommented Version of RP6ControlServo.c
// written by Dirk
// ------------------------------------------------------------------------------------------
#include "RP6ControlServoLib.h"
uint16_t pos = 0;
int main(void)
{
initRP6Control();
initLCD();
showScreenLCD("################", "################");
mSleep(1500);
showScreenLCD("<<RP6 Control>>", "<<LC - DISPLAY>>");
mSleep(2500);
showScreenLCD(" Servo - Test 1 ", " Version 1.00 ");
mSleep(2500);
clearLCD();
setLEDs(0b111111);
mSleep(500);
setLEDs(0b000000);
initSERVO(SERVO1 | SERVO2);
startStopwatch2();
while(true)
{
if (getStopwatch2() > 48) {
servo1_position = pos;
servo2_position = pos;
setCursorPosLCD(0, 0);
writeStringLCD_P("Servopos.: ");
writeIntegerLCD(pos, DEC);
writeStringLCD_P(" ");
pos++;
if (pos > RIGHT_TOUCH) {pos = 0;}
setStopwatch2(0);
}
task_SERVO();
mSleep(3);
}
return 0;
}
Als Servos benutze ich 2x den Rs2, dann 1 mal den Es-05 und 1 mal den TG9E,
aber das ist wiegesagt bei allen Servos das gleiche Problem!
die Frage mit der Stromversorgung hast Du nicht beantwortet!
Nein, ich nehme also Stromversorgung die 5 Volt VDD vom Roboter!
LG Marcel
Lesezeichen