Show Posts
Pages: [1] 2 3 ... 7
1  Using Arduino / Programming Questions / Ethernet Ping Location on: May 25, 2013, 05:00:35 pm
Is the Arduino Ethernet's nature to respond to ping requests a feature of the wiznet chip, or is it in the Ethernet library?
2  Using Arduino / Programming Questions / Re: Ethernet public IP on: May 24, 2013, 06:52:14 pm
Thanks, zoomkat, that's perfect!
3  Using Arduino / Programming Questions / Re: Ethernet public IP on: May 24, 2013, 04:34:11 pm
Why is it important to know the public facing IP address of the router that the Arduino is connected to? As a client, I can't imagine that it should make a difference to what you are requesting from a server. As a server, I can't imagine why the IP address of some node in the packet link is relevant.

Right now there is no point.
I just want the "how to" knowledge in my pocket, it's a challenge, it's fun.
4  Using Arduino / Programming Questions / Re: Ethernet public IP on: May 24, 2013, 04:03:22 pm
Maybe the below would be simpler.

Yes it would! Thanks! I don't know much about HTML... "GET /" doesn't seem to work. What should my request be?

Does your public IP address actually change ?  It is quite common for the IP address to remain the same even when you are not paying for a fixed one.

Not a lot, but I would like to be able to use my Arduino in long term applications and/or multiple networks without requiring re-programming each time there is a change.
5  Using Arduino / Programming Questions / Ethernet public IP on: May 24, 2013, 03:32:36 pm
I would like my Adruino to know my network's public IP, and I would like it to find out dynamically. So far the only way I can think of is to connect to, make a GET request, and sift through the response for the ip.

Does anyone know of a better way to do this?
If not, does anyone know how to sift through the html response and create an IPAddress from String?

This is a lot of text to sift through (I highlighted where my public IP appears):

<html lang="en-US">
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta charset="UTF-8">
        <title>12f10 | Error</title>
        <link rel="stylesheet" media="screen" href="/cdn-cgi/styles/error.css" />
        <ul id="Alerts">
            <li class="alert">
                <img src="/cdn-cgi/images/challenge/alert.gif" alert="Error!" />,
                <h1 class="cferror_title">Direct IP Access Not Allowed</h1>  <!-- Error #1003 -->
<p class="cferror_msg">You've requested an IP address that is part of the <a href="" target="_blank">CloudFlare</a> network. If you are interested in learning more about CloudFlare, please <a href="" target="_blank">visit our website</a>. (Ref. 1003)</p>
                <ul class="cferror_details">
                    <li><p>Timestamp: XXX, XX-XXX-XX XX:XX:XX XXX</p></li>

                    <li><p>Your IP address: XX.XX.XX.XX</p></li>                //This is where the ip is

                    <li><p class="XXX_no_wrap_overflow_hidden">Requested URL: 12f10/0 </p></li>
                    <li><p>Error reference number: 1003</p></li>
                    <li><p>Server ID: FL_12F10</p></li>
                    <li><p>Process ID: PID_1369256816.881-1-4353832</p></li>
                    <li><p>User-Agent: nil</p></li>
                <a class="corner" href="" target="_blank"></a>
                <div class="clear"></div>
        <ul id="Footer">

            <li><span>Your IP: XX.XX.XX.XX</span></li>    //It appears again here

            <li class="last"><a href="">&copy; 2012 CloudFlare, Inc.</a></li>
6  Using Arduino / Programming Questions / Re: Combine multiple char * on: January 07, 2013, 09:47:44 pm
That's a curious thing to want to do. Just out of nosiness, why do you want to do that?

Well actually it's for a cocoa application to unlock a PDF, but I needed some low-level advice in a short amount of time, so I asked here smiley

I don't remember what I ended up doing (It's been a long weekend), but the program did what I needed and I'm done now haha

