Show Posts
|
|
Pages: [1] 2 3 ... 6
|
|
4
|
Topics / Robotics / Re: help needed for humanoid
|
on: October 28, 2011, 10:15:33 am
|
|
I don't want to start a flame war here, but I really am not a huge fan of using the arduino for large amounts of servos, it gets a little sketchy past 3-4 servos unless you are a really skilled in programming, and wiring. the pololu maestro series servo controllers is what I use for servo control for a lot of servos, but I have never tried to interface it with arduino. as for servo selection, do what everyone is saying, get some high torque (the more the merrier) servos and metal gears FOR SURE !!!!!! also, if you have enough space on your bot, make sure your batteries have a lot of Mah. just my advice though.
|
|
|
|
|
6
|
Using Arduino / Programming Questions / Memsic 2125 Programming help !!!
|
on: August 21, 2011, 07:28:12 pm
|
I need some help with coding the Memsic 2125 for the Arduino. what I Want to do is make a light appear on the Arduino when the Memsic 2125 recieves 900 or more milli-G's on either axis (X or Y). I however, have a problem I can't seem to fix, I can't make the light stop when the arduino encounters less than 900 milli-G's, and I need to hit the reset button to make the LED stop lighting so that I can re measure the values. so if anyone could edit my code here so that I could be able to have the LED stop automatically when it is less than 900 milli-G's. anyways, here is my code ! const int xPin = 2; // X output of the accelerometer const int yPin = 3; // Y output of the accelerometer
void setup() { // initialize serial communications: Serial.begin(9600); // initialize the pins connected to the accelerometer // as inputs: pinMode(xPin, INPUT); pinMode(yPin, INPUT); }
void loop() { // variables to read the pulse widths: int pulseX, pulseY; // variables to contain the resulting accelerations int accelerationX, accelerationY; // read pulse from x- and y-axes: pulseX = pulseIn(xPin,HIGH); pulseY = pulseIn(yPin,HIGH); // convert the pulse width into acceleration // accelerationX and accelerationY are in milli-g's: // earth's gravity is 1000 milli-g's, or 1g. accelerationX = ((pulseX / 10) - 500) * 8; accelerationY = ((pulseY / 10) - 500) * 8;
if (accelerationX > 900) digitalWrite(13, HIGH); if (accelerationX < -900) digitalWrite(13, HIGH); if (accelerationY > 900) digitalWrite(13, HIGH); if (accelerationY < -900) digitalWrite(13, HIGH);
}
|
|
|
|
|
7
|
Using Arduino / Microcontrollers / Re: Mini Maestro 18, and arduino HELP D: !
|
on: August 20, 2011, 08:37:34 pm
|
Ok I read it and I am totally lost, What I really need is just some sample code that makes a servo on the mini maestro move a little bit back and forth, and I need it narrated so I know how to adapt the code for my robot  If you could do that I would be really grateful, because I am a noobie at this :I
|
|
|
|
|
9
|
Using Arduino / Microcontrollers / Mini Maestro 18, and arduino HELP D: !
|
on: August 18, 2011, 09:37:53 am
|
Hello, I need some info on how to use the Pololu Mini Maestro 18 Channel servo Controller, with the Arduino, because I want to build A self aware humanoid, but I have no real control over the servos, because the logic for the bot (Which is almost done  .) Needs to communicate via xBee, and I really only know how to do that with Arduino :I. All I really want to know firstly, is it possible to do the Mini Maestro and the Arduino Together to control a 16 DOF humanoid ? here is the link for the servo controller http://www.pololu.com/catalog/product/1354
|
|
|
|
|