Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: MEGA 2560 R3 Timeout on: January 29, 2013, 11:05:53 am
And if it helps...this is the error that I get when I try to burn the bootloader.
Code:
C:\Users\Admin\Documents\Arduino\arduino-1.0.3\hardware/tools/avr/bin/avrdude -CC:\Users\Admin\Documents\Arduino\arduino-1.0.3\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v1 -P\\.\COM3 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\Admin\Documents\Arduino\arduino-1.0.3\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM3
         Using Programmer              : stk500v1
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.
2  Using Arduino / Microcontrollers / MEGA 2560 R3 Timeout on: January 28, 2013, 05:31:21 pm
So I am getting the timeout problem that I have seen a number of threads about, but I am not sure what to do next. The RX and TX lights do not light up when I attempt to program the Arduino. I am using Arduino 1.0.3 and have verified the board and the serial port.
Here is the output from my upload attempt:
Code:
Binary sketch size: 1,632 bytes (of a 258,048 byte maximum)
C:\Users\Admin\Documents\Arduino\arduino-1.0.3\hardware/tools/avr/bin/avrdude -CC:\Users\Admin\Documents\Arduino\arduino-1.0.3\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P\\.\COM3 -b115200 -D -Uflash:w:C:\Users\Admin\AppData\Local\Temp\build3011719735877536803.tmp\Blink.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\Admin\Documents\Arduino\arduino-1.0.3\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM3
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: wiring_open(): releasing DTR/RTS
avrdude: wiring_open(): asserting DTR/RTS
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

Thanks
3  Using Arduino / General Electronics / Re: Sourcing Current on: October 23, 2012, 04:01:20 pm
Ohh, that makes sense! Thanks for the replies and advice!
4  Using Arduino / General Electronics / Sourcing Current on: October 22, 2012, 05:37:04 pm
Hello All,
I have situation where I am sending a signal from one Arduino to another by simply using a digitalWrite on one end, and digitalRead on the other. I am just using a short jumper wire to connect the two Arduinos, so I am assuming that the resistance is negligible. With 5V and a very low resistance, wouldn't this mean that the Arduino would try to source a very high current?
I realize that the Arduino can only source 20 mA, so could this damage the Arduino?

Thanks
5  Using Arduino / Networking, Protocols, and Devices / Re: Client.read() outside of void loop on: September 12, 2012, 10:27:22 am
I apologize for not posting all of my code. John and Tim were both correct in their assessment however, and Tim's solution worked perfect for me.
Thanks everyone.
6  Using Arduino / Networking, Protocols, and Devices / Re: Client.read() outside of void loop on: September 11, 2012, 08:42:39 pm
Yes, I should have been more specific. It really looks more like this:
Code:
  Ethernet.begin(mac);
  Serial.println(Ethernet.localIP());

  Serial.println("Attempting to connect");
  client.connect(time, 80);
  client.println("GET /timezone.cgi?Central/d/-6 HTTP/1.0");
  client.println();
 
  while(client.available()){
     char c = client.read();
     Serial.print(c);
  }
 
  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
  } 

Like I said, I have no trouble retrieving the webpage when I am calling client.read from void loop.
Also, I was looking through EthernetClient.h and noticed
Code:
virtual int read(uint8_t *buf, size_t size);
but I'm not sure what those parameters mean. I also looked at the function definition in EthernetClient.cpp and that didn't clear it up for me.
I have seen that the read buffer is only 2k, but that would be enough for me if I could just read 2k once and be done with it...
7  Using Arduino / Networking, Protocols, and Devices / Client.read() outside of void loop [SOLVED] on: September 11, 2012, 07:54:09 pm
Hello all,

Why is it that I cannot seem to read the contents of a web page outside of the main loop. My code looks like this:
Code:
void function(){

  while(client.available()){
     char c = client.read();
     Serial.print(c);
  }
}
I call my function from void setup(). All of the examples I have seen show the client.read() from void loop(), but I certainly hope that there is a way to do it outside of there...

Thanks
8  Using Arduino / Project Guidance / Re: Wireless with Atmega 328 on: February 02, 2012, 12:29:41 pm
Thanks for your reply!
Are there any software libraries available for the nrf24l01? I am on a compressed timeline, and I would really like to make use of as many libraries as possible.
9  Using Arduino / Project Guidance / Wireless with Atmega 328 on: February 01, 2012, 09:48:25 pm
I am working on a project in which I will be trying to get 2 Atmega 328s to connect to each other wirelessly. So I was curious if anyone on here had any recommendations or tips from when you've done this. I don't think I will need more than 40ft of range, so I was looking at this but I'm not even sure if it would work with the 328. I will also have 2 digital temperature sensors (each using 1 I/O pin) and an LCD that will use 11 I/O pins (I think).

Thanks!
Pages: [1]