Show Posts
Pages: [1] 2
1  Using Arduino / Project Guidance / Re: Best way to track a flying object/Indoor object tracking. on: April 03, 2014, 02:00:04 pm
Thanks so much for the replies. I think what im going to attempt to do is add an IR Led onto the drone and tack it using the Kinect. That way I can  still have depth of the room while tracking the drone. I'll Try to post back to let you guys know whether or not i get it to work!

~Will
2  Using Arduino / Project Guidance / Re: Best way to track a flying object/Indoor object tracking. on: April 02, 2014, 06:10:03 pm
Also, i dont think roborealm will work because i only have access to linux and osx. Plus I know those two best.
3  Using Arduino / Project Guidance / Re: Best way to track a flying object/Indoor object tracking. on: April 02, 2014, 06:07:26 pm
If the Kinect is the answer what is the best way to go about it? Color or tracking the 'coptor based on the shape?
4  Using Arduino / Project Guidance / Best way to track a flying object/Indoor object tracking. on: April 02, 2014, 03:46:29 pm
Hello, I'm currently working on a project involving the tracking of a quadcoptor (a helicopter with four propellors.) I've taken a small remote control quadcoptor and used and arduino to replace the transmitter. I have not rewired the quad. I have replaced the transmitter so that i can control the quad from the computer.

I've been trying to use the Microsoft Kinect  to track the quad but that seems to be much more difficult that i anticipated. I would like to be able to track the quad so i know exactly where it is in the room. Then i'd like to set coordinates and have it fly and stay at that position. What i'm having trouble with is figuring out the best method to track the quad in all three dimensions, besides adding sensors onto the quad as this would involve replacing the entire main board and making it too heavy.

Thank, Will
5  Using Arduino / Programming Questions / Re: Ping sensor pausing on if statement on: June 02, 2013, 09:07:40 pm
What would be the simplest way to fix this? And yes, thank you. I was just using the "== 10" for testing.
6  Using Arduino / Programming Questions / Ping sensor pausing on if statement on: June 02, 2013, 06:44:11 pm
Hi, im working on making a robotic RC car. I have the steering servo, motor, and ping sensor all wired up. For some reason in my code. When it runs this
"if (inches == 10){" the ping sensor does what it's supposed to by turning the servos... Then it unexpectedly pauses for a second then resumes. Here is my code:

Code:
#include <Servo.h>

Servo ESC;
Servo Steering;

const int pingPin = 7;


void setup()
{
  Serial.begin(115200);
  ESC.attach(10);
  Steering.attach(9);

  arm();
}


void setSpeed(int speed)
{
  int angle = map(speed, 0, 100, 0, 180);
  ESC.write(angle);
}



void arm()

  Serial.println("Arming");
  setSpeed(30);
  delay(100);
 
  setSpeed(50);
  delay(200);
 
  Serial.println("Armed");
  setSpeed(30);
  delay(200);
}


long microsecondsToInches(long microseconds)
{
  return microseconds / 74 / 2;
}

void loop()
{
  int speed;
 
  long duration, inches, cm;

  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  delayMicroseconds(2);
  digitalWrite(pingPin, HIGH);
  delayMicroseconds(5);
  digitalWrite(pingPin, LOW);

  pinMode(pingPin, INPUT);
  duration = pulseIn(pingPin, HIGH);

  inches = microsecondsToInches(duration);
 
  Serial.print(inches);
  Serial.print("in");
  Serial.println();
 
  if (inches == 10){
    ESC.write(70);
    Steering.write(150);
  }else{
    ESC.write(30);
    Steering.write(90);
  }
}

If anyone has any ideas please let me know.

Thanks, Will
7  Using Arduino / Project Guidance / Re: Mcp4261 Digital Potentiometer + Arduino on: April 11, 2013, 04:18:53 pm
the code i am using can be found here: http://www.uduino.com/tutorials/1
8  Using Arduino / Project Guidance / Re: Mcp4261 Digital Potentiometer + Arduino on: April 09, 2013, 03:33:39 pm
I'm sorry, i had a typo i mean to say the MCP4131... Should this all apply tho that?
9  Using Arduino / Project Guidance / Mcp4261 Digital Potentiometer + Arduino on: April 08, 2013, 08:54:47 pm
Hi, im working on controlling an R.C. Quadcoptor (helicopter with four blades) via an arduino. I have four Mcp4261 digital potentiometers, which is one for each potentiometer that was on the original remote. I have taken apart the remote for the quadcoptor and I'm currently working on programing and wiring the circuit. I have been searching for a few days now and have been unable to find something that actually works. I keep coming across code that says to use "The Spi Library by Cam Thompson (not the official one)!" but this takes me to here: http://playground.arduino.cc/Code/Spi which says it's now included. Can someone please help me?

Thanks

~ Will
10  Using Arduino / Project Guidance / Cloning rc 2.4ghz radio signals on: March 20, 2013, 10:05:45 am
Hi, im working on a project where i send 2.4 ghz signals to a remote control helicoptor. I have a nRF24L01+ transceiver and i know that the remote control has an "amiccom a7105" transmitter chip. How would i clone the signals from the rc transmitter so i can control the rc helicoptor from the arduino and nRF24L01+ chip?

Thanks so much

~ Will
11  Using Arduino / Project Guidance / Re: Arduino controlling pot values on RC transmitter on: March 20, 2013, 09:37:21 am
Say i do this with the digital pwm, how would i wire this then? Also, how would i create analog from pwm?
12  Using Arduino / Project Guidance / Arduino controlling pot values on RC transmitter on: March 20, 2013, 12:48:05 am
Hi, im currently working on a robotic quadcoptor and need a little help... I'm trying to set pot values on the controller from the arduino. I have been trying for about 3 hours now and it nothing seems to be working. I have taken off the joystick which controls the throttle and aileron. I soldered 3 wires to where the potentiometer was. But im not sure what im supposed to do with them. I know that one of the should go to an analog pin on the arduino (to simulate a pot values.) But the power and ground im not to sure about. The remote control is running off of its own 6v power supply. so i cant power the remote control's circuit off of the arduino. So i need to know where the power wire from the remote control hooks up to, and what the ground wire from the RC hooks up to.

this is the code ive been testing with:

Code:
int throttle = 5;     // the pin that the throttle signal cable is connected to
int speedAmount = 0;  // how high the throttle is
int increment = 1;    // how much to speed up

// the setup routine runs once when you press reset:
void setup()  {
 Serial.begin(9600);

  pinMode(throttle, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop()  {
  // set the brightness of pin 9:
  analogWrite(throttle, speedAmount);   

  // change the brightness for next time through the loop:
  speedAmount = speedAmount + increment;

  // reverse the direction of the fading at the ends of the fade:
  if (speedAmount == 0 || speedAmount == 90) {
    increment = -increment ;
  }     
 
  Serial.println(speedAmount);
 
  // wait for 30 milliseconds to see the dimming effect   
  delay(300);                           
}

Thanks so much

~ will
13  Using Arduino / Project Guidance / Re: one random # on: September 17, 2011, 02:02:22 pm
awesome.... i just got it to work thanks so much everyone... i just changed the refresh rate and so every time i press the button it generates a random number at the right time.

thanks for your help everyone
14  Using Arduino / Project Guidance / Re: one random # on: September 17, 2011, 01:03:10 pm
I'm using the switch on the arduino uno protoshield....
15  Using Arduino / Project Guidance / Re: one random # on: September 17, 2011, 11:47:32 am
what do you mean?
Pages: [1] 2