Show Posts
Pages: [1] 2 3 ... 3388
1  Using Arduino / Programming Questions / Re: Problema programmazione antifurto. on: Today at 12:19:07 pm
Can we get you a map? The Italian forum is not the English forum.
2  Using Arduino / Programming Questions / Re: Arduino WiFi Sheild- Unable to connect on: Today at 12:16:57 pm
Your thread title implies that you are not able to connect to any server, once the shield connects to the network.

Your code, and output, state that you are unable to send any data to xively. Why do you assume that this means that the WiFi shield is at fault, or that the WiFi library is at fault?

Code:
  int sensorValue = analogRead(sensorPin);
  datastreams[0].setFloat(sensorValue);
Is it just me, or does anyone else think this looks stupid? Why are you using a float data stream to store integers?

Have you tried debugging the xivelyclient instance? If not, why not?
3  Using Arduino / Programming Questions / Re: How to assign a number (read from sd card) to a BigNumber variable! on: Today at 12:06:22 pm
Code:
          if (c == '\n') {
              temp_arr[i] = NULL;
              i=0;
          }
             
          temp_arr[i] = c;   
If you find a carriage return, append a NULL to the array. Then, set the index to 0. Then store the carriage return on position 0. Why?

Seems to me that there should be an else in there somewhere.
4  Using Arduino / Programming Questions / Re: ‘__attribute__((progmem))’ Error when compiling code for arduino uno on: Today at 12:01:14 pm
What version of the IDE are you using?
Which Arduino are you compiling for?
What operating system?
5  Using Arduino / Programming Questions / Re: SD Storage problem with UNO+wifi shield on: Today at 11:54:31 am
Quote
If you have multiple SPI devices you must enable/disable them alternately with their CS (=Chip Select) pin.
If you have ANY SPI devices (on a UNO or other 328-based Arduino) you need to set pin 10 as OUTPUT, too.
6  Using Arduino / Networking, Protocols, and Devices / Re: SMS message truncating at 'W' when sending SMS through SIM900 GSM shield!! on: Today at 10:16:29 am
Quote
I don't recall any AT commands that use a lower case w, especially as a message terminator.
I've seen this problem reported before though, with one specific GSM shield. I don't know that there ever was a resolution, other than to not use w in the message.
7  Using Arduino / Networking, Protocols, and Devices / Re: Anyone can explain how arduino get integrated with server. on: Today at 10:13:24 am
Quote
but i dont know how to sent data from arduino to database server.
The Arduino as EthernetClient example illustrates that.

Sending data to a server involves making a GET request (or a POST request, but the GET is conceptually easier).

After the name of the script to execute on the server, put a ? followed by name=value, where name is a name that the script expects, and value is the value you want to send. It you want to send multiple values, use & and name=value for the second and subsequent data.

Some examples:
GET /someScript..php HTTP/1.1      <--- Get some web page from the server
GET /someScript.php?temp=37 HTTP/1.1   <--- Have it store the temperature
GET /someScript.php?temp=37&humid=98 HTTP/1.1    <--- Damn, it's hot and muggy
8  Using Arduino / Interfacing w/ Software on the Computer / Re: How do i stop video from looping and have it toggle off when it's done playing? on: Today at 09:49:18 am
Quote
and when touched, a video clip starts playing.
The Arduino can't play a video, so it's time to stop pretending that it can.

Quote
Right now we're jsut working with the code for the videos in maxMSP
which doesn't run on the Arduino.

Quote
and then we'll use it in arduino2max.
So, you don't have a problem yet, because you aren't doing anything with the Arduino yet.
9  Using Arduino / Programming Questions / Re: PID,two relays output on: Today at 09:30:11 am
What's the point of using PID, if the only thing you can do to affect the process is turn a relay on or off?

It might make sense if the output defined how long the relay should be open.
10  Using Arduino / Programming Questions / Re: ASCII input to floating point value on: Today at 08:35:15 am
Quote
I wonder what the readers here would advise a newbie when it comes to writing the code: 1) keep the code direct or 2) bury it in a function?
Do you need to do it once? Or many places in the code? There is no one satisfactory answer. If it needs to be done once, directly in the function (and that includes loop()) where it is needed. If it is a useful function (would be called from many places), make it a function.
11  Using Arduino / Programming Questions / Re: Oscillating the direction of a motor based upon state of two switches on: Today at 08:31:49 am
Quote
I basically have two push button switches
On pins named button1Pin, button2Pin, and button3Pin?
12  Using Arduino / Programming Questions / Re: compile error: invalid use of non-static data member on: Today at 08:28:46 am
Quote
The life of Row objects is until end of program, so ~Row destructor is not needed.
It's always a good idea to provide one, anyway.
13  Using Arduino / Programming Questions / Re: entering new data to int usnig web server on: Today at 06:31:47 am
Quote
this is the code I have found online - I didn't wrote it , I don't know how it works
You are going to get exactly nowhere until you do understand it.

Quote
all I have want is to not to write "on\off" to light up the led in pin4 , but to enter a number
Feel free.

Quote
and save it as int
How are you going to determine what part of the client request to convert to an int, if you have no idea what the client request looks like?

Quote
so tell me which part I need to change ?
I charge for that. $100 an hour.

Quote
which part I need to understand more
All the ones you don't understand now. Start with printing the client request.
14  Using Arduino / Programming Questions / Re: trueRMS calculation for acoustic/audio signal on: Today at 06:27:07 am
Quote
And concerning white spaces, I just want the reader to understand clearly.
Then use appropriate amounts.

As for defining the number of samples and/or time incorrectly, I can't help you with that. What I saw is that you are using the same name for two different variables. Either there should be ONE totalTime variable, or the two variables need to have different names.
15  Using Arduino / Programming Questions / Re: Problem with virtualwire buffer on: Today at 06:20:23 am
Code:
     Serial.print("buf contains: [");
      Serial.print((unsigned int)buf);
The address of buf, that you are printing, and the data in the array are completely separate things.

Quote
The IDE says i am not allowed to cast buf into byte " error: cast from 'uint8_t*' to 'byte' loses precision"
An address is a pointer. You are casting the uint8_t pointer to an unsigned int.
Pages: [1] 2 3 ... 3388