Thanks for all the help guys!
7  Using Arduino / Programming Questions / Combine multiple char * on: January 05, 2013, 03:19:10 am
Ok. This should not be complicated: I have an array of char pointers and I would like to combine the array into one char pointer. So for kicks, lets say I have this char * array:
char *chars[16] = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p"};
How do I combine these into the equivalent of
char *equivalent = "abcdefghijklmnop";
8  Using Arduino / Programming Questions / Re: Binary value of char * on: January 04, 2013, 10:24:04 pm
marco_c, I tried typecasting, but to no avail.
Coding Badly, that worked! Thanks!
9  Using Arduino / Programming Questions / Binary value of char * on: January 04, 2013, 09:35:35 pm
Does anyone know how to set the binary value of a char pointer? (ikr  smiley-eek smiley-mr-green)
Basically what I would like to do is use an integer to set the binary value of a char* and increment the value of the integer thus changing the char* value progressively. I understand that the application of this may seem totally wacko, but I am in a very unique situation who's explanation would go far beyond satisfying your curiosity and trying my writer's-patience.
10  Using Arduino / Programming Questions / PID Tuning Help on: September 12, 2012, 01:54:30 am
I need help tuning my quadcopter PID. I've been doing weeks of research, YouTubing, and testing. I have been able to get decent results from my work, but I can't pass up the opportunity to ask for help from experienced tuners in order to achieve optimal results. I have no intention of altering the system I'm using; just the PID values. If you're interested in helping me, I can imagine questions are flooding your head right now. I will try to answer as many of them as I can preemptively:

The program I am using is my own (there goes 50% of the readers of this post  smiley-mr-green). The good news is I've seen my quad balance itself on a single axis testing environment as well as out in my back yard. The bad news is this balancing takes too much time, and as a result, the back yard flights don't last too long...  smiley-grin

On to the PID system. For each axis of the quad I have a PID controller that uses the respective gyro sensor rate for input, and the output is determined by a setpoint rate. In order to determine the PID gain values for these gyro-based controllers I used a wireless transmitter to determine the setpoint. After tuning P gain and D gain (I gain being 0), I added new PID controllers to "replace" the transmitter. Each of the new controllers uses the combined efforts of the gyro sensor and an accelerometer with pitch in degrees as input. The setpoint pitch is determined by the transmitter, and the output value is the setpoint of the gyro-based controllers.

In summary, I have four PID controllers; two gyro-based controllers that set the rate of each axis, and two pitch-based controllers that determine the setpoint of the gyro-based controllers. As I said before, I have gotten decent results with this system, and I have no intention of altering it. I only need help tuning the gain values of the four controllers in order to achieve optimal performance.

Is anyone willing to help me?
11  Using Arduino / Programming Questions / Re: BMA180 MSB and LSB on: September 11, 2012, 12:02:56 am
Awesome! Thanks smiley
12  Using Arduino / Programming Questions / BMA180 MSB and LSB on: September 10, 2012, 08:55:09 pm
Can anyone verify that this is correct? The msb register is 8 bits and the lsb is the first 6 bits of another register.
int rawData = ((msb << 8) | lsb) >> 2;

This code is oversimplified for clarity btw.
13  Using Arduino / Programming Questions / Re: BMA180 I2C registers on: September 08, 2012, 10:35:47 pm
I found it. It's the global memory map in the datasheet.
14  Using Arduino / Programming Questions / BMA180 I2C registers on: September 08, 2012, 06:32:44 pm
Can anyone direct me to the BMA180 register addresses for I2C? If you are going to point me to the datasheet please give me a page number, because I've been looking high and low in there and I can't find them (yes I'm new to I2C and reading the chinese of datasheets).
15  Topics / Science and Measurement / Re: Manipulating the behavior of an exponential function (Math gurus needed!) on: August 22, 2012, 03:07:11 pm
Haha yes that was the "plain english" version. "^" is an operator isn't it?
Pages: [1] 2 3 ... 7