Show Posts
Pages: 1 2 [3] 4 5
31  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 24, 2013, 12:27:16 am
No. I can't get one either, because my mom doesn't want to buy anymore things for my science project.
32  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 24, 2013, 12:17:07 am
Me and a friend were discussing this at school, and he told me that the servo might have died. Should I just use 4?
33  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 24, 2013, 12:05:57 am
It says here that its 1.5v. http://data.energizer.com/PDFs/l91.pdf
34  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 23, 2013, 11:02:25 pm
Is six batteries too much power for the servo motor? I'm using 6 lithium ion batteries instead of 4 AA's in the tutorial.
35  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 22, 2013, 12:52:05 am
Well I'll be heading to bed now. Thanks for all the help, and I will start fixing my mistakes tomorrow.  smiley-lol
36  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 22, 2013, 12:38:01 am
Here ya go. http://fritzing.org/projects/multiple-servo-setup/
37  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 22, 2013, 12:17:17 am
I'm downloading it right now. Sorry for the late replies.
38  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 21, 2013, 10:46:29 pm
Here a close up.
39  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 21, 2013, 09:19:04 pm
// Multi Sweep, Duane B
// Using the servo library created by Michael Margolis
// to control 12 Servos with one Arduino Uno

#include <Servo.h>
// Sample sketch for driving 12 Servos from an Arduino UNO, servos are attached to digital pins 2,3,4,5,6,7,8,9,10,11,12,13

#define CONNECTED_SERVOS 12

// macro just adds two - the first servo is attached to digital pin 2, this gives us upto 12 servos - digital 2 to 13
#define SERVO_TO_PIN(x) (x+2)

Servo myServos[CONNECTED_SERVOS];

#define COUNT_DOWN -1
#define COUNT_UP +1
#define INCREMENT 10 // move in steps of 10 milliseconds

int nPulseWidth = DEFAULT_PULSE_WIDTH ; // 1500, defined in servo.h
int nDirection = COUNT_UP;

volatile unsigned long ulStart = 0;
volatile unsigned long ulStartToEnd = 0;

void setup()
{
  // attach the servos
  for(int nServo = 0;nServo < CONNECTED_SERVOS;nServo++)
  {
    myServos[nServo].attach(SERVO_TO_PIN(nServo));
  }
 
  // the library sets all servos to 1500 ms pulse width by default, this is center for a steering servo
  Serial.begin(9600);
  Serial.println("Completed setup"); 
}

void loop()
{
  delay(10);  // give the servos time to move after each update
 
  if(ulStartToEnd)
  {
    Serial.println(ulStartToEnd);
    ulStartToEnd = 0;
  }
 
  nPulseWidth += nDirection * INCREMENT;
 
  if(nPulseWidth >= 2000)
  {
    nPulseWidth = 2000;
    nDirection = COUNT_DOWN;
  }
 
  if(nPulseWidth <= 1000)
  {
    nPulseWidth = 1000;
    nDirection = COUNT_UP;
  }
 
  for(int nServo = 0;nServo < CONNECTED_SERVOS;nServo++)
  {
    myServos[nServo].writeMicroseconds(nPulseWidth);
  }
}
40  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 21, 2013, 08:55:30 pm
I'm on step 3 of this tutorial (http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html) and the servo doesn't move when I upload the sketch. Can I get some help?
41  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 20, 2013, 06:09:49 pm
I don't understand how to add multiple servos to the breadboard... I read this tutorial (http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html),and I don't get how he added the last 4(?) servos towards the end. I did Sweep on the Arduino UNO, but I don't think there are enough ports on it to support many servos at once. Can I get some help?  smiley-sad
42  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 20, 2013, 01:08:47 am
I need all the help I can get.
43  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 20, 2013, 12:43:34 am
I UNDERSTAND NOW!
44  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 20, 2013, 12:29:47 am
Where would I put the strings? Here is picture of the "hand" if it helps at all.
45  Using Arduino / Programming Questions / Re: Need some help for a science project. on: January 20, 2013, 12:12:15 am
This is the only part I don't get. I just don't understand how the servo will move the fingers..  smiley-confuse
Pages: 1 2 [3] 4 5