3
\$\begingroup\$

I keep getting the following error when trying to upload my code with the Arduino IDE:

avrdude: stk500_recv(): programmer is not responding

I stacked the following shields:

on top of a Arduino UNO.

I first thought it could be coming from the shields draining too much power from the USB port, but connecting an external power supply hasn't changed the situation (I had to set it up to 7,5V/600mA to avoid overheating).

I'm kind of lost here, judging from shieldlist I should only be worried about the power supply, which is obviously not the case.

Any idea about my problem?

\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

The culprit will be the XBee shield.

It uses the TX and RX pins. These are also used by the programming system. If anything is connected that uses those pins while you try to program it can interfere with the programming data.

I usually design shields that use the UART to include a pair of diodes to isolate them from the rest of the UART system and allow programming to work while the shield is connected.

\$\endgroup\$
2
  • \$\begingroup\$ Thanks for your help! Then I need to remove the stacked shields and upload it... \$\endgroup\$
    – Vincent
    Nov 9, 2011 at 19:25
  • \$\begingroup\$ Or you could mod the xbee shield to use other pins and talk to it via SoftwareSerial (NewSoftSerial) \$\endgroup\$ Nov 10, 2011 at 0:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.