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?

Anindo Ghosh
50.8k8 gold badges108 silver badges205 bronze badges
asked Nov 9, 2011 at 18:44
\$\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.

answered Nov 9, 2011 at 18:59
\$\endgroup\$
2
  • \$\begingroup\$ Thanks for your help! Then I need to remove the stacked shields and upload it... \$\endgroup\$ Commented 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\$ Commented Nov 10, 2011 at 0:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.