Pages: [1]   Go Down
Author Topic: Buggy pin 10  (Read 1739 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Daniel
Guest
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

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

Thanks
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You should be able to, yes.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Daniel
Guest
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 30, 2007, 11:05:08 am by Daniel » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Daniel
Guest
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 30, 2007, 04:48:20 pm by Daniel » Logged

Pages: [1]   Go Up
Jump to: