Show Posts
Pages: 1 ... 7 8 [9] 10
121  Forum 2005-2010 (read only) / Syntax & Programs / simple boolean question on: January 23, 2011, 03:25:22 pm
Hello,
I'm sure this is simple...but I'm so bad at math and logic and I can't figure it out and I can't seem to find the problem anywhere else in the forums.

I just want a potentiometer to make a few bleeps on each turn and then stop. So for example, if the potentiometer is between 0-400, I want it to make three tones and stop. If it's any other number, I don't want it to do anything.
Very, very simple, no? I just can't figure it out. What am I don't wrong?

Here is my code:

Code:
boolean no_sound;

void setup() {
  no_sound=true;
}

void loop() {
  int pot = analogRead(0);
  
  if ((pot > 0) && (pot < 400) && (no_sound=true)) {
    tone (28, 1999, 400);
    delay(50);
    tone (28, 500, 800);
    delay(50);
    tone (28, 3000, 200);
    no_sound=false;
  }else {
    no_sound=true;
  }
}
122  Forum 2005-2010 (read only) / Interfacing / Re: simple web server problem on: January 09, 2011, 01:06:29 pm
Switched the duemilanova to a mega...working so far! Just getting to be a more expensive project! Ugh! Thanks for all the help!
123  Forum 2005-2010 (read only) / Interfacing / Re: simple web server problem on: January 09, 2011, 12:17:52 pm
Shoot that worked! Thanks! But it's really crucial for this program that I use the LCD! Any ideas what I can do? With all the LCD stuff commented out it works fine. I've never run into this problem. So am I using too many libraries or something? The strange thing is, is that this code worked fine in the past.
124  Forum 2005-2010 (read only) / Interfacing / Re: simple web server problem on: January 09, 2011, 11:55:20 am
Hi and thanks for your help!

When I type in Serial.print(var);, the var does not print into the serial monitor. The SD card and all its contents do print out and when I try to open an htm file off the sdcard the serial monitor refreshes but the page doesn't open in my browser....it just hangs. (A simple webserver does work...i am connected to the right network and everything)

I am having both the problems you mentioned. I do not get a serial output of the variable 'var' in my monitor and I am unable to open an .htm file. Something appears to be stuck somewhere.

Here is my output in the serial monitor. I should be getting a 0 a 1 or 2 somewhere, right? I put Serial.print(var); right before the conditionals that do the html redirects...(if I put it right after my 'pot' conditionals I will get one number that doesn't repeat and once again a hang...also the Serial monitor doesn't refresh when I try to load a page)

Free RAM: 151
Volume is FAT16

Files found in root:
TWO.HTM       2011-01-07 15:02:02 86
CIR1.HTM      2011-01-07 14:57:18 82
CIR2.HTM      2011-01-07 14:57:32 82
CIR3.HTM      2011-01-07 14:57:46 84
ONE.HTM       2011-01-07 15:01:46 77
SQ1.HTM       2011-01-07 14:58:22 81
SQ2.HTM       2011-01-07 14:58:36 81
SQ3.HTM       2011-01-07 14:58:50 83
THREE.HTM     2011-01-07 15:02:16 86
TR1.HTM       2011-01-07 14:59:02 83
TR2.HTM       2011-01-07 14:59:16 83
TR3.HTM       2011-01-07 14:59:30 85

Files found in all dirs:
TWO.HTM
CIR1.HTM
CIR2.HTM
CIR3.HTM
ONE.HTM
SQ1.HTM
SQ2.HTM
SQ3.HTM
THREE.HTM
TR1.HTM
TR2.HTM
TR3.HTM

Done
125  Forum 2005-2010 (read only) / Interfacing / simple web server problem on: January 09, 2011, 10:42:04 am
i'm trying to run a simple webserver program on a duemilanova with an ethernet shield with a built in sdcard reader. i also want the program to do html redirects depending on where i have a potentiometer pointed. i.e., if the pot is between 0-400, and the user access one.htm, he will be redirected to square.htm. if the pot is between 401-800 and the user access one.htm, he will be redirected to triangle.htm.
simple enough, right?
however, when i put the if conditionals into the webserver program the .html pages don't load.
I will paste the code down below. this little problem has been consuming my entire weekend!
Code:
       #include <SPI.h>
        #include <SdFat.h>
            #include <SdFatUtil.h>
            #include <Ethernet.h>
        #include <LiquidCrystal.h>
            byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
            byte ip[] = { 192, 168, 1, 177 };
            char rootFileName[] = "index.htm";
            Server server(80);
        LiquidCrystal lcd(7, 6, 5, 8, 3, 2);
            /************ SDCARD STUFF ************/
            Sd2Card card;
            SdVolume volume;
            SdFile root;
            SdFile file;
            // store error strings in flash to save RAM
            #define error(s) error_P(PSTR(s))

            void error_P(const char* str) {
              PgmPrint("error: ");
              SerialPrintln_P(str);
              if (card.errorCode()) {
                PgmPrint("SD error: ");
                Serial.print(card.errorCode(), HEX);
                Serial.print(',');
                Serial.println(card.errorData(), HEX);
              }
              while(1);
            }

            void setup() {
              Serial.begin(9600);
        lcd.begin(16, 2);
        lcd.print("booting up...");
              PgmPrint("Free RAM: ");
              Serial.println(FreeRam());
            
              // initialize the SD card at SPI_HALF_SPEED to avoid bus errors with
              // breadboards.  use SPI_FULL_SPEED for better performance.
              pinMode(10, OUTPUT);                       // set the SS pin as an output (necessary!)
              digitalWrite(10, HIGH);                    // but turn off the W5100 chip!

              if (!card.init(SPI_HALF_SPEED, 4)) error("card.init failed!");
            
              // initialize a FAT volume
              if (!volume.init(&card)) error("vol.init failed!");

              PgmPrint("Volume is FAT");
              Serial.println(volume.fatType(),DEC);
              Serial.println();
            
              if (!root.openRoot(&volume)) error("openRoot failed");

              // list file in root with date and size
              PgmPrintln("Files found in root:");
              root.ls(LS_DATE | LS_SIZE);
              Serial.println();
            
              // Recursive list of all directories
              PgmPrintln("Files found in all dirs:");
              root.ls(LS_R);
            
              Serial.println();
              PgmPrintln("Done");
            
              // Debugging complete, we start the server!
              Ethernet.begin(mac, ip);
              server.begin();
            }

            // How big our line buffer should be. 100 is plenty!
            #define BUFSIZ 100

            void loop()
            {

/////if pot is in x number range print to LCD and assign a different value to var/////////
      int pot = analogRead(0);
           int var;
        if ((pot > 0)&&(pot < 400)) {
           lcd.clear();
           lcd.print("FIRST CHAMBER");
           delay(40);
         var=0;
          
        }    

          if ((pot > 401)&&(pot < 800)) {
            lcd.clear();
            lcd.print("SECOND CHAMBER");
            delay(40);
           var=1;
          }
        
           if ((pot > 801)&&(pot < 1024)) {
             lcd.clear();
             lcd.print("THIRD CHAMBER");
             delay(40);
    var=2;
           }
          
          
/////////////webserver code i got from the adafruit forums/
              char clientline[BUFSIZ];
              char *filename;
              int index = 0;
              int image = 0;

              Client client = server.available();
            
              if (client) {                              
                // an http request ends with a blank line
                boolean current_line_is_blank = true;
              
                // reset the input buffer
                index = 0;
              
                while (client.connected()) {
                  if (client.available()) {
                    char c = client.read();
                  
                    // If it isn't a new line, add the character to the buffer
                    if (c != '\n' && c != '\r') {
                      clientline[index] = c;
                      index++;
                      // are we too big for the buffer? start tossing out data
                      if (index >= BUFSIZ)
                        index = BUFSIZ -1;
                    
                      // continue to read more data!
                      continue;
                    }
                  
                    // got a \n or \r new line, which means the string is done
                    clientline[index] = 0;
                    filename = 0;
                  
                    // Print it out for debugging
                    Serial.println(clientline);
                  
                    // Look for substring such as a request to get the root file
                    if (strstr(clientline, "GET / ") != 0) {
                      filename = rootFileName;
                    }
                    if (strstr(clientline, "GET /") != 0) {
                      // this time no space after the /, so a sub-file
                    
                      if (!filename) filename = clientline + 5; // look after the "GET /" (5 chars)
                      // a little trick, look for the " HTTP/1.1" string and
                      // turn the first character of the substring into a 0 to clear it out.
                      (strstr(clientline, " HTTP"))[0] = 0;
                    
                      // print the file we want
                      Serial.println(filename);

                      if (! file.open(&root, filename, O_READ)) {
                        client.println("HTTP/1.1 404 Not Found");
                        client.println("Content-Type: text/html");
                        client.println();
                        client.println("<h2>File Not Found!</h2>");
                        break;
                      }
                                                      
                      Serial.println("Opened!");
                    
                      client.println("HTTP/1.1 200 OK");
                      if (strstr(filename, ".htm") != 0)
                         client.println("Content-Type: text/html");
                      else if (strstr(filename, ".jpg") != 0)
                         client.println("Content-Type: image/jpeg");
                     else if (strstr(filename, ".gif") != 0)
                         client.println("Content-Type: image/gif");
                     else
                         client.println("Content-Type: text");

                      client.println();
                        
  
                      int16_t c;
                      while ((c = file.read()) >= 0) {
                          // uncomment the serial to debug (slow!)
                          //Serial.print((char)c);
                          client.print((char)c);
                      }
                      file.close();
                    } else {
                      // everything else is a 404
                      client.println("HTTP/1.1 404 Not Found");
                      client.println("Content-Type: text/html");
                      client.println();
                      client.println("<h2>File Not Found!</h2>");
                    }
              
//////int conditionals for html redirect...THIS DOESN'T WORK/////////                    
 if ((strstr(filename, "one.htm") !=0)&&(var==0)){  
      client.println("<head>");
      client.println("<meta HTTP-EQUIV='REFRESH' content='0; url=http://192.168.1.177/sq1.htm'>");
      client.println("</head>");

      }
      
 if ((strstr(filename, "one.htm") !=0)&&(var==1)){  
      client.println("<head>");
      client.println("<meta HTTP-EQUIV='REFRESH' content='0; url=http://192.168.1.177/tr1.htm'>");
      client.println("</head>");

  }
if ((strstr(filename, "one.htm") !=0)&&(var==2)){  
      client.println("<head>");
      client.println("<meta HTTP-EQUIV='REFRESH' content='0; url=http://192.168.1.177/cir1.htm'>");
      client.println("</head>");

      }
      
if ((strstr(filename, "two.htm") !=0)&&(var==0)){  
      client.println("<head>");
      client.println("<meta HTTP-EQUIV='REFRESH' content='0; url=http://192.168.1.177/sq2.htm'>");
      client.println("</head>");

      }      
///etc...had to delecte other conditionals for post size///////////////////////////

           break;
                  }
                }
                // give the web browser time to receive the data
                delay(1);
              
                client.stop();
              }
            
              
            
            }
   
126  Forum 2005-2010 (read only) / Interfacing / Problem with ethernet shield and LCD screen on: January 07, 2011, 12:44:44 pm
Hello,
I'm having a very strange problem using my ethernet shield, an lcd and a potentiometer. Any help would be soooo appreciated!!!
I want to be able to use the ethernet shield and at the same time use the potentiometer to change text on the lcd screen (sending html redirects when certain .htm files are accessed on the sdcard). I swear that I had this working no problem for awhile but when I went back into the program to make some changes (and later removing the changes) it's no longer working. The lcd screen only now refreshes with new text when a file is accessed on the sdcard. Why would that be? i am using the code for a webserver i found in the adafruit forums here...i will paste it below. Right now I'm just trying to get this very simple code to work in the "if (client.available())" statement so that I can do the html redirects with client.println. (right now none of this redirect stuff is in the code...just trying to get the text to work first)
Here is the simple code that isn't working in the webserver (but works on it's own):
Code:
   
int pot = analogRead(0);
    
 if ((pot > 0)&&(pot < 400)) {
   lcd.clear();
   lcd.print("FIRST CHAMBER");
    
 }    

  if ((pot > 401)&&(pot < 800)) {
    lcd.clear();
    lcd.print("SECOND CHAMBER");
  }
  
   if ((pot > 801)&&(pot < 1024)) {
     lcd.clear();
     lcd.print("THIRD CHAMBER");
   }
            

and here is the webserver code i found in the adafruit forums. You can see below where I used to have the if statements...i've tried placing them all over to no avail:


Code:
#include <SPI.h>

    /*
    * Web Server
    *
    * A simple web server that shows the value of the analog input pins.
    */

    #include <SdFat.h>
    #include <SdFatUtil.h>
    #include <Ethernet.h>
#include <LiquidCrystal.h>
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
    byte ip[] = { 192, 168, 1, 177 };
    char rootFileName[] = "index.htm";
    Server server(80);
LiquidCrystal lcd(7, 6, 5, 8, 3, 2);
    /************ SDCARD STUFF ************/
    Sd2Card card;
    SdVolume volume;
    SdFile root;
    SdFile file;

    // store error strings in flash to save RAM
    #define error(s) error_P(PSTR(s))

    void error_P(const char* str) {
      PgmPrint("error: ");
      SerialPrintln_P(str);
      if (card.errorCode()) {
        PgmPrint("SD error: ");
        Serial.print(card.errorCode(), HEX);
        Serial.print(',');
        Serial.println(card.errorData(), HEX);
      }
      while(1);
    }

    void setup() {
      Serial.begin(9600);
 lcd.begin(16, 2);
 lcd.print("booting up...");
      PgmPrint("Free RAM: ");
      Serial.println(FreeRam());
    
      // initialize the SD card at SPI_HALF_SPEED to avoid bus errors with
      // breadboards.  use SPI_FULL_SPEED for better performance.
      pinMode(10, OUTPUT);                       // set the SS pin as an output (necessary!)
      digitalWrite(10, HIGH);                    // but turn off the W5100 chip!

      if (!card.init(SPI_HALF_SPEED, 4)) error("card.init failed!");
    
      // initialize a FAT volume
      if (!volume.init(&card)) error("vol.init failed!");

      PgmPrint("Volume is FAT");
      Serial.println(volume.fatType(),DEC);
      Serial.println();
    
      if (!root.openRoot(&volume)) error("openRoot failed");

      // list file in root with date and size
      PgmPrintln("Files found in root:");
      root.ls(LS_DATE | LS_SIZE);
      Serial.println();
    
      // Recursive list of all directories
      PgmPrintln("Files found in all dirs:");
      root.ls(LS_R);
    
      Serial.println();
      PgmPrintln("Done");
    
      // Debugging complete, we start the server!
      Ethernet.begin(mac, ip);
      server.begin();
    }

    // How big our line buffer should be. 100 is plenty!
    #define BUFSIZ 100

    void loop()
    {
      char clientline[BUFSIZ];
      char *filename;
      int index = 0;
      int image = 0;
 
      Client client = server.available();
      
      if (client) {                                
        // an http request ends with a blank line
        boolean current_line_is_blank = true;
      
        // reset the input buffer
        index = 0;
      
        while (client.connected()) {
          if (client.available()) {
            char c = client.read();
          
            // If it isn't a new line, add the character to the buffer
            if (c != '\n' && c != '\r') {
              clientline[index] = c;
              index++;
              // are we too big for the buffer? start tossing out data
              if (index >= BUFSIZ)
                index = BUFSIZ -1;
            
              // continue to read more data!
              continue;
            }
          
            // got a \n or \r new line, which means the string is done
            clientline[index] = 0;
            filename = 0;
          
            // Print it out for debugging
            Serial.println(clientline);
          
            // Look for substring such as a request to get the root file
            if (strstr(clientline, "GET / ") != 0) {
              filename = rootFileName;
            }
            if (strstr(clientline, "GET /") != 0) {
              // this time no space after the /, so a sub-file
            
              if (!filename) filename = clientline + 5; // look after the "GET /" (5 chars)
              // a little trick, look for the " HTTP/1.1" string and
              // turn the first character of the substring into a 0 to clear it out.
              (strstr(clientline, " HTTP"))[0] = 0;
            
              // print the file we want
              Serial.println(filename);

              if (! file.open(&root, filename, O_READ)) {
                client.println("HTTP/1.1 404 Not Found");
                client.println("Content-Type: text/html");
                client.println();
                client.println("<h2>File Not Found!</h2>");
                break;
              }
                                              
              Serial.println("Opened!");
            
              client.println("HTTP/1.1 200 OK");
              if (strstr(filename, ".htm") != 0)
                 client.println("Content-Type: text/html");
              else if (strstr(filename, ".jpg") != 0)
                 client.println("Content-Type: image/jpeg");
             else if (strstr(filename, ".gif") != 0)
                 client.println("Content-Type: image/gif");
             else
                 client.println("Content-Type: text");

              client.println();
                  
                  
 ///////////////i used to have the simple potentiometer/lcd code here and it worked for
///////////////the longest time...now new text only appears if a file is accessed
  
                  
                  
              int16_t c;
              while ((c = file.read()) >= 0) {
                  // uncomment the serial to debug (slow!)
                  //Serial.print((char)c);
                  client.print((char)c);
              }
              file.close();
            } else {
              // everything else is a 404
              client.println("HTTP/1.1 404 Not Found");
              client.println("Content-Type: text/html");
              client.println();
              client.println("<h2>File Not Found!</h2>");
            }
            break;
          }
        }
        // give the web browser time to receive the data
        delay(1);
        
        client.stop();
      }
      
        
      
    }


Thanks so much for any help!!!
127  Forum 2005-2010 (read only) / Interfacing / Re: ethernet redirect possible? on: December 05, 2010, 06:58:35 pm
ah yes i knew something like that existed. thanks! i'll try it out tomorrow.

i'm a painter and i'm trying to use arduinos in paintings. maybe when this project is all done i'll post it in the forums.

thanks!
128  Forum 2005-2010 (read only) / Interfacing / Re: ethernet redirect possible? on: December 05, 2010, 06:35:58 pm
Hi,
Thanks for your help! I have been using the WebServer example and also another example in the adafruit forums here: http://forums.adafruit.com/viewtopic.php?f=31&t=16808&p=86462&hilit=ethernet+sd#p86383

what i want to do is...i have these QR codes that have web address on them...i want to make it so that depending on where the potentiometer is turned the QR code would take the person to a different place. for example, the QR code has the address http://192.168.1.177/two.htm coded into it...that can't change...and if the pot reads 0-200, for example, by scanning the QR code and clicking on the link, the web address would instead take someone to 192.168.1.177/three.htm.... or if the pot read 201-400 it would redirect to 192.168.1/four.htm.... do you know what i'm saying? the .htm files would already be written and on the sd card...i don't want to write the html with client.print() in the arduino sketch...

it's a little weird i know...thanks for any input!
129  Forum 2005-2010 (read only) / Interfacing / ethernet redirect possible? on: December 05, 2010, 05:35:37 pm
Hello,
I was just wondering if there's anyway to redirect people in a web server sketch with the ethernet shield (the one with the microSD).
For example, I would have the .jpgs I'm sharing linked at http://192.168.1.177/two.htm and depending on where the pot was turned two.htm could redirect people to different .html files.
Could anyone point me in any direction to get started with this or is it just not possible?
Thanks!
130  Forum 2005-2010 (read only) / Interfacing / Re: strange ethernet shield behavior on: December 04, 2010, 05:57:55 pm
hi thanks for your help!
sorry..i didn't past all my code. at the end of the sketch i do have:

Code:
 //if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();

   // do nothing forevermore:
    for(;;)
      ;
  }
131  Forum 2005-2010 (read only) / Interfacing / strange ethernet shield behavior on: December 04, 2010, 04:13:00 pm
Hello,
I recently got a few ethernet shields, the ones with microSD slots in them (http://www.adafruit.com/index.php?main_page=product_info&cPath=17_21&products_id=201)

It is working well as a web server but when I use it as a web client it is very spotty and acts very strange. the WebClient.pde example works usually and prints a bunch of google html code into the serial monitor. If I upload the sketch a few times to the arduino, though, it stops working until i restart my computer. However, I'm trying to make something that reads twitter feeds and at first it was connecting and everything was working fine and then it would take a long time to connect and then after a few more uploads of code to the Arduino it immediately disconnects me from twitter (I changed nothing in the ethernet code). I tried the sketch in both 0021 and 0018. Sometimes the code won't even compile and it gives strange errors about not being able to delete stuff or find other files...

below is the relevant code in my twitter sketch. thanks so much for any help!

Code:
#include <TextFinder.h>
#include <SPI.h>
#include <Ethernet.h>
#include <LiquidCrystal.h>
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192,168,1,177 };
//byte server[] = { 168,143,162,68 }; // twitter
byte server[] = {128,242,240,20}; // Twitter
char tweet[140];
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
Client client(server, 80);
LiquidCrystal lcd(7, 6, 5, 8, 3, 2);
TextFinder  finder( client );  
void setup() {
  // start the Ethernet connection:
   lcd.begin(16, 2);
  Ethernet.begin(mac, ip);
  // start the serial library:
  Serial.begin(9600);
  // give the Ethernet shield a second to initialize:
  delay(1000);
  Serial.println("connecting...");
lcd.println("Lavender Haikus");
  // if you get a connection, report back via serial:
  if (client.connect()) {
    Serial.println("connected");
    lcd.println("CONNECT!");
    // Make a HTTP request:
    client.println("GET /statuses/user_timeline/213070566.rss HTTP/1.0");
    client.println();
  }
  else {
    // kf you didn't get a connection to the server:
    Serial.println("connection failed");
    lcd.println("you messed up!");
  }
}

void loop()
{
  // if there are incoming bytes available
  // from the server, read them and print them:
  if (client.available()) {
    //char c = client.read();
    //Serial.print(c);
    //lcd.print(c);
        //lcd.scrollDisplayLeft();
   //if((finder.find("<item>")&&(finder.getString("<title>","</title>",tweet,140)!=0)))
   if((finder.find("<item>")&&(finder.getString("lavendercorp: ","</title>",tweet,140)!=0)))
     {  
         Serial.println(tweet);
132  Forum 2005-2010 (read only) / Exhibition / networked painting with arduino on: January 15, 2011, 02:09:32 pm
Hello,
I'm a painter/visual artist and a huge nerd. I try to use Arduinos in a few of my projects. Here is something I'm kind of proud of...it's a painting with an Arduino Mega with an Ethernet shield...so the painting is hooked up to a network and hosts files that viewers can download off it by scanning some QR codes. Also I want to say thank you to those who helped me with this in the forums here!
Anyway here's a picture and you can read more at the blog post.
post:
http://www.jeremycouillard.com/blog/01152011/

133  Forum 2005-2010 (read only) / Exhibition / arduino painting on: March 18, 2010, 07:20:52 pm
 I made a 3 key keyboard painting with three FSRs wedged in between the canvas and the panel. I put the Arduino, perf board speaker and wires behind the painting. When you touch a key it makes a tone and the 3 LEDs light up different colors depending on the key. Also there's a potentiometer and if you move it the tones change from high to low. I'm still learning this stuff and this is pretty simple...



here's the blogpost for more pics and a video: http://www.jeremycouillard.com/blog/03172010/

i will probably do more stuff like this so if you know any ways i could improve it let me know. thanks!
134  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: can't upload to arduino on: March 16, 2010, 08:11:36 pm
Hi,

So I got another arduino duemilanove and hooked them up and tried to run the tutorial you posted...i'm getting similar errors...

 ***failed;  
avrdude: verification error, first mismatch at byte 0x0000
         0x3f != 0x0f
avrdude: verification error; content mismatch

any ideas? is the chip fried? can i replace the chip? Any ideas on how I might have fried the chip? are these chips sensitive to magnets?

Thanks for any help!

135  Forum 2005-2010 (read only) / Frequently-Asked Questions / can't upload to arduino on: March 03, 2010, 10:14:51 pm
Hi
I posted this problem earlier but now I have narrowed it down. So whenever I go to upload anything to my duemilanova, on both windows and linux, I get the same error:
Avrdude: verification error, first mismatch at byte 0x0002
0x61 !=0x63
Avrdude verification error, content mismatch

I have the proper board and serial ports selected. The board, when powered on, is still running an earlier uploaded program...which was just a blinking LED in pin 13.

When I run an arduino mega from the same computer I get no problems.

I have some little speakers lying around which have magnets in them...do magnets have an effect on the chips? Do you think if I just replace the atmega the board will work again? Is it easy to pull out and replace?

Anything else I could try before I spend money?

Thanks so much for any help!
Pages: 1 ... 7 8 [9] 10