Go Down

Topic: Now I really need help. (Read 991 times) previous topic - next topic


None of my digital pins, except for pin 13, work. They all ouput ~4VDC and almost no current-- a 3mm green led plugged in to any of them stays off. (I wrote some simple code which pulls pins 2-13 high.)


did you remember the pinMode(n, OUTPUT); statement in setup?  the behavior you describe is typical of leaving that out, in which case writing HIGH enables the internal pull-up resistor (about 30k[ch937]; very weak.)



And you have a 330ohm or so current limit resister in series with your LED also so you don't damage the output?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131