|
571
|
Topics / Robotics / Re: HELP! Servo keeps running (with just attach() method)!!
|
on: March 15, 2013, 12:33:04 am
|
Sounds like you bought a continuous rotation servo. But that wouldn't explain why it was working, and now it's not.... A way to test that would be to send it to position 90, which if I understand things correctly is 0 speed on a continuous servo, with position 0 being max speed one way and 180 being max speed the other. (Although from what I read here it's not always 90 exactly, try values either side.) Your 0 would indeed be sending it off in circles if it's a continuous servo.
|
|
|
|
|
573
|
Using Arduino / Programming Questions / Re: need help with writing a program
|
on: March 14, 2013, 02:52:04 pm
|
That error is due to you not having declared the variable ctr, as explained for example hereYou need a line like: int ctr; But then you need to do something to change the value of the counter, otherwise it will never change between all those values you want to test for. And there's no "if" at the start of your "if".... you need to look at this
|
|
|
|
|
574
|
Using Arduino / Displays / Re: 16x2 LCD clear screen
|
on: March 14, 2013, 02:44:03 pm
|
the solution to this problem, which just came to my mind, could be that i change the lcd.print("OK"); to lcd.print("OK ") I think (but not 100% certain) that that is a common way to get rid of the remnants of previous prints
|
|
|
|
|
576
|
Using Arduino / Project Guidance / Re: controlling two servos
|
on: March 14, 2013, 02:33:31 pm
|
But you have these in the loop: myservo.write(91); myserva.write(90); so each time thru the loop, myservo for example is going to 91 followed by whatever the button tells it to do. But if they're continuous servos, and you need normal operation, I think you're screwed anyway.
|
|
|
|
|
577
|
Using Arduino / Project Guidance / Re: controlling two servos
|
on: March 14, 2013, 02:15:35 pm
|
|
And it sounds like these are continuous rotation servos? I've never used one before...
It's looping really really fast thru that loop though, so I think you'll be confusing the servos by the frequency with which you send those writes (whether the servos are normal or continuous....)
Edit....
Afaik, once a servo is continuous, that's the way it's going to stay. On a normal servo the value you send is a position, but for a continuous one, that value is the rotation speed.
|
|
|
|
|
582
|
Using Arduino / Motors, Mechanics, and Power / Re: problem with supply on a hexapod robot
|
on: March 14, 2013, 01:10:27 am
|
|
When you say they do not work, do you mean not at all? What do you mean by unstable?
First things first: have you got the ground of the servo battery pack connected to the Arduino ground?
If that's not the problem, then I'm guessing that 4xAAs can't provide enough current to all of those servos. So maybe get at least another battery pack and supply 4 servos with one and 4 with the other? Or get 4 and supply 2/2/2/2.
|
|
|
|
|