Arduino Mega using all I/O pins, but can't upload and use serial anymore.

Hey guys,

I use an arduino mega, I use all the pins, even tx/rx pins as digital I/O. Now I have a problem. While the I/O pins are connected, I can not communicate via USB with the arduino.

If I disconnect all the I/O, I still can program it. But the problem is, the arduino needs to communicate via USB with a raspberry while all the I/O is connected.
Anybody has had the same problem/ has a solution?

Thankyou
Terick

Hi,

even tx/rx pins as digital I/O

What do you have connected to the tx/rx pins, pins 0 and 1, they are needed to program the mega.

https://arduino-info.wikispaces.com/MegaQuickRef

Tom..... :slight_smile:

Terick:
Anybody has had the same problem/ has a solution?

Sounds like you are using 2 pins too many.

Are you aware that you can use the analog pins as normal digital pins?

...R

Thankyou guys! Removed pin 0&1 and everything works!
Time to learn about shift registers :slight_smile:

Robin2:
Sounds like you are using 2 pins too many.

Are you aware that you can use the analog pins as normal digital pins?

...R

Yes! I am already using those as digital I/O pins :slight_smile: