Go Down

Topic: how come there is no enough amount of current flowing to 2nd led? (Read 476 times) previous topic - next topic

yangfizz

one led or more than one led to one pin always work, but whenever i try to connect another led to another pin(i.e 12). the light emitting by the led is so little. here is the image.


AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

guix

Maybe this will help? http://www.arduino.cc/en/Tutorial/DigitalPins (especially in the "Pull up resistors" part).

AWOL

Quote
especially in the "Pull up resistors" part).

He's trying to output.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

guix

Yes, but we don't see his code, and:
Quote

Note that the pullup resistors provide enough current to dimly light an LED connected to a pin that has been configured as an input. If LED's in a project seem to be working, but very dimly, this is likely what is going on, and the programmer has forgotten to use pinMode() to set the pins to outputs.

Which seem to be exactly his problem :)

Go Up