Show Posts
Pages: 1 2 3 [4] 5 6 ... 21
46  Using Arduino / Programming Questions / Re: HTTP Client, GET Request on: June 12, 2014, 09:19:37 pm
Honestly, no clue what you just said.

A server is a server. It has an ip. Localhost is used only  if you're on the server itself, not the same network.
47  Using Arduino / Programming Questions / Re: HTTP Client, GET Request on: June 12, 2014, 03:09:40 pm
You need an IP of you Java server plugged into the arduino.
48  Using Arduino / Programming Questions / Re: Arduino to arduino i2c on: June 10, 2014, 12:39:36 pm

The slave device needs an address for the master to communicate with it.

and to write, you need the standard
Code:
 Wire.beginTransmission(device_address);
  Wire.write(data);
  Wire.endTransmission();
49  Using Arduino / Programming Questions / Re: if and else statements not working with boolean on: June 09, 2014, 06:14:07 pm
You can't use for loops. It executes one at a time.
 Try incrementing and decrementing without for loops. Put everything inside the void loop() function.

50  Using Arduino / Programming Questions / Re: Arduino UNO and arduino mega boards keep resetting on: June 09, 2014, 07:23:02 am
If the boards are resetting from the code, it's usually a memory issue.
Start debugging by taking away libraries. Not sure why you need the sleep library but I don't think that's the issue.
51  Using Arduino / Programming Questions / Re: My LED doesnt turn off on: June 08, 2014, 02:40:31 pm
There is no code to turn off the led, only to turn on. I'd look at that.
52  Using Arduino / Programming Questions / Re: Program to read code from controller on: June 06, 2014, 08:05:51 pm
The code had been compiled to 1's and 0's. Good luck reading that.
53  Using Arduino / Sensors / Re: Visual size sensor? on: June 05, 2014, 12:54:27 pm
The herons here in the States are actually pretty



we have Egrets too

54  Using Arduino / Programming Questions / Re: How to make a login form using HTML that connects to the next page on: June 05, 2014, 08:30:22 am
Interesting post!

Thanks.

I want to clarify what wasn't in the video. The cookie's life span you create is a temporary one, as long as the window is open. You can specify an expiration date. Also the Browser automatically sends the cookie info back to the sever every time you make a call (as long it's the same domain of course).

Oh, and this is a one user session only. If you want multiple users, you'd have to create a session array on your server and cycle through it to see who is who.
55  Using Arduino / Sensors / Re: Visual size sensor? on: June 04, 2014, 07:30:28 pm
The trick now is to weather proof this. Do you know if ultrasounds can pass through plastic without giving false readings?
56  Using Arduino / Sensors / Re: Visual size sensor? on: June 04, 2014, 06:12:02 pm
Ah thanks. That sonar solution definitely should work.
57  Using Arduino / Programming Questions / Re: How to make a login form using HTML that connects to the next page on: June 04, 2014, 05:39:29 pm
I was working on my own login and found a solution.
The arduino can write a cookie to the browser to create a session id.

On logged in, write in the header
Code:
       arduinoSession = millis();
        client.println("HTTP/1.1 200 OK");
        client.println("Content-Type: text/html");
        client.print("Set-cookie: ARDUINOSESSIONID=");
        client.print(arduinoSession);
        client.println("; HttpOnly");
        client.println("Connection: keep-alive");
        client.println();

I'm using millis() to create a cheap unique id.
A little video explaining it
58  Using Arduino / Sensors / Re: Visual size sensor? on: June 04, 2014, 05:15:19 pm
I would not bet on visual sensor. Personally, i would use sound sensor and I would use sound pattern recognition.

This assumes every animal that comes by to make an announcement by making a call. They don't.

Thanks for the creative suggestions though!

59  Using Arduino / Sensors / Re: Visual size sensor? on: June 04, 2014, 05:14:00 pm
hmm, I can only see sonar/ultrasonic sensors that outputs distance. It doesn't distinguish object size.

60  Using Arduino / Programming Questions / Re: how to parse a string? on: June 04, 2014, 07:58:20 am
maybe because these aren't strings

{ vteste, vteste2, vteste3, vteste4 };

convert them to strings first.
use 'iota' for ints

I'm not sure about float to string function.
Pages: 1 2 3 [4] 5 6 ... 21