Go Down

Topic: Buggy pin 10 (Read 2020 times) previous topic - next topic

fauria

Hi all,

I got an Arduino NG a couple of days ago.

When i try something like "digitalWrite(10, HIGH);" or "analogWrite(10,255);" after a "pinMode(10, OUTPUT);", a led plugged between 10 and GND does not light.

Touching directly the solder joints does not work either. However, when connecting directly to the atmega pins it works.

It seems there might be something buggy in my board.

Daniel

hi

You can't connect an LED directly to pin 10. You need a resistor with each LED (...it works without a resistor on pin 13 as there is a resistor built into the board for that pin only). Without a resistor, it is possible to burn out the Atmega outputs.  

D

fauria

Hi,

Im connecting it with a resistor. For instance, i found out it was not working properly when i tried reading a pushbutton (http://www.arduino.cc/es/Ejercicios/ReadAPushbutton).
This same exercise works properly with pin 9 or 11, for example, but not with pin 10.

mellis

Yea, sounds like one of the traces in the board is broken.  If it's a big problem, you can try to get it replaced.

fauria

Hi,

Do you know if i can join the pin of the atmega with the socket directly by soldering a cable between them?

Thanks

mellis

You should be able to, yes.

fauria

Hi,

I've been doing further tests, and i have noticed that the led does not blink even if connected directly from GND to the microcontroller leg. If i plug a led to GND and the first leg of the atmega (start couinting from bottom right: PB1), it blinks as if where plugged into digital IO 9. Same with every leg except the second one, that is, PB2 or pin 10.

I have tried this on two ATmega168 and one ATmega8 with same results.

May be there is something like a short in the board?

Thanks

Daniel

#7
Mar 30, 2007, 06:04 pm Last Edit: Mar 30, 2007, 06:05 pm by Daniel Reason: 1
hi

you really do need a resistor on an LED connected to the Atmega... it might look like it works, but you will eventualy damage the port of the ATmega, as you seem to have done.
D

fauria

Quote
hi

you really do need a resistor on an LED connected to the Atmega... it might look like it works, but you will eventualy damage the port of the ATmega, as you seem to have done.
D


Hi,

I use 220 Ohm. resistors on every led i plug on arduino, i even have spare leds with resistors soldered on them. I think its no matter of using resistors, is something that is not working properly on the board, a short or something like that.

I have tried with 3 atmega's and pin 10 does not work on any, everything else is fine.

Thanks

Daniel

#9
Mar 30, 2007, 11:31 pm Last Edit: Mar 30, 2007, 11:48 pm by Daniel Reason: 1
hey

I understand what you are saying.. what I meant is that <not> using resistors can damage your Atmega.

To test if it is the board or the chip, remove the chip, bend pin 10  up so that it isn't touching the socket, and repeat your tests...

D

Go Up