Show Posts
Pages: 1 ... 2318 2319 [2320] 2321 2322 ... 3271
34786  Using Arduino / Networking, Protocols, and Devices / Re: Twitter library Error 403 same tweet I need a RANDOM char type variable on: September 27, 2011, 02:00:11 pm
Quote
OK, after a serious redesign
Hilarious.
34787  Using Arduino / Networking, Protocols, and Devices / Re: best GPRS/GSM Shield on: September 27, 2011, 01:58:14 pm
Quote
and will do the job
What is the job? Windshield scraper and cell modem might both be potential uses.
34788  Using Arduino / Programming Questions / Re: telnet server problems on: September 27, 2011, 01:53:18 pm
Quote
does the client.read(); function read the char in as it is typed
The client.read() function reads the next character in the buffer, when it is called, if there is one. Characters get added to the buffer at the sending application's discretion. I don't know if your sender is sending characters as they are entered (unlikely) or at some specific event (enter, a button press, etc.) or when an internal buffer gets full.

Quote
Also, according to http://arduino.cc/en/Tutorial/StringAdditionOperator, the String needs to be set to something before adding can be done.
Not entirely correct. When the String object is created, it is set to something (a blank string, if nothing is defined).

Quote
Well according to the code, each character read in should be printed to the serial monitor right then
"Right then" being when it was read, which is independent of when it was typed. The question was really a hint that Serial.print() by itself tells you very little.
Code:
Serial.print("client.read() returned a [");
Serial.print(c);
Serial.println("]");
takes a little longer, but conveys a lot more information.

Code:
Serial.print("The complete string is: [");
Serial.print(readString);
Serial.println("]");

With this, you'd know exactly where the garbage was coming from.

Quote
I commented out the "readString = "";" line and it isn't set anywhere else.
Not the best idea ever...
34789  Using Arduino / Networking, Protocols, and Devices / Re: xbee program downloading problem on: September 27, 2011, 11:59:57 am
There is a switch on that board that selects the connection between the XBee and either pins 0 and 1 or 2 and 3. When the switch is in the UART position, the XBee interferes with the ability to upload sketches. Simply move the switch to the other position to upload, and back to run.
34790  Using Arduino / Project Guidance / Re: Accessing routines within one library from another on: September 27, 2011, 11:49:56 am
Quote
So the question is how do i access the public routines from the LiquidCrystal library?
There are not public routines in the LiquidCrystal library. There are public methods. The distinction is not trivial.

A method is a function that only an instance of the class can invoke. If you need to invoke a method that is defined in the LiquidCrystal library, you need to have an instance of the LiquidCrystal class. You then use that instance to invoke its methods.
34791  Using Arduino / Networking, Protocols, and Devices / Re: Twitter library Error 403 same tweet I need a RANDOM char type variable on: September 27, 2011, 11:45:48 am
Quote
but the complete message need to be inside or contained inside the variable " char msg [] "
As opposed to being in the variable tweet? Why?

If that is a real requirement, copy the message there.
34792  Using Arduino / Networking, Protocols, and Devices / Re: xbee program downloading problem on: September 27, 2011, 11:43:20 am
Quote
But if I take the xbee shield and xbee off of the arduino board, I can upload the code to the arduino board without any problem.
Does anyone know what might be causing the problem?
I think you know the answer to this question. The XBee shield is causing the problem.

Knowing WHICH XBee shield you are using is necessary to help you define a solution.
34793  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial wound't send last character ? on: September 27, 2011, 11:40:43 am
You are checking, on the Arduino, that there are at least two characters to read. Then, you only read one. Why?

Quote
I send something but I wound be displayed until I send something after that and that will be only displayed when I send something after that and so on...
Well, now we know why.
34794  Using Arduino / Programming Questions / Re: telnet server problems on: September 27, 2011, 11:34:58 am
Is that stuff being output by:
Code:
Serial.print(c);
or:
Code:
Serial.println(readString);
Or, is it output by a combination of them?

Quote
Does the connection need to be closed (client.close() in order to complete a client.read()?
No.
34795  Using Arduino / Programming Questions / Re: telnet server problems on: September 27, 2011, 08:34:12 am
Quote
I get this as an output in the serial monitor when I telnet in and type something. It just prints out the same weird stuff each time I hit enter.
With what code on the Arduino? At what baud rate in the Serial Monitor?

The y with the 2 dots is what you get when you print a -1, which is what the various read() functions return when there is nothing to read.
34796  Using Arduino / Project Guidance / Re: Blinking LEDS with motion sensor on: September 27, 2011, 08:17:24 am
Quote
i can't get this code to work with my gp2d12 sensor
So, where ARE your setup() and loop() functions?
34797  Using Arduino / Project Guidance / Re: XBee chip anitinna on: September 27, 2011, 06:57:52 am
A chip antenna is not very tall, is it? No, it isn't. So, it will not be as good, in terms of ability to send/receive data, as a longer (wire) antenna.

But, just to make it real simple. The wire version is better!
34798  Using Arduino / Networking, Protocols, and Devices / Re: Read Xbee Address on: September 27, 2011, 06:52:44 am
Quote
Hope this isn't too snipped up.
It's fine. Thanks. I'll have to have another look at the XBee library. When I have time...
34799  Topics / Robotics / Re: Android phone following robot? on: September 27, 2011, 06:48:22 am
Quote
I have yet not found a arduino motor controller that would be able to control app. 2x 80W motors so any help from here would be also appreciated.
80W at 1 volt and 80W at 1000 volts are quite different amounts of current. Help narrow that down a bit, OK?

Quote
First I want to know if it is possible making robot to follow phone
Not easily. The only indication that the robot might have is the signal strength from the phone. The signal strength is not necessarily linear, and is very small, anyway. Detecting the actual direction to the phone would require that the robot be able to wave a directional antenna around.

There really does not appear to be a cheap, easy to implement, "Hey, follow me" solution. At least not that the Arduino can implement.

Now, if you were to wire two IR emitters into the shoulders of your jacket, the robot could use two receivers and determine where you were with respect to itself.

The nice thing about this approach is that when you turn your back on the robot, it could stop, instead of running you over.

Although IR might not work too well on a sunny day, and, who plays golf in the rain. Don't bother answering that. I know that lots of crazy people do.

Quote
Similiar producs have been made (shadow caddy) but the prices are way too much for my budget.
It would be worth investigating how they work.
34800  Community / Website and Forum / Re: Enhancement for "Getting Started w/ Arduino on Windows" on: September 27, 2011, 06:25:40 am
Quote
What is your hardware environment, OS, Java version?
I thought the first 2 were clear, but, I guess not. Win7, 64 bit. Java: 1.6.0_14
Pages: 1 ... 2318 2319 [2320] 2321 2322 ... 3271