0

For some reason the Arduino IDE is unable to see my Arduino Uno even though it is connected. I have reinstalled the Arduino software, but no luck come of it. I connected the Arduino to my friends mac, who's could see it.. I am very confused and greatly appreciate any help.

enter image description here

enter image description here

Thanks, Shaun

2 Answers 2

0

I ran into a similar problem years ago on an ATMega128 (before Arduino) and you just have to be aware of alternative functions for the port. In this case PD0 is Hardware Serial RX which is a receive pin.

Here's some relatively older code based around the same idea:

Yes, you can use the RX/TX pins as regular IO. Just don't call the Serial.begin() in your code, and make sure you call a pinMode() for them.

from: http://www.societyofrobots.com/robotforum/index.php?PHPSESSID=b928292f91c78b57b5683484af0f635e&topic=12396.msg93239#msg93239

Another interesting post, fourth post: http://www.nerdkits.com/forum/thread/536/ where they disable the serial functionality once the code begins, downside (a above) you will lose serial comms, so it depends on how much you need them.

UCSR0B = 0; 

I'm not sure how successful that would be in today's arduino, I know a lot (if not all) of the prior functionality is maintained, but I haven't used them in a long while.

The pin should become active again as the bootloader will automatically reenable it upon reset (although I haven't personally tested it). It will just make debugging that little bit harder if you need to.

As I mentioned in my comment, if you have another pin available to you, use that instead.

-1

In case someone else has this problem..

Turns out, you can't be connect to pin D0 whilst using serial.

1
  • That's not entirely true, but in essence you're on the mark. May I suggest you have a read of the data sheet of the ship you're using. An aptly placed pull up/down resistor (I can't remember which off the top of my head) and using the pin in a particular orientation will also be 'ok'. A lot of external boards use jumpers for this exact reason to a) enable the pin to e used for serial programing/connection yet b) also used within the project. If you have another pin available for ease of use, yes, use that. But do and try and make your answers more complete Commented May 19, 2016 at 11:14

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.