Pages: [1]   Go Down
Author Topic: 220 ohm resistor in 'FADE' example?  (Read 1327 times)
0 Members and 1 Guest are viewing this topic.
Pacoima California USA
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
  Total newbie here and I am sure that my confusion is based on my own ignorance but every LED I have tried with the 'fade' example has required that I omit the 220 Ohm resistor (red red yellow). I not sure if the Mega2560 has the pull down resistors turned on or what but no matter how many times I load the software and or swap out the LEDs I get the same result, nothing, if the 220 ohm resistor is in place. This is true even when I bypass the circuit board entirely and feed the LEDs right from the gnd and +5 pins. Admittedly the LEDs get hot fast when I wire them right to 5 volts and don't seem to be over heating when I operate them through  fade example , successfully by the way, without the 220 ohm resistor.
  By some coincidence are all of my LEDs made with internal resistors?
Thank you for any light you can shed on this.

MikePett

I am using the arduino mega 2560 and the 0022 alpha software.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 553
Posts: 46299
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I not sure if the Mega2560 has the pull down resistors turned on
Why don't you? They are not turned on by default, so if they are turned on, you did it.

Post your code if you don't know how to tell if you did it.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 332
Posts: 16568
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
220 Ohm resistor (red red yellow).

That would be in fact a 220,000 ohm resistor, must too high a value to light a led up. You need a red, red, brown resistor to equal 220 ohms.

http://www.google.com/imgres?imgurl=http://www.leonaudio.com.au/res-code.gif&imgrefurl=http://www.leonaudio.com.au/res_code.htm&h=1018&w=686&sz=27&tbnid=eNAR-clnfWTcKM:&tbnh=150&tbnw=101&prev=/images%3Fq%3Dresistor%2Bcolor%2Bcode&zoom=1&q=resistor+color+code&usg=__hEZmxaXf7C2iMX8UMfaNU1LxHNY=&sa=X&ei=sI4aTbH5HZG8sQPo4cjMCg&ved=0CCkQ9QEwAQ

The real lesson to be learned is that one [glow]must[/glow] first buy even a simple digital multimeter if they want to build or experimate with stuff using an Arduino. I never trust my eyes on resistors as colors can be faded or even missing. Just measure the resistors with your meter and you won't get rude suprizes like this.

Lefty
« Last Edit: December 28, 2010, 08:38:25 pm by retrolefty » Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 446
Posts: 23872
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There are NO internal PULLDOWN resisters, only Pullup. See section 12.2 of the ATMega2560 datasheet.
http://www.atmel.com/dyn/resources/prod_documents/doc2549.pdf
9.2MB, is huge.
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.
Arduino for Teens available at Amazon.com.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 553
Posts: 46299
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
There are NO internal PULLDOWN resisters, only Pullup.
Yeah, yeah. I knew that. I knew they pulled one way. Just forgot which. I'll try to pay better attention next time.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12293
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


That will be a quarter in the AVR blasphemy jar, please.   smiley-wink
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 446
Posts: 23872
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Paul, did you get a chance to look at the code I PM'd you about?
I can't see why that simple code is losing time so quickly.
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.
Arduino for Teens available at Amazon.com.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 446
Posts: 23872
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Coding,
If you could also, I'd appreciate it:

Can you take a look at the code listed in reply #18 here
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1292540097/15
Warren has a simple count up timer intended to be used as a stopwatch eventually, except it seems to lose a lot of time pretty quickly, 2 seconds in just 5 minutes.
Pretty straightforward code, I talked him out of a bunch of floats and dividing down & messing with remainders & stuff. Just 6 counters, if hit 10 or 6 increment the next one in line & clear to 0.
Shift the count out every 10mS.
Thanks
Robert
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.
Arduino for Teens available at Amazon.com.

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12293
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


If Warren Reeve doesn't respond in a day or two, prod me and I'll disclose the flaw.
Logged

Pacoima California USA
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you everyone for your informative and highly knowledgable help! You Rock one and all!

I thought that I could trust the chart that I was looking at and I can, it clearly says 220K and I read it as 220.

Here is my quarter.

MikePett smiley
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 332
Posts: 16568
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Here is my quarter.

Keep it towards buying that difital multimeter you need.  smiley-wink
Logged

Pages: [1]   Go Up
Jump to: