Pages: [1]   Go Down
Author Topic: Arduino " pin13" problem...  (Read 810 times)
0 Members and 1 Guest are viewing this topic.
Mexico,mazatlan
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My Arduino UNO lights pin 13(LED) but very LOW....


any comment... :exclamation
Logged

Mexico,mazatlan
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



problem fixed.. [smiley=cheesy.gif]
Logged

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And what was the solution?
Maybe the problem was setting it as an input with nothing connected...
Logged

Mexico,mazatlan
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PWM  I dont know if this is normal.. but
mi pin 13 (LED) dims very low.. so I guess well ill just

analogWrite(13,255);
....
....

(Again mi question is: is this normal?)
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you define pin 13 as an output in code?

Mowcius
Logged

Mexico,mazatlan
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

YOU WHERE RIGHT....(i feel soo embaresd) :-[
Logged

Portugal
Offline Offline
God Member
*****
Karma: 6
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Pin 13 doesnt have pwm capabilities...
Logged

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

Quote
Pin 13 doesnt have pwm capabilities...
Ah, but it's a little known bit of trivia that analogWrite() will work on non-pwm pins (for somewhat relaxed definitions of "work."  It will write a HIGH for values of 128 and higher, and a LOW otherwise.)

I thought it was a particular clever solution for not having digitalWrite() work, BTW.  Thinking outside the box and all that.
Logged

Pages: [1]   Go Up
Jump to: