-(Software) Better to use " #define ledPin 13 ", it instruct the compiler to replace the word "ledPin" with "13" instead of creating the variable ledPin inside the microcontroller (a memory location never used by the program ).
-(Hardware) Using a LED connected between pin 13 and Ground is stressing the
Microcontroller output driver. The LED can withstand more than 40 milliamps and will survive. A resistor in serie with the LED will help (240~1000 ohms).
Why waste time for a toy like that?? Buy proper microcontroller like AVR, PIC or 8051 and learn C. You'll learn much more about the actual hardware and program processing.
Good video, but I wouldn't suggest "experimenting" to determine polarity. That can be a bad habit, and can damage other components (capacitors for one). :)
The size of LED... well, you gotta check the specs. Seriously, off the shelf, they are about the same, but when you want cute small ones to huge a** ones for your car, you have to read the datasheet. Radioshack should have some stuff, but I'm not sure, I live in Singapore =D
The LED is a Light Emitting Diode. A diode is a simple semiconductor that acts like a 1-way-valve for current. This means, which pin goes where actually matters.
LONG lead is +ve, SHORT lead is -ve.
Simple circuit theory, +ve side of source connects to +ve lead of component. For those who know the math, V(source)=V(diode)-V(resistor).
Thank you for sharing that with us. I'd like to ask how you determine what ohm resister you buy when you want to hook a LED up with a power source; in this case, an output pin on the Arduino? As simple as this may be for many of you, can you detail out the considerations you take? You mentioned about regulatiing the 9v to 5vdc, what device is responsible for that? (I thought resisters regulate "current" (measured in ampere)
You can choose any amount of resistance you want. The smaller, the higher the current, hence brighter LED will have a shorter life (so far, 200 ohms hasn't given me any problems: see my video for NUS project). However, typically, 2k ohm resistors are used.
For the regulation, see the comment just after this. To the right of the DC adapter input, you will see this IC thing with a huge metal head, I suspect it's a 7805 voltage regulator. It's a device that takes in about 8-9Vdc and regulates it to 5V. USB voltage is already at 5V, so it doesn't have to be regulated. I am also pretty sure the MICROCONTROLLER on the Arduino runs on 5V and not 9V.
Does the size of the LED something to consider when choosing the correct (resistance) ohm resister? Thanks again for answering my noobish questions. I think I might just buy one of these. Gonna check where I could buy one (ebay?)
Yes, that's really true... However, as you can see from the questions, many people here probably don't know what you are talking about. Hence, for simplicity, it's easier to see from the leads.
This is for people that are too lazy to use a atmel microcontroller by it's self ,which is the only thing that the Arduino board is. He is doing it wrong your supposed to have a resistor with the LED not just put the LED across the output port and ground.
I think there's a 7805 on the board... Never seen it in person, but have seen the pictures. So 9V will be regulated to 5VDC. Still won't pop the LED that quickly... It's alright to just wire the LED direct, just for testing the pins, fast and easy.
Though it is better to have a resistor in series to limit the current. LED popping is pretty cool too!
i just found out there's a robotics distributor a few miles from me and they have the arduino line of products, this should be fun and easy! mostly for mocap/animatronics with the analog inputs multiplexed for, say, 32 channels - thanks for the video it gives a good idea of how it will be
i have been doing some basic electronics on a breadboard for about half a year i can do stuff like a 4017 counter (led chaser) and some 555 and some 556 and some 3917 but i really want to get an arduino
Am I the one arduino person on earth who uses Xubuntu?
DactaDork 2 months ago
Thanks for this video.
Two suggestions:
-(Software) Better to use " #define ledPin 13 ", it instruct the compiler to replace the word "ledPin" with "13" instead of creating the variable ledPin inside the microcontroller (a memory location never used by the program ).
-(Hardware) Using a LED connected between pin 13 and Ground is stressing the
Microcontroller output driver. The LED can withstand more than 40 milliamps and will survive. A resistor in serie with the LED will help (240~1000 ohms).
SeuPay 6 months ago
Hey man, you look like Joe Satriani.
Knightmetal 1 year ago
@Knightmetal Haha that was my first thought too, then I saw your comment :) hahaha
3dSorcery 10 months ago
sos
whitt38 1 year ago
to make the led flash differently you change the code a litthe bit. Change 1000 to 100, 200, and so on. hope it works :)
Anthony96922 1 year ago
Comment removed
SCRTpilot 1 year ago
Why waste time for a toy like that?? Buy proper microcontroller like AVR, PIC or 8051 and learn C. You'll learn much more about the actual hardware and program processing.
KrissTheSavage 1 year ago
Comment removed
94vujke 1 year ago
why does all of these guys with arduinos use mac os ...? btw thanks great job!
94vujke 1 year ago
@94vujke I know! I noticed the same! I'm a Xubuntu guy...
iCommdore 1 year ago
can i make an arduino that locks doors
bofoj 1 year ago
hi ! can you make some PWM one?? thanks
oqla2000 1 year ago
mmm Great man, you can make a charger portable with this cave no?
kecapo 1 year ago
the blinking light is doing SOS in mores code
NFvidoJagg2 1 year ago
Hi, how do i program the arduino using pure c, or using avr studio instead of avrdude. If have answer ill be thankfull.
sergio1020881 1 year ago
yeah its SOS at the end ... - - - ...
simon2133 2 years ago
Good video, but I wouldn't suggest "experimenting" to determine polarity. That can be a bad habit, and can damage other components (capacitors for one). :)
elimenohpee182 2 years ago
Great vid man, really appreciate the help, as i dwell into the world of arduino. and i'm pretty sure the end was SOS. -Joe
joebro391 2 years ago
Thanks JoeBro!
stevencombs 2 years ago
do you NEED jumper wires to connect things to the arduino board or can you use regular old wire?
buggyiscool 2 years ago
just what ever you have, no problem :)
Dreamlgider 2 years ago
SOS
tehuglyscientist 2 years ago 3
int ledPin = 13;
Does NOT INITALIZE the pin, it just creates an integer variable (which is later used to set the pin state, could be done without the var)..
Besides from that the video is OK...
reeferdk 2 years ago 6
That's what I was thinking too :).
Tchnclfl 2 years ago
@reeferdk Very good, bro! LOL. C++ Veteran?
iCommdore 1 year ago
The size of LED... well, you gotta check the specs. Seriously, off the shelf, they are about the same, but when you want cute small ones to huge a** ones for your car, you have to read the datasheet. Radioshack should have some stuff, but I'm not sure, I live in Singapore =D
qwertyjem85 2 years ago
For the benefit of most people viewing this...
LED info...
The LED is a Light Emitting Diode. A diode is a simple semiconductor that acts like a 1-way-valve for current. This means, which pin goes where actually matters.
LONG lead is +ve, SHORT lead is -ve.
Simple circuit theory, +ve side of source connects to +ve lead of component. For those who know the math, V(source)=V(diode)-V(resistor).
qwertyjem85 2 years ago
oh and the sequence... I think it's S-O-S.
qwertyjem85 2 years ago
Thank you for sharing that with us. I'd like to ask how you determine what ohm resister you buy when you want to hook a LED up with a power source; in this case, an output pin on the Arduino? As simple as this may be for many of you, can you detail out the considerations you take? You mentioned about regulatiing the 9v to 5vdc, what device is responsible for that? (I thought resisters regulate "current" (measured in ampere)
doseryder 2 years ago
You can choose any amount of resistance you want. The smaller, the higher the current, hence brighter LED will have a shorter life (so far, 200 ohms hasn't given me any problems: see my video for NUS project). However, typically, 2k ohm resistors are used.
qwertyjem85 2 years ago
For the regulation, see the comment just after this. To the right of the DC adapter input, you will see this IC thing with a huge metal head, I suspect it's a 7805 voltage regulator. It's a device that takes in about 8-9Vdc and regulates it to 5V. USB voltage is already at 5V, so it doesn't have to be regulated. I am also pretty sure the MICROCONTROLLER on the Arduino runs on 5V and not 9V.
qwertyjem85 2 years ago
Does the size of the LED something to consider when choosing the correct (resistance) ohm resister? Thanks again for answering my noobish questions. I think I might just buy one of these. Gonna check where I could buy one (ebay?)
doseryder 2 years ago
why do people always use lead size to tell what is positive? thats really dumb.
just look into the led, the thinner fin of metal is positive, and on some leds the negitive side is flat.
skierplaterandy 2 years ago
Yes, that's really true... However, as you can see from the questions, many people here probably don't know what you are talking about. Hence, for simplicity, it's easier to see from the leads.
qwertyjem85 2 years ago
yeah that would be kinda bad if it didn't. 9V 0Ohms lol. *POP*
By the way about the polarity comment about LED's: if you didn't know that LED's have polarity you probably shouldn't be watching this video.
JakeofCanadia 2 years ago
This is for people that are too lazy to use a atmel microcontroller by it's self ,which is the only thing that the Arduino board is. He is doing it wrong your supposed to have a resistor with the LED not just put the LED across the output port and ground.
Theamn800000 2 years ago
I think there's a 7805 on the board... Never seen it in person, but have seen the pictures. So 9V will be regulated to 5VDC. Still won't pop the LED that quickly... It's alright to just wire the LED direct, just for testing the pins, fast and easy.
Though it is better to have a resistor in series to limit the current. LED popping is pretty cool too!
qwertyjem85 2 years ago
i really want one of these!
coolsciencetech 2 years ago
Delay Comand
xXhighpowerXx 2 years ago
Thanks a lot ! really excellent intro to arduino !!
Expecting more related videos from u !
fiestamicman 3 years ago
thanks, was planning to getting one - it feels much more realistic that ill figure out the basics now
f76slask 3 years ago
Steve! I hope that's a 5V LED because if it isn't the LED or the Arduino (or both) will eventually fry
fyi - most red LEDs conduct at around 1.8v
tnick2 3 years ago
i just found out there's a robotics distributor a few miles from me and they have the arduino line of products, this should be fun and easy! mostly for mocap/animatronics with the analog inputs multiplexed for, say, 32 channels - thanks for the video it gives a good idea of how it will be
mcasual 3 years ago
the robotics distributors is robotshop..ca
mcasual 3 years ago
Yey my arduino arrived today.
djprmeeze 3 years ago
The lights are blinking morse... SOS
camliner 3 years ago
the LED is blinking faster and then slower and then starting over again
davidbball13 3 years ago
i have been doing some basic electronics on a breadboard for about half a year i can do stuff like a 4017 counter (led chaser) and some 555 and some 556 and some 3917 but i really want to get an arduino
davidbball13 3 years ago
This is really cool, Steven. Thanks for the videos.
Godboy245 3 years ago
Thanks. Glad you enjoyed them. They're fun to do and a great resource for my students.
stevencombs 3 years ago
so Steve what is the purpose of this board? does it do anything useful
coondogtheman1234 3 years ago
It's only limited by your imagination. Do a quick Google search for Arduino and check out all the cool projects.
stevencombs 3 years ago
I will do that, this looks fun b/c im into hardware hacking, check out my videos
coondogtheman1234 3 years ago