Loading...
Pages: [1]   Go Down
Author Topic: Now I really need help.  (Read 312 times)
0 Members and 1 Guest are viewing this topic.
Connecticut
Offline Offline
Edison Member
*
Karma: 16
Posts: 1214
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

I'm not kidding. If I am asking a question whose answer is found within the concerned product's datasheet, shame on me. If I am answering a similar question, shame on you!

SF Bay Area (USA)
Online Online
Faraday Member
**
Karma: 78
Posts: 5448
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Connecticut
Offline Offline
Edison Member
*
Karma: 16
Posts: 1214
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks!
Logged

I'm not kidding. If I am asking a question whose answer is found within the concerned product's datasheet, shame on me. If I am answering a similar question, shame on you!

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 16426
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

And you have a 330ohm or so current limit resister in series with your LED also so you don't damage the output?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Connecticut
Offline Offline
Edison Member
*
Karma: 16
Posts: 1214
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.
Logged

I'm not kidding. If I am asking a question whose answer is found within the concerned product's datasheet, shame on me. If I am answering a similar question, shame on you!

Pages: [1]   Go Up
Print
 
Jump to: