Loading...
  Show Posts
Pages: [1] 2 3 ... 13
1  Using Arduino / Motors, Mechanics, and Power / Re: how can I control 2 cordless drills with 1 potentiometer on: May 15, 2013, 07:52:13 pm
Hello,

I could not find what type of drills they are but i'm assuming they are dc (battery powered). To control them you need to know how many amps the will use up. I would assume less the two amps. If that is the case I would recommend a motor driver like the one posted in the links below. To power them Just take the batteries out of the drill attach them to the motor driver and your good to go. The coding to control them with a potentiometer should be easy but you should ask for help for that under "programing."

http://www.robotshop.com/productinfo.aspx?pc=RB-Dfr-19&lang=en-US
2  Using Arduino / Programming Questions / Re: Shorten to one if loop? on: May 14, 2013, 08:49:58 pm
Thanks for the info!
3  Using Arduino / Programming Questions / Shorten to one if loop? on: May 14, 2013, 04:38:36 pm
Hello,

Is their a way to shorten this to one if loop?


Code:
if  (inches < 9) {
 
 
  if (inches > 6) {
a = 3;
  }
}   



Thanks!
4  Community / Website and Forum / Re: can we force new posters to read forum stickies? on: May 13, 2013, 09:21:48 pm
Just an idea… what if they had to read the rules for a certain amount of time? They could not post until they had been on the page for a few minutes, or maybe they should have to pass a small test?
5  Topics / Robotics / Re: Autonomous Arduino Car on: May 13, 2013, 09:14:51 pm
How is your car going?
6  Using Arduino / Sensors / Re: Accelerometer MMA7361 on: May 12, 2013, 05:46:36 pm
Ok. Thank you for the info. I did not even notice that it did not work for analog. I will connect everything according to your post.
7  Topics / Robotics / Re: Autonomous Arduino Car on: May 12, 2013, 08:30:08 am
Try something like this…

Code:
F_DCMotor motor1(1, MOTOR12_64KHZ); // create motor #2, 64KHz pwm
AF_DCMotor motor2(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm

int long sensorValue = 0;

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Motor test!");
  
  motor1.setSpeed(2000);     // set the speed to 200/255
  motor2.setSpeed(150);     // set the speed to 200/255  /// change commits to be up to date
  
}

void loop() {
  Serial.print("tick");
  sensorValue = analogRead(A0);
    Serial.print(sensorValue);

   if (sensorValue > 520) { // I dont know if your sensor's readings get larger when it gets close to the wall or smaller so you might have to change > to <
  
  motor1.run(FORWARD);
  motor2.run(BACKWARD);      // turn it on going backward
  delay(1000);
  
  
    motor1.run(FORWARD);
  motor2.run(FORWARD);
   delay(500); //play around with the delay to make it turn the right amount
  
   }
  
   else {
  
  motor1.run(BACKWARD);
  motor2.setSpeed(150);
  motor2.run(FORWARD);      // turn it on going forward
  delay(1000);
  
  
   }
}
8  Topics / Robotics / Re: Autonomous Arduino Car on: May 12, 2013, 07:56:27 am
Could you please post the code you already have.

Also, how close do you want the robot to be before it reverses and turns around? Use the code below to see the analog value that the sensor is putting out. Place the robot as close to the wall as you want it then run the code and look at the serial monitor on your computer. It should read out the analog value of the sensor. When you post the code post that value as well.

Code:

/*
  AnalogReadSerial
  Reads an analog input on pin 0, prints the result to the serial monitor.
  Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
 
 This example code is in the public domain.
 */

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  Serial.println(sensorValue);
  delay(700);        // delay in between reads for stability
}


Best of luck,
Drew
9  Using Arduino / Sensors / Accelerometer MMA7361 on: May 11, 2013, 09:11:56 am
Hello,

I ordered a Accelerometer from spark fun and a logic level converter. I would like to make sure every thing is correct before I plug it in. Do you think my drawing will work (see attachment).

Products I used ....

https://www.sparkfun.com/products/9652

https://www.sparkfun.com/products/8745

Also, I could not find the exact Accelerometer for the drawing but I put one in that looked close.
10  Using Arduino / Sensors / Re: RFID RXO HELP on: May 11, 2013, 08:30:15 am
Thanks I will try that.
11  Using Arduino / Sensors / Re: RFID RXO HELP on: May 11, 2013, 07:40:20 am
Perhaps I did not explain my problem well. I have posted a link Illustrating how the RFID Reader hooks up to the Arduino. Although I have a mega and i'm not using the LED's the rest is the same. What I have to unplug is pin 0.

http://bildr.org/2011/02/rfid-arduino/


Thanks!
12  Using Arduino / Sensors / RFID RXO HELP on: May 10, 2013, 10:45:14 pm
Hello,

I have an RFID reader but each time I turn on the Arduino I have to unplug the RFID RXO Line for a second. Once I put it back into the board the reader will work until I turn off the Arduino. Is this normal and is their any way around it?

Also, i'm using a MEGA 2560 and Pin 0.

Thanks!
13  Topics / Robotics / Re: Line following robot build on: May 10, 2013, 03:23:17 pm
The first thing you will want to do is build a frame. Just use some wood or metal to start with. Once you do that read up on how to wire everything together. Until you do that their is not much more we can help you with. As for the programing come back and ask for help once the robot is built.

I have posted a few links that should help you get started.


http://www.robotplatform.com/howto/L293/motor_driver_1.html

http://luckylarry.co.uk/arduino-projects/control-a-dc-motor-with-arduino-and-l293d-chip/

Best of luck,
Drew Davis
14  Using Arduino / General Electronics / Re: How do Ground's work? on: May 10, 2013, 09:26:55 am
Thanks for all the help! I connected all the grounds together and everything is working well. I would love to learn what a ground loop is though.



Thanks!
15  Using Arduino / General Electronics / Re: How do Ground's work? on: May 10, 2013, 08:46:41 am
Also, I forgot to mention that each motor driver will be using their own battery pack. So what I plan on doing is running both the grounds of the battery back together and one pin coming from the ground on the Arduino. Then from the connection I will have two wires, one for each ground connection on the motor driver.
Pages: [1] 2 3 ... 13