Show Posts
Pages: 1 2 [3] 4 5 ... 10
31  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 22, 2014, 07:12:15 am
Quote
Inside how far apart do they need to be for me to notice a change?
That was the point I was trying to make earlier. Distance and RSSI are related, but there are so many factors other than distance that have a far greater impact. Put one XBee inside, and put the other outside, or upstairs. Just having a wall between them will have a bigger impact than moving them 20 feet farther apart.
That's I guess what I was trying to get to.  I live in a 2 bedroom apartment, so one at one end of the apartment and the other in the other corner might tell me more with some obstructions between the two.
32  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 21, 2014, 01:31:35 pm
Have you tried connecting direct to the Mega without your shield or at least tried a different pin for the RSSI just in case the shield is not passing pin 8 through as expected.
Does the RSSI LED on the Sparkfun breakout board adjust in intensity depending on signal strength?

Yes I have connected directly to the mega on several different pins and with the same results.  I've also tried running through a spark fun logic level converter too, thinking that maybe 3v wasn't enough to identify the edge of the pulse.  Check http://forum.arduino.cc/index.php?topic=205403.msg1511651#msg1511651 for the findings of that question.   Glad to know that my antics aren't just crazy ideas, that I am working good troubleshooting practices.  Ive also checked continuity from the pin on the header of XBEE socket to the wire leaving the adapter, that's good too.  The glowing led would lead me to believe that  the RSSI is working on the XBEE adapter.  The one thing that I hadn't checked is the dimness of the RSSI LED.  Inside how far apart do they need to be for me to notice a change?

Thanks for all of the help in troubleshooting this!

Loren
33  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 21, 2014, 08:12:30 am
I designed it and had it made.  

The picture below is the schematic.  I'm waiting on parts to implement the other input.
34  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 21, 2014, 07:54:41 am
I actually have the xbee attached to a shield I've been working on.  The serial is connected to serial1 on the mega and has been working flawlessly.    Currently the RSSI wire is connected from pin 6 on the XBEE directly to the pin 8 header on the shield connected to the mega.  If more pictures are needed please let me know.



Thanks again,

Loren
35  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 20, 2014, 10:50:21 am
Xbee Pro series 2.  I don't have anything more specific than that with me.  I could get more info later
36  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 20, 2014, 08:12:52 am
Did your test sketch look something like this..
Code:
int rssiPin = 8;
unsigned long rssiDur;

void setup(){
  Serial.begin(9600);
  pinMode(rssiPin , INPUT);
}

void loop(){
  rssiDur = pulseIn(rssiPin , LOW, 200);
  Serial.println(rssiDur);
}

Yes it did

Is the XBee pin 6 still configured to supply RSSI as it's use can be change?

I think so, but how would I double check?  I've been using X-CTU to configure my xbee.
37  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 20, 2014, 07:41:33 am
Once I'm able to get anything other than zero from the input, the number will be displayed on a tft as a bar graph.  This will give me the ability to determine if I can reliably send a command to the quad rotor to do a task.
38  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 20, 2014, 07:25:06 am

Just the standard one. What are you intending to use the RSSI value for? Determining distance between two objects is not something RSSI is useful for.

Signal strength for telemetry on a quad rotor.
39  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 20, 2014, 06:20:50 am
A quick look and it seems the RSSI value is a PWM signal out of pin 6 of the XBEE and it should be read using something like...
Code:
rssiDur = pulseIn(digitalPin, LOW, 200);
Your original sketch was very close but the pulse width your measuring should be the LOW pulse and not the HIGH. Adding the 200 timeout to the pulseIn command means it will not wait forever if no pulse (no signal) arrives within time.
You don't do anything with 'duration' in your sketch but I assume that because it was just a demo.
Hope this works and helps.


Thanks for the input.  I tried your suggestion along with both 200 and 500 for timeout and both LOW and HIGH, rssiDur is still returning 0.

Any thoughts?
40  Using Arduino / Networking, Protocols, and Devices / Re: Trying to get RSSI Value... How do I troubleshoot this on: January 19, 2014, 10:10:18 am
Can you tell us what hardware your using and how it's wired up.

Of course, sorry for not including that in the OP.  My XBee is connected via this:  https://www.sparkfun.com/products/11373 the RSSI output (pin 6) is connected to pin 8 on my mega.  The serial is connected via serial1 and obviously ground and 5v are connected as well. 

Thanks for your help,

Loren
41  Using Arduino / Networking, Protocols, and Devices / Trying to get RSSI Value... How do I troubleshoot this on: January 19, 2014, 08:44:39 am
Hello,

So I've tried this:

Code:
int pin = 8;
unsigned long duration;

void setup()
{
  pinMode(pin, INPUT);
}

void loop()
{
  duration = pulseIn(pin, HIGH);
}

And I've tried this:  

Code:
volatile int16_t pwm = 0; //pwm value
volatile int16_t trig = 0; //timer value
#define pin 8 //pin the interrupt is attached to

void intHandler() //function to call on interrupt
{
    if(digitalRead(pin)) //if the pin is HIGH, note the time
  {
    trig = micros();
  }
  else
  {
    pwm = micros()-trig; //if it is low, end the time
  }
}

void setup(){
  pinMode(pin, INPUT); //set the pin to input
  attachInterrupt(pin,intHandler,CHANGE); //attach the interrupt function "intHandler" to "pin" whenever the state changes
  Serial.begin(9600); //begin serial comms
}

void loop()
{

  Serial.print("PWM = ");  
  Serial.println(pwm);
}

What could I do to narrow down what the problem is.  My guess is that it is a hardware issue but I'm not sure.

Thanks,

Loren
42  Using Arduino / Project Guidance / First "home brew" arduino pro mini needs another set of eyes on: January 01, 2014, 06:04:50 pm
Hello,

I'd like to build a custom controller for a hexicopter I'm building and I think that I have all of the necessary parts.  The controller will take information from the flight controller I'm using and change a light pattern based on that information.  Do I have all of the necessary components in the drawing below to successfully create my own custom pro mini?



My hope is to control 6 RGB LED strips via 3 shift registers to 3 darlington arrays.  If anyone has any suggestions as to a better way of accomplishing this task, don't hesitate to throw any ideas my way.  

Also,  I've been looking for a library for a hirose df13 connector library.  I found one, added it to my eagle library but when I try and choose the part, that part library is not listed.  Any suggestions?

Thanks a bunch,

Loren

43  Using Arduino / General Electronics / Re: XBee RSSI out to Arduino Mega on: December 18, 2013, 08:09:26 pm
Does anyone know if the pwm period changes based on the buad rate of the XBee?  If so how do I find out what it should be for 567000?

Thanks,

Loren
44  Using Arduino / General Electronics / XBee RSSI out to Arduino Mega on: December 18, 2013, 09:14:13 am
Hello,

I've been using one of these: https://www.sparkfun.com/products/11373  to interface an XBee with my Mega.  If I want to read the RSSI output, will I need to take the RSSI through a level shifter up to 5v in order for the mega to recognize the HI state of the pulse?  Or is 3v sufficient?

Thanks,

Loren
45  Using Arduino / Networking, Protocols, and Devices / Inconsistent connection and communication between XBees for Mavlink on: December 10, 2013, 07:13:02 pm
Hello,

I'm in the process of trying to build an ardustation (mounted to my radio) with a few extra functions in an attempt to learn more about my drone and mavlink.  In the process I've fought with ensuring the XBees are configured properly and communicating well.  I've followed this: http://tutorial.cytron.com.my/2012/03/08/xbee-series-2-point-to-point-communication/tutorial to the letter.  This morning I rechecked my the configurations, plugged the XBee (router) into my drone and the other XBee (Coordinator) into the mega and I was receiving more information than I ever had.  I was elated.  I took a break over lunch and when I came back the only information I was receiving was heartbeat information (only about 20% of what I did in the morning).  How could I make this setup more consistant?  Or maybe a better question, is there any method to check if the information is all making it to my mega from the Drone?

Eventually I'd like to use an additional Xbee to feed Mavlink information to Mission Planner on my laptop.  Is this even possible?


Thanks,

Loren


Pages: 1 2 [3] 4 5 ... 10