Loading...
  Show Posts
Pages: 1 ... 37 38 [39] 40 41 ... 118
571  Topics / Robotics / Re: HELP! Servo keeps running (with just attach() method)!! on: March 15, 2013, 12:33:04 am
Quote
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.
572  Using Arduino / General Electronics / Re: How to estimate number of hours remaining before battery dies? on: March 14, 2013, 10:06:02 pm
Quote
So, the 1 ma timer draw = approximately 25 ma in a day.

You mean....

25mA hours

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 here

You need a line like:

Code:
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
Quote
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
575  Using Arduino / Project Guidance / Re: controlling two servos on: March 14, 2013, 02:41:00 pm
Quote
The servos are not really working vey well

I thought both were problematic, but now you say:

Quote
the other servo is working correctly
576  Using Arduino / Project Guidance / Re: controlling two servos on: March 14, 2013, 02:33:31 pm
But you have these in the loop:

Code:
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.
578  Using Arduino / Project Guidance / Re: controlling two servos on: March 14, 2013, 02:06:14 pm
You posted this in the motors forum as well.... you shouldn't do that  smiley-roll
579  Using Arduino / Project Guidance / Re: controlling two servos on: March 14, 2013, 02:03:35 pm
Quote
negatives from the servos go to gnd together with batterie

And do they go to the Arduino ground as well?



580  Using Arduino / Motors, Mechanics, and Power / Re: problem with supply on a hexapod robot on: March 14, 2013, 01:59:49 pm
Quote
4 AA alkaline battery of 15A

Wow.....
581  Using Arduino / General Electronics / Re: Multiple pushbuttons and pulldown resistor on: March 14, 2013, 01:14:43 pm
Quote
The drawing is flawed.

No, it's not, since the point that you make pwillard:

Quote
Any keypress will be the same as ALL keys being pressed since the inputs

is exactly the point that James was making when he posted that sketch.
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.
583  Using Arduino / General Electronics / Re: What Arduino ground pin to wire to existing circuitry on: March 13, 2013, 10:04:32 pm
Quote
That way, power supply current and output ground current doesn't affect the sensor readings so much.

Even though they're electrically connected? Interesting...
584  Using Arduino / LEDs and Multiplexing / Re: TLC5940 hookup to Uno for servo running ... no action on: March 13, 2013, 10:03:05 pm
Quote
And when I do this on the tlc5940 setup on the PWM 3 pin there is no fluctuating signal.

I know the TLC59040 library is widely used; I just can't figure why its not working in my case.

Tried a different pin?
585  Using Arduino / Project Guidance / Re: What bracket & servos should I use for a Servo Controlled laser? on: March 13, 2013, 09:58:27 pm
Quote
It's making use of the "1 in 60" rule for small angles: Tan of 1 degree is approximately 1/60

Ah, right, relying on the fact that for small theta, tan theta = theta.
Pages: 1 ... 37 38 [39] 40 41 ... 118