Loading...
Pages: [1]   Go Down
Author Topic: 120 degres servo  (Read 751 times)
0 Members and 1 Guest are viewing this topic.
Bacau, Romania
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello
I have a servo like this: http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=6222
The problem is the following: servo is only 120 degrees and I need to do 180 degrees. I could reach 180 Arduino board? He is capable of making 180 degrees, but is limited to 120 grade.Can I overcome this limitation?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 311
Posts: 35483
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the servo is physically limited to 120 degrees, nothing you do in software is going to change that. Time to go shopping...
Logged

United States (Texas)
Offline Offline
God Member
*****
Karma: 2
Posts: 525
Arduino socks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

however it could be that the pulse widths are not properly setup. if i recall there was a method that let you set the minimum and maximum pulse positions. it could be that the code just needs to be adapted for his servo
Logged

0
Online Online
Tesla Member
***
Karma: 50
Posts: 6543
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it is a digital servo, it may need to be reprogrammed to rotate 180 deg.
Logged

Why I like my 2005 rio yellow Honda S2000 with the top down, and more!
GOOGLE ADVANCED FORUM SEARCH BELOW!  
Go to:  http://www.google.com/advanced_search?hl=en
put in key search words,
use site or domain:  http://arduino.cc/forum
or in a google search box put key words site:http://arduino.cc/forum

Bacau, Romania
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is not physically limited to 120 degrees.
how can I see what is the minimum and maximum puls?
Logged

Ohio
Offline Offline
Full Member
***
Karma: 0
Posts: 227
Arduino Hexapod
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Post your code, and we can help you troubleshoot.
Remember to use the # code button.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 137
Posts: 19030
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
is not physically limited to 120 degrees.
how can I see what is the minimum and maximum puls?

Look around the forum for zoomkat's oft-posted serial servo example code.

(how do you know it is not limited?)
Logged

Pete, it's a fool looks for logic in the chambers of the human heart.

0
Online Online
Tesla Member
***
Karma: 50
Posts: 6543
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The standard servo test code you can use to see what is going on with your servo.

Code:
// zoomkat 10-4-10 serial servo test
// type servo position 0 to 180 in serial monitor
// for writeMicroseconds, use a value like 1500
// for IDE 0019 and later
// Powering a servo from the arduino usually DOES NOT WORK.

String readString;
#include <Servo.h>
Servo myservo;  // create servo object to control a servo

void setup() {
  Serial.begin(9600);
  myservo.attach(7);  //the pin for the servo control
  Serial.println("servo-test-21"); // so I can keep track of what is loaded
}

void loop() {

  while (Serial.available()) {
    delay(1); 
    if (Serial.available() >0) {
      char c = Serial.read();  //gets one byte from serial buffer
      readString += c; //makes the string readString
    }
  }

  if (readString.length() >0) {
    Serial.println(readString);  //so you can see the captured string
    int n;
    char carray[6]; //converting string to number
    readString.toCharArray(carray, sizeof(carray));
    n = atoi(carray);
    myservo.writeMicroseconds(n); // for microseconds
    //myservo.write(n); //for degees 0-180
    readString="";
  }
}

Logged

Why I like my 2005 rio yellow Honda S2000 with the top down, and more!
GOOGLE ADVANCED FORUM SEARCH BELOW!  
Go to:  http://www.google.com/advanced_search?hl=en
put in key search words,
use site or domain:  http://arduino.cc/forum
or in a google search box put key words site:http://arduino.cc/forum

Pages: [1]   Go Up
Print
 
Jump to: