Show Posts
Pages: 1 ... 164 165 [166] 167 168 ... 360
2476  Using Arduino / Networking, Protocols, and Devices / Re: TLC5940 and Ethernet Shield using SPI on: March 06, 2013, 11:41:54 am
Is D10 used by the TLC5940? If so you need to move it to another pin. D10 is the slave select for the w5100.
2477  Using Arduino / Networking, Protocols, and Devices / Re: TLC5940 and Ethernet Shield using SPI on: March 06, 2013, 11:37:19 am
How is the TLC5940 connected to the Arduino?
2478  Using Arduino / Installation & Troubleshooting / Re: which avr-gcc on linux on: March 05, 2013, 04:41:13 pm
Why wouldn't the ethernet library compile on later versions of avr-gcc? I had it debugged up to avr-gcc v4.5.1. The latest versions of the IDE (v1.0.1 and later) ethernet libraries now use that change.
http://arduino.cc/forum/index.php/topic,68624.0.html
2479  Using Arduino / Programming Questions / Re: Error sd lib arduino ethernet on: March 05, 2013, 03:15:54 pm
I tried the code with the String variable, and it crashed exactly where yours did. I replaced the String type with a character array, and it did great. It worked so well, I added a delay in the loop because it really writes!
Code:
/*
  SD card datalogger
 
 This example shows how to log data from three analog sensors
 to an SD card using the SD library.
 
 The circuit:
 * analog sensors on analog ins 0, 1, and 2
 * SD card attached to SPI bus as follows:
 ** MOSI - pin 11
 ** MISO - pin 12
 ** CLK - pin 13
 ** CS - pin 4
 
 created  24 Nov 2010
 modified 9 Apr 2012
 by Tom Igoe
 
 This example code is in the public domain.
 
 */

#include <SD.h>

// On the Ethernet Shield, CS is pin 4. Note that even if it's not
// used as the CS pin, the hardware CS pin (10 on most Arduino boards,
// 53 on the Mega) must be left as an output or the SD library
// functions will not work.
const int chipSelect = 4;

void setup()
{
 // Open serial communications and wait for port to open:
  Serial.begin(9600);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  Serial.print("Initializing SD card...");
  // make sure that the default chip select pin is set to
  // output, even if you don't use it:
  pinMode(10, OUTPUT);
  digitalWrite(10, HIGH);
 
  // see if the card is present and can be initialized:
  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or not present");
    // don't do anything more:
    return;
  }
  Serial.println("card initialized.");
}

void loop()
{
  // make a string for assembling the data to log:
  char dataString[32];

  // read three sensors and append to the string:
  int sensor[3];
 
  for (int analogPin = 0; analogPin < 3; analogPin++) {
    sensor[analogPin] = analogRead(analogPin);
  }

  sprintf(dataString,"%d,%d,%d",sensor[0],sensor[1],sensor[2]);
 
  // open the file. note that only one file can be open at a time,
  // so you have to close this one before opening another.
  File dataFile = SD.open("datalog.txt", FILE_WRITE);

  // if the file is available, write to it:
  if (dataFile) {
    dataFile.println(dataString);
    dataFile.close();
    // print to the serial port too:
    Serial.println(dataString);
  } 
  // if the file isn't open, pop up an error:
  else {
    Serial.println("error opening datalog.txt");
  }

  delay(1000);
}
2480  Community / Website and Forum / Re: "Document Expired" Messages When Going Back to Search Results on: March 05, 2013, 09:45:49 am
I vote FIX IT!. I am as tired of reloading that page as modeller. I found out about this on another thread.

2481  Community / Website and Forum / Re: Forum Website Down on: March 05, 2013, 09:10:29 am
Now I understand. I adapt quickly, so I am used to the reload button. That would be a good fix.
2482  Community / Website and Forum / Re: Forum Website Down on: March 05, 2013, 08:58:24 am
I don't understand. My forum search works fine, except when I use the "back" button after selecting one of the search results. I get a "Confirm Form Resubmission", at which point I click "reload". That is right next to my back button.

Is that what you want fixed on your other thread?
2483  Community / Website and Forum / Re: Forum Website Down on: March 05, 2013, 08:48:07 am
Quote
Oh I know how to fix the search problem. It's just that I don't have the permissions to do so.
If that is all, then I give you permission. It IS your web browser and computer, isn't it?
2484  Community / Website and Forum / Re: Forum Website Down on: March 05, 2013, 08:29:21 am
Maybe you need to "varnish" your web browser cache?  smiley

I was locked out of the forum not long ago with a "banned from using this forum" message, and deleting the browser cache and cookies corrected that.
2485  Community / Website and Forum / Re: Forum Website Down on: March 05, 2013, 08:13:10 am
You can search for "Guru Meditation" on the forum to see all the posts about it. Like these:
http://arduino.cc/forum/index.php/topic,136823.0.html
http://arduino.cc/forum/index.php/topic,142837.0.html

If you want a varnish that will last a while, I recommend Captain's Varnish by Z-Spar.  smiley-grin
2486  Community / Website and Forum / Re: Forum Website Down on: March 05, 2013, 07:26:45 am
I got a really weird error message a couple of hours ago. I should have recorded it.
Was it a 503 error with a "Guru Meditation" and a message about "revarnish server"?
2487  Using Arduino / Programming Questions / Re: Ethernet Dhcp on: March 05, 2013, 07:01:33 am
Quote
...and i have no cable connection, it takes a while before he notice that there is no connection to the router/server. how can i reduce that time?
Plug the cable in
or
use a static ip
or
modify the ethernet dhcp library
or
get a W5200 shield
otherwise
it takes a couple minutes to determine there is no dhcp server available.
2488  Using Arduino / Programming Questions / Re: Ethernet Dhcp on: March 04, 2013, 04:32:51 pm
Ethernet.maintain() does nothing but return until the lease is half expired. If the dhcp lease was 2 days, then for the first 24 hours, Ethernet.maintain() returns "no action taken".
2489  Using Arduino / Programming Questions / Re: Ethernet Dhcp on: March 04, 2013, 01:19:55 pm
The w5100 has a tcp/udp stack built-in, but does not have the sensor to detect the the physical state of the device. If the physical device becomes disconnected, the w5100 does not have a way to detect if the cable is disconnected.

You can file a complaint with Wiznet, but I almost guarantee they will say "get a W5200".

2490  Using Arduino / Networking, Protocols, and Devices / Re: Sudden unreliability with my network-enabled Arduino project on: March 04, 2013, 12:46:01 pm
Skinware (humans) is unpredictable. The maid comes in to vacuum, and needs power. The plug available (controlled by a wall switch) was off, so the maid moved the router's cord to the switched plug so she could vacuum.  smiley-sad
Pages: 1 ... 164 165 [166] 167 168 ... 360