Go Down

Topic: need to know what resistor to use for my project (Read 2095 times) previous topic - next topic

diggee17

hello,
I'm a total newbie.  I just bought the Arduino Uno board and I bought Radio Shack's Sidekick Basic Kit for Arduino.    I'm trying to do a project I found in a book.  It calls for 100 ohm resistor.  I have 3 types of resistors marked 1)1k Ohm Resistor , 2)10K Ohm Resistors  and 3) 330 Ohm Resitors.  I think  I should us e the 330 Ohm but I'm not sure and I don't want to brake anything before I even get started!!!! 
TIA

Jack Christensen

I might go back to RS and get some 100 ohm resistors.

My crystal ball is in the shop, so I can't comment on whether a 330 ohm resistor would work, without seeing the project (hint: got a link?)

If you have three 330-ohm resistors, put them in parallel, that will give 110 ohms.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

diggee17

Thanks.  (Can't go to RS now- a blizzard on US EAST COAST!)
  The project is a simple led flasher. From book "beginning arduino "
The hardware used in Project 1:

Breadboard

5mm LED

100 ohm Resistor*

Jumper Wires

* or whatever value appropriate for your LED

The code is:

Listing 2-1. Code for Project 1

// Project 1 - LED Flasher
int ledPin = 10;
void setup() {
         pinMode(ledPin, OUTPUT);
}
void loop() {
        digitalWrite(ledPin, HIGH);
        delay(1000);
        digitalWrite(ledPin, LOW);
        delay(1000);
}

Jack Christensen

Oh, OK, 330 will be fine. It's a current-limiting resistor for the LED. With 330 it might not be as bright, but actually 330 is sort of my "standard" resistor for most 5mm LEDs, many of them are quite bright with 330 ohms at 5V.

Good luck digging out. The storm has moved out here, it will be a cold and clear night with lows around 5°F. We had maybe 4" or 5" of snow, so nothing all that remarkable here.

Good weather to stay in and play with microcontrollers, enjoy!
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Nick Gammon

As Jack said, 330 ohms would (probably) let 10 mA flow through your LED, which should be plenty to make it light up nicely. Have fun playing with it. :)
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

CrossRoads

Ah, blizzard, its just snow!
Greater hindrance is the governor banning all traffic on the roads with fines & jail time 8)
(except public safety kinds of vehicles - and the media!)
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.

Jack Christensen


Ah, blizzard, its just snow!
Greater hindrance is the governor banning all traffic on the roads with fines & jail time 8)
(except public safety kinds of vehicles - and the media!)


Wow, that is serious.  Sure am glad the media can do their thing though :smiley-zipper:

How much snow?
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/


Ah, blizzard, its just snow!
Greater hindrance is the governor banning all traffic on the roads with fines & jail time 8)
(except public safety kinds of vehicles - and the media!)


Good luck Crossroads, Mass. looks to be the winter wonderland of the week.
http://www.spcomputing.com

fungus

Is this a good place for a joke about Global 'Warming'...? :)

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

JimboZA

Here in Johannesburg it's 23 right now....

..... but then, we use Celsius. And also, being in the Southern Hemisphere it's summer  XD
Repeal Ohm's Law

No PMs for help please

cjdelphi

Global Cooling...


To the original poster, if the resistor is a higher value than required, it will never hurt..... the most that could happen is that it simply fails to work (unless it's some kind of circuit which increases voltage depending on resistance)  or.... incase of the LED, not as bright.

BUT...

You could use PWM via the Arduino or even make your own resistor using nichrome or similar wire.


A4kash

try resistors using ohms's law which states E=I*R,know the input voltage and the current that the device can handle ,such as for glowing the leds you should first know the max amount of current the leds can handle and the input voltage you are getting from the arduino pins and you can easily calculate the resistance.For more info
http://www.kpsec.freeuk.com/components/resist.htm

CrossRoads

We got 20-24", heading out to clear the driveway in a few minutes.
End of the driveway is over 4' from the plows, right up to the bottom of the mailbox.
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.

JimboZA

Quote
know the input voltage and the current that the device can handle ,such as for glowing the leds you should first know the max amount of current the leds can handle and the input voltage you are getting from the arduino pins and you can easily calculate the resistance


Bzzzzzzt not quite  8) .... for LEDs you subtract the LED voltage from the supply voltage which gives the drop you need to cause over the resistor, and divide that by the current to get the resistance needed.
Repeal Ohm's Law

No PMs for help please

Jack Christensen


We got 20-24", heading out to clear the driveway in a few minutes.
End of the driveway is over 4' from the plows, right up to the bottom of the mailbox.


Yikes! :smiley-eek:  Hope you have a snowblower. Either way, don't hurt yourself.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up