Show Posts
Pages: [1] 2 3
1  Using Arduino / Installation & Troubleshooting / Re: MEGA 1280 fails to run blink program properly on: July 01, 2011, 02:57:40 pm

johnwasser, retrolefty
 
I tried the reset as suggested but to no avail....

After much thought I had almost decided that it was a computer relater problem and not an arduino or IDE program. So to prove this I set up both IDE 0018 and 0022 on my netbook running XP PRO. I compiled with 0018 and uploaded the sketch and low and behold it worked just fine.  Next I used compiled with 0022 and it also worked great.

SO... I thought .. ok what could go wrong with my Windoze 7 computer?  and decided that it had to be something that I changed or maybe a driver that has become corrupt. So I decided to reload the FTDI driver.... and low and behold..  It works just fine.

Now why did I consider this course of action rather than reloading the firmware on the 8U2 and reinstalling the bootloader?  Mainly because when all else fails the simplest course of action is usually the correct one. Rarely (this is only my twisted logic now) ..  I say again rarely will you see something like a bootloader or firmware that is installed in an ancillary device be corrupted by uploading and running a simple program.. this is especially true of the simple programs that have been uploaded to this MEGA board.

In my career in electronics and computers ( I have been in computer forensics since 1990 and in electronics since 1966) I have only seen one time that a piece of software has done something to a computers hardware and that was to an IBM mainframe and 30 years ago. 

I do thank you for your guidance and had it not been for your help it might have taken me a lot longer come to the conclusions that I did.  YOu are the only ones that took the time to help and it is appreciated. I hope I can help you at some later date.

Dillon
2  Using Arduino / Installation & Troubleshooting / Re: MEGA 1280 fails to run blink program properly on: June 30, 2011, 05:43:16 pm
Well I opened the serial monitor and see nothing in either the receive or transmit window.  I have also verified the baud is set to 9600 but I can not change the other parameters and do not know what they are set to in the IDE.  My computer however is set to 9600, N, 8, 1.

I also changed the USB cable thinking that it might be defective but it still doesnt work.

Hopefully someone will find an answer.. its driving me nuts here

Dillon
3  Using Arduino / Installation & Troubleshooting / Re: MEGA 1280 fails to run blink program properly on: June 29, 2011, 09:03:55 pm
Everything compiles and uploads correctly.. no errors .. not even warnings.
I also had the Mega 1280 selected as the board.

I know the LED was not burned out because it works during upload .. and I swapped out
the PIN13 for another pin and supplied an external resistor and LED and still nothing.

Thanks for any help

Dillon
4  Using Arduino / Installation & Troubleshooting / MEGA 1280 fails to run blink program properly on: June 29, 2011, 03:15:16 pm
Afternoon all,

  I have a MEGA 1280 connected to my 64 bit laptop running Windoze 7.

I have copied one of the standard blink programs (see below).  It appears to compile and upload correctly
but does not blink the LED connected to pin 13.

The problem is that I seem to remember this sketch running correctly when I first got it.
Somewhere I thought I saw a note or fix for this problem but now I cant find it. 

Any ideas how to fix this, its driving me crazy

Thanks
Dillon

//  blink sketch attached below


/*
 * Blink
 *
 * The basic Arduino example.  Turns on an LED on for one second,
 * then off for one second, and so on...  We use pin 13 because,
 * depending on your Arduino board, it has either a built-in LED
 * or a built-in resistor so that you need only an LED.
 *
 * http://www.arduino.cc/en/Tutorial/Blink
 */

int ledPin = 13;                // LED connected to digital pin 13

void setup()                    // run once, when the sketch starts
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
  Serial.begin(9600);
  Serial.println("Starting...");
}

void loop()                     // run over and over again
{
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(1000);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(200);                  // waits for a second
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(400);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(200);                  // waits for a second
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(140);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(500);                  // waits for a second
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(1000);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(400);                  // waits for a second
}
5  Community / Local Groups / User group in Maryland??? on: June 12, 2011, 07:48:45 pm
Anyone around North Central Maryland like to set up a user group?
6  Using Arduino / Programming Questions / Re: errors in a file that I didnt call or reference (main.cpp) HELP requested on: May 31, 2011, 10:17:17 pm
well I cheated a little to resolve the problem for this one time

Obviously main didnt have anything returned for setup and loop so  all I did was

    void setup()
    void loop()

and it compiles great..

I wont leave main like that however
7  Development / Other Software Development / Re: Arduino IDE suggestion on: May 31, 2011, 10:14:01 pm
I resolved the problem with MAIN.CPP

I just put void to setup and loop  as in:

   void setup()
 and
  void loop()
8  Development / Other Software Development / Arduino IDE suggestion on: May 31, 2011, 06:23:31 pm
Gentleman,
  After having programmed for over 25 years (in C and asm) one thing that I have come
to appreciated (and the Arduino does not have) is a single step process for troubleshooting.
I have recently been trying to troubleshoot several programs that a friend wrote 2 years ago.
The problem is that he used ARDUINO 0012 to compile them and wouldnt you know it that wont run
on my Windoze 7 will not load or run this version. One of the programs has a small sequence error
that could probably be isolated very easily if I could single step through the program.


Also in another effort to compile one of the other program with 0018  or 0022 which are the two
versions I have loaded I keep getting an "undefined reference" error for both   setup()  and
loop()  in MAIN.cpp. I have yet to figure out how to make this program run.  Any idea how to fix this?

Thanks

Dillon

I cant seem to get past this problem.  I have thought of actually putting MAIN into my program and see
if that fixes the problem.
9  Using Arduino / Programming Questions / Re: ARDUINO MEGA 1280 and I2C on: May 31, 2011, 01:44:26 pm
YOu know it occurs to me that old time programmers have a hard time with some of these boards because
they are fixed in their thinking and do not plan for an expandable processor capability.

This is a good example of that scenario.  The authors of the libraries set them up so that they would
accomodate MANY processors/boards.. even new processors/boards not yet developed and thought of.
Whereas us old timers would have defined the pins in our individual programs and when we changed from
say an UNO to a MEGA we would have just changed the pins in our program.

The authors of the libraries made all of that unnecessary.  Now all I have to do is be smart enough
to remember that .... well that and figure out where things are documentated here on the arduino site.

Finding things on this site is not always easy for us old timers that do this stuff part time.

So to all those authors, developers and hackers that make this site work....

a big   THANK YOU!  and WELL DONE!

Dillon

10  Using Arduino / Programming Questions / Re: ARDUINO MEGA 1280 and I2C on: May 31, 2011, 01:32:11 pm
thanks guys  working on it now
11  Using Arduino / Programming Questions / ARDUINO MEGA 1280 and I2C on: May 31, 2011, 11:44:17 am
is there a standard set of pins that the MEGA 1280 uses for I2C connections.  Apparently the library defines specific pins for I2C on some boards (or maybe all boards, not sure).  But I cant find out what pins to use.

Any help would be appreciated..

Thanks

Dillon
12  Using Arduino / Programming Questions / Re: errors in a file that I didnt call or reference (main.cpp) HELP requested on: May 30, 2011, 07:39:31 pm
Actually I think the guys that put the compiler together did a "HELLAVA" job with it.  I mean all of this functionality and its FREE?  Geeze.

Anyhow.. I sorta suspected it called the main.cpp on its own.. now my problem is to fix this..

Here is the thing, I am an old timer C programmer.. notice I didnt say C++,  I also program in assembler but not 32 bit.  AND I didnt write this program I was only hoping to use it as a learning tool because it doesnt do exactly what I wanted to do.

With reference to using the "main" in my program.. I always do this because it is the way I was trained but I previously noticed that the program I got from my friend didnt have one..

Anyhow .. thanks.. I will try to figure it out.

Dillon
13  Using Arduino / Programming Questions / errors in a file that I didnt call or reference (main.cpp) HELP requested on: May 30, 2011, 06:34:44 pm
I have been working on a project to control  an SI570 Direct digital Synthesizer.  WHen I compile it I get a strange error message that is (seemingly) unrelated to the program I jusst comiled.  Now the program was not written by me it was written and originally compiled about 2 years ago and maybe with another compiler. 

Here is the error given by the Arduino 0022 compiler:


core.a(main.cpp.o): In function "main":
c:\user\voyager\arduinarduino 0022\hardware\arduino\cores\arduino/main.cpp:7:undefined feference to "setup"

c:\user\voyager\arduinarduino 0022\hardware\arduino\cores\arduino/main.cpp:10:undefined feference to "loop"

The file "main.cpp"   is located in
arduino 0022\hardware\arduino\cores\arduino\main.cpp

Now the problem I have is that I did not call main in any of the files that I have (as far as I cal tell) so what gives with the error message... what did I do wrong  .. etc. 

I am totally at a loss as to where to look and the code for the si579 is sufficiently (for me) convoluded that I am having problems trying to figure it out.


Thanks in advance

Dillon
14  Using Arduino / Programming Questions / Re: wire.h and wire.cpp files location on: May 29, 2011, 07:39:26 pm
WELLLLLL  DAAAYEM !!

 No wonder I couldnt find the two files they are already on the computer and I was looking on the ARDUINO web site for them not on the computer.  I guess this was because a friend gave me some code and told me to go get the wire files from the ARDUINO site and I never questioned it... 

  Thanks guys.. and I hope I can return the favor some time.

BTW I am working with an SI570 Direct Digital Synthesizer in hopes of making a leveled
signal generator for use in aligning receivers.

Thanks again

p.s. for those in the U.S.  Happy Memorial Day
    Remember the Alamo
    Remember Pearl Harbor
    Remember the Twin Towers
    Remember The Pentagon

   GO-Navy !
15  Using Arduino / Programming Questions / wire.h and wire.cpp files location on: May 28, 2011, 11:22:49 pm
Evening everyone,
  I have been looking for two files..  WIRE.H and WIRE.CPP

For some reason I can never find what i want on here .. even after searching all of the
topics. 

anyhow.. can anyone help with the location of these two files

thanks in advance

Dillon
Pages: [1] 2 3