Show Posts
Pages: 1 ... 164 165 [166] 167 168 ... 360
2476  Using Arduino / Networking, Protocols, and Devices / Re: Serial.print issues on: March 07, 2013, 12:40:29 pm
Is that an Uno? If so you are out of SRAM.
50 * 50 * 2 = 5000 bytes.
An Uno has 2000 available.
2477  Using Arduino / Networking, Protocols, and Devices / Re: Webduino HelloWorld - Random garbage in browser on: March 07, 2013, 07:53:31 am
Have you tried any other examples? I have a web server sketch in the playground.
http://playground.arduino.cc/Code/WebServerST

zoomkat has some good server examples on the forum also. Have you tried those?

edit: I forgot to mention that a SD card in the slot on the shield will cause garbage on the SPI if not disabled or initialized. If you have one in the slot, remove it for the tests.
2478  Using Arduino / Networking, Protocols, and Devices / Re: TLC5940 and Ethernet Shield using SPI on: March 06, 2013, 12:33:28 pm
Not out of the question. I don't do it, but I have seen posts on the forum where it has been done.

If there is no mention of the BLANK pin, you might try disconnecting that connection from the Arduino. Don't connect the TLC5940 to D10.

Do you know which pin is the SPI slave select for the TLC5940? You will need to know that to initialize the SPI devices.

2479  Using Arduino / Networking, Protocols, and Devices / Re: TLC5940 and Ethernet Shield using SPI on: March 06, 2013, 12:23:26 pm
The library may not change that pin. I am not familiar with the TLC5940, but I am familiar with the ethernet shield, and what will interfere with it. D10 should not be used by any other device. Don't use D4 either, unless you never plan on using a SD card in the shield slot. That is the slave select for the SD card.
2480  Using Arduino / Networking, Protocols, and Devices / Re: Connecting Arduino Wifi Shield with laptop hotspot on: March 06, 2013, 12:04:06 pm
That is not a hotspot. That is an ad-hoc network. Many devices have problems with those, if you bothered to read the comments at the bottom. Wii devices being one.

edit: Your big challenge with an ad-hoc network is the lack of a dhcp server. AFAIK, there is no way to set a static ip on a Wifi shield. And ad-hoc networks normally do not perform the required masquerade and routing to the ethernet port.
2481  Using Arduino / Networking, Protocols, and Devices / Re: TLC5940 and Ethernet Shield using SPI on: March 06, 2013, 11:49:15 am
Quote
if i move it over to another pin for the tlc5940, wont i have to edit the library or something like that to accommodate for a change like that?
Yes.
2482  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.
2483  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?
2484  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
2485  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);
}
2486  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.

2487  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.
2488  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?
2489  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?
2490  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.
Pages: 1 ... 164 165 [166] 167 168 ... 360