Show Posts
Pages: 1 2 3 [4] 5 6 ... 11
46  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
47  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.
48  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.
49  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.
50  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?
51  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
52  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
53  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

54  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
55  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
56  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


57  Using Arduino / Project Guidance / Re: Multi pin continuity tester on: September 03, 2013, 08:44:06 pm
The company that manufactures the cable uses a 52 pin connector.  I simply didn't do the math but reducing the number of components would probably be a good idea.
What are you trying to test?


continuity of each pin individually.



58  Using Arduino / Project Guidance / Multi pin continuity tester on: September 03, 2013, 03:31:10 pm
I am currently looking into the feasibility of a continuity tester for a 16 channel audio snake system that we use.  Here is the general idea that I have.  The pins at the female end of the snake would be connected to one pin of a shift register (to maintain isolation for each pin).  The pins at the male end of the snake would be connected to a 4051 multiplexer chip.  The idea is to step through each pin, set the shift register output high, and then check to see if the corresponding multiplexer pin has voltage.  

Here is a quick drawing I did for 8 pins to help illustrate my idea:




Is checking 54 pins this way a good idea?

If so would isolation between the snake and arduino be a good idea?

Thanks,

Loren
59  Using Arduino / Microcontrollers / Re: My path towards ATTiny and serial Comms on: June 20, 2013, 05:42:14 pm
Ok so I admit I'm a total noob when it comes to cores.  Can I easily load multiple cores into the arduino IDE or am I up against a one at a time kind of thing?


60  Using Arduino / Microcontrollers / My path towards ATTiny and serial Comms on: June 20, 2013, 04:47:38 pm
I'm working on a project that I would like to interface a ATTiny85 with XBee series2.  I've been successful with getting a bootloader on the ATTiny, I've also got the blinking LED sketch loaded and working without any problems.  The first obsticle (of many I'm sure) is that I get the error:

Code:
'Serial' was not declared in this scope

I've tried to do google searches, and it appears that I'm not using the right core.  The articles that I've read are not the most recent and I'm not sure what core to needs to be loaded.

This blog post is what I used as a guide to get me started:  http://www.txoof.com/2013/04/reading-serial-data-from-attiny85.html

Here is the simple sketch that I've tried to use without success:

Code:
void setup()  {
 Serial.begin(9600);
}
 
void loop()
{
 Serial.println("Can it be true?! A serial monitor indeed!");
 delay(10);
}

Any advice on how to choose a core would be great.  Thanks!
Pages: 1 2 3 [4] 5 6 ... 11