Added: 3 years ago
From: makemagazine
Views: 253,997
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (308)

Sign In or Sign Up now to post a comment!
  • @makemagazine Well... That's going to burn the Arduino's output... Use a resistor.

  • This is not a microcontroller, a microcontroller platform. The microcontroller is the Atmega328

  • lol i have them all >:D EVEN THE SHIELDS lol im sellin them for 99% off

  • my wife says thank you for introducing me to something I didn't know I needed until I saw it! great tutorial!

  • Well, unless I'm a complete moron, I guess that's THREE questions.

  • I have a noob question about code, do I type in int ledpin = 13 or do i type in int ledpin = 13 // LED connected to digital pin 13? do I leave the // out?

  • the // signifies that anything following is just a comment and does not affect the actual programming

  • @Slimduckdad thanks for a quick reply, I am a total novice and insted of "copy & paste" code I would like to type it out, makes me learn what im typing in, just not having to type everything after // makes life easyer and faster, thanks again :)

  • Donde y como consigo esa tarjeta y el software????

  • @dexterelwero puedes ir al sitio arduino(punto)cc y alli tienen donde descargar el software y ademas puedes comprar de ellos. Si no tienes manera de comprar por internet, tambien tienen una lista internacional de distribuidores.

  • ¿ademas,vienen todas las piezas qué muestras al principio del vídeo?

  • soy Español,si encargo el libro?podré hacer los modelos mediante dibujos.Por cierto,vienen todos esos chips?

  • i just got a new arduino uno

  • why 2009 is writed "Duemilanove"? Because it is made in Italy!!

  • tity y

  • thought this was john park

  • where can I get some of Arduino?

    thanks.

  • i think arduino is too big im building a mini picduino (-:

    

  • What's the programming language the Arduino uses?

  • @IrradicableOne Seems like Java..might be wrong..Haven't started messing with them yet :3

  • Lol I wish I could get 1 of these

  • Mate you are my savior, i have been screwing around with an axon 2 from society of robots for like 3 months with little progress and this board looks easy and your correct in saying the community is great! getting a board asap!

  • All i need one of these for 2 LEDs to start slowly flashing for a few minutes at 4am, or about 4 or 5 hours after it's turned on. Could someone advise me what board and attachments to buy, and programming that needs to be done?

  • Comment removed

  • i cant make it stop blinking!

  • @Coolnventions You can, turn the board off.

  • Thanks for this video.

    I've seen a LED been used this way in many tutorials. It's a very simple way of introducing people to Physical Computing avoiding complex explanations about diodes, currents voltages etc... but..

    The digital pin 13 hasn't a resistor in serie.

    There is a (LED with a resistor in serie) in parallel to the digital pin 13.

    Using a LED connected between pin 13 and Ground is stressing the

    ATmega328 output driver. The LED can withstand more than 40 milliamps and will survive.

  • He's only missing the nerduino

  • I simply figure out that macs upload to the arduino faster then windows. Its kinda strange because people who own macs and plan to buy arduino unos would have speedy uploads then people who have pcs and the same board. Anyone have the same thing???

  • @Anthony96922

    Not true at all. Depends on your system really...

  • this shit is awesome.. how did I not know about this.

  • All of you are wrong. Mac and Pcs both have their strong points, and stop arguing about macs and pcs like idiots

  • arduino board is so big! programming a single microcontroler will be MUCH easier

  • why in hell do you have a macbook. pc's are soooooooo much better.

  • @ghost541111 mac are way better than pc

  • @leafman96 nooooooooooooooooooooooooooooo­o

  • @leafman96 wrong

  • @leafman96 Said by the highly educated man with the grammar skills of a three year old.

  • @aminy23 lol

  • @aminy23 Grammar has nothing to do with someones intelligence.... Only a moron will judge someones intelligence over grammar on a youtube comment...

  • @AnnoyingXboxer Good grammar is considered by many to be a sign of a good education and high class. I never commented on ghost541111's intelligence, I was lampooning his comment, and claiming that he was was poorly educated. An intelligent man whom is not a native English speaker wouldn't typically say "soooooooo", or "why in hell". It is safe to assume that English is his first language, and he is clearly isn't a computer expert, since he hasn't provided any evidence to support his claim.

  • @aminy23 First, Grammar does not show any amount of education.... It just shows your intelligence in the field of literacy... And Literacy has nothing to do with your knowledge on technology.

    Saying Mac is better then PC is pure opinion, Whether or not your a computer expert has nothing to do with it.... Mac is good with things such as Video Editing and simple tasks... PC is good for Programming and wide variety of options.. And Linux is good for customizing and hosting Servers...

  • @AnnoyingXbox An educated person will have good grammatical skills in their native language. Linux based operating systems are great alternatives to Windows and OS X for those who use there computers primarily for internet surfing and word processing. I believe that it is moronic to insult and criticize someones choice in computers, without providing any reason. Ghost54111 is also assuming that the MacBook belongs to the creator of the video, even though he may be using someone else's computer.

  • @leafman96 wrong.

  • @leafman96 Wrong.

  • @vtwinbreed A PC typically refers to a Windows-based computer. While a Mac is a PC under its skin, anyone worth his salt will understand that you are referring to Windows.

  • wait... you set your IDE to output to a diecimilia, but the arduino you're holding is a duemilanove...

  • i tried to upload the code,all it says is this

    avrdude: stk500_getsync(): not in sync: resp=0x00

    avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

    plz help me

  • Comment removed

  • I make my own arduino

  • @blagoMS :D

  • I am getting an aduino uno soon and also 100 Standard Leds i know that arduinos are 5v and the leds are only 3v so i am wondering what ohm resistor i should use so i dont damage anything and also where i could get them for cheap Thanks, topidude

  • @topidude Google for online LED calculator.

  • @topidude

    220ohm works fine =D

  • @topidude Leds don't really care about voltage, more so about current. Try to understand how to calculate this before you blow your leds... It's not very hard to do, but you need some information about the led uses (forward voltage Uf and forward current If) These differ with the kind of led you use. Also try to understand Kirchhoff's electric laws. Google is your friend!

  • @BartManNL hang on there, an LED (or any other electronic device) will only draw as much current as it needs, based on what your saying if I had a 3 volt battery rated at 100Ah (yes thats right 100 amp) the LED would fail?? you cant overdrive the LED above its rated voltage, as per ohms law. It will fail. Google has failed you my friend. The wall socket in your home can supply upto 10 amp @ 240 volts but you can still charge your phone right ? 10 amps is there right? stick your finger in. see

  • @stdavross666 Led's cannot regulate the current like lightbulbs. Therefore you ALWAYS need a resistor in series with the led. Ohm's law is not applicable to leds because led's consist of a P-N semiconductor instead of some kind of resistor-like device.

  • @BartManNL Let me give an example. A red led has a forward voltage drop of (typically) 1.8 volt. The rated current is (typically) 20 mA. This led is connected in series with a resistor to a 5v output of said Arduino. The sum of the voltages in a circuit is equal to the voltage applied, so the resistor gets 3.2 volt (5 volt applied - 1.8 volt drop of led). Also, the current within a cirrcuit is the same for all components. We want the led to have 20mA, this means the resistor also gets 20 mA

  • @BartManNL Now we use Ohms law: 3.2 volt / 0,02 amp = 160 ohm. As this resistor does not exist in the common E12 series, we use the next one: 180 ohm. Now the led is fine and will work for a looong time (it gets 17 mA which is fine)

  • @BartManNL I agree but you cant force more current threw a electronic component or light globe or whatever at its normal operating voltage as per you previous statement. not possible. Current is a product of voltage and resistance and yes ohms law is always applicable because we have a supply voltage for our LED, the LED has resistance, and current is the product of those two values. Do you agree?

  • @stdavross666 Actuallu, I'm affraid I don't agree... Leds do not have ohmic resistance! You really have to calculate the current within the circuit to match the current requirement of the led. Usually, when you hook up a led to a battery, the internal resistance limits the current. If you connect a 1,8 volt led to a 1,8 volt source with no current limitation, the led will fail in a short time. @2:31 the narrator explains pin 13 has in builtin resistor to prevent damaging the led

  • @stdavross666 May I suggest looking at h t t p://led.linear1.org/why-do-i-n­eed-a-resistor-with-an-led/

  • @BartManNL LED are not superconductors they have resistance. they have a voltage drop when in use so they must draw a load which means ohms law will apply. And OK it seems after a bit of research it appears that you are correct. They do need a current limiting factor that can sometimes be a batteries internal resistance. No hard feelings?

  • @stdavross666 No hard feelings! It took me forever to understand this...

  • @stdavross666

    Their resistance is too low. When you apply the 5V (or whatever your supply is) you get a very high amperage after the LED kicks on. Amperage, or current, is the amount of electricity flowing through the device. The more electricity you have flowing through, the more waste heat is generated. This heat will cook components of the board or your LED.

  • nice work.........

  • 7:30 New mail

  • the void loop ? XDDD

  • 7:30. Pronounced: 'Diechimilia' Italian for ten thousand. Basically all you need to know is the 'ci' sounds like 'chi'

  • If I wanted to connect a whole strip of RBG LED's to Arduino (like 30+ LED's), what would I need to do? Would I have to run the Arduino to each individual one and have each one have a resistor?

    I want all LED's to have the same color at the same time and be able to fade in and out

  • @mattmannmf Look at the example Tutorial/Fading at arduino.cc and LED Bar Graph ;)

  • @mattmannmf My arduino comes in today and I have the same question. I'm a experimenting guy so let me do some experiments with it and i'll let you know. Gimmie a few weeks.

  • Diecimila = dieci mila = ten thousand

  • These things are far to expensive to be actually useful. About 10x too expensive for what they are worth.

  • @cobrachoppergirl You can buy the componants yourself and solder it together for cheaper.

  • just ordered mine yesterday, hopefully i get it this week

  • Made in Italy! :-)

  • @pinko1975 Pizza Mario Lamborghini

  • @pixelr0 you forgot Pasta!

  • popular as in cant ship into the us? cause if you try the arduino website. it wont ship to us, thank you makershed for bringing us the joys of other nationly products.

  • best intro to the arduino ive seen an d ive sseen them all

  • Check what we're doing with Arduino & Etoys. Have fun! :) /watch?v=l_IYlDbBlEs

  • haha in 00:35-00:57 it seems he is having a orgy lol

    still awesome vid A+++

  • dude, u suck at narrating

  • @ctechreviews no, he doesn't. You suck at listening.

  • I got one for Christmas!

  • @AKSoapy29

    I love these things, my bro bought me one for Christmas, but i still haven't gotten it because of my mailman, even though it was bought the first.

  • What is X-Bee?

  • @11myedu it allows you to control things wirelessly

  • since the code is uploaded to the board, i believe then that the board can later be powered by some sort of battery, cant it? this thing is genius! you can practically make any type of useful hardware

  • i really love the arduino...it looks so nice...so sweety Oo

    ok....and if u watch all the led projects on the internet u really get impressed what a little atmega328 can do (with a nice arduino board)

  • I don't understand what is calling the functions he is declaring , I figured

    he would need to declare variables then have a main(){} function that calls the functions after it.

  • I don't understand what is calling the functions he is declaring , I figured he would need to declare variables then have a main(){} function that calls the functions after it.

  • what is arduino?

  • Comment removed

  • Comment removed

  • wow

  • Thanks for the video. I'm totally new to this kind of stuff but want to get into it. Can you recommend any books/kits that would get me started with the programming and learning how to read schematics?

  • it is ur butt thanks for wasting my time.......

  • Really nice!

  • Interesting little doo dad. That would be great for kids. You people should consider employment.

  • @silverpizza100 look at sparkfun.com they have them with a ton of "shields" that you can put on them to add functionality. I just ordered mine, can't wait for it to come in the mail!

  • enteresting 0_o

  • you wrote "int LedPin = 13; ....." why are you using integer?

    why don't you just use byte? integer is for very large numbers and that's not really necessary here is it?

  • @nielseke2 An integer is just another word for a real number which values are greater than 0.

  • @Alexgeo4975 i know but byte will make ur program faster it goos to 28 megabyte program INT is for higher than 28 MB its the same ... only it would go faster in such a small code

  • @nielseke2 it's standard C programming to use ints unless there is a very specific reason not to. Reason being that char (or unsigned char or byte) are limited to +/- 128. It's extremely easy to accidentally go over this, wrap around to numbers of the other sign and then introduce bugs in your code.

    I'm going to put an example in another post, to help make sense of what I'm saying.

  • @nielseke2 Consider this example:

    char x = 100;

    x = x * 3 / 4; //result should be 75

    First the CPU will store 100 in some byte in memory (probably on the stack).

    Then it will grab that value and multiply it by 3. This should be 300. unfortunatly 300 > 127 (max value for a char). More than likely this number will get stored as 44.

    Now 44 / 4 = 11. That is the wrong answer. This is very very easy to do using bytes or chars. Thats why you use ints unless you really need byte data.

  • that is italy 

  • the double '//' are similar to MEL code/scripting for 3D animation in Maya, im guessing is a C or C++ thing!?

  • @AxelTiger its C 

  • The code go over was very slow IMHO (of course i am fairly good at C programming).

  • @MrTriston27 A good thing to start with is the Arduino Projects Pack... It has EVERYTHING to get started... right down to the battery! :) Sure, it's $100 but it has everything.

  • sweet its in basic

  • USB to control serial via C code? Why not serial and line ports. Folks are expected to do all this so their computer can make an LED blink? Hmmmmm....

  • woah.. when you plug in the LED it immediately is putting out a bit of very low frequency light. looks red on camera, was probably infra-red... and its not plugged in! you see this right? 2:48 into vid

  • I’m trying to figure out a display unit, which has two sets of 8 led’s, which blink in sequence one after the other, and a few led’s, hooked up to temperatures and fluid levels, The system is 12 volts. The led’s I imagined to be 12 volts also. could I use one of these Arduino. for this ?. Any advice would be very welcomed,  ...Thom in Scotland.

  • Hi guy, very interesting video, I never was much good with electronics though. But you explain things very clearly, cool, thanks.

    Thom in Scotland.

  • would the miniduino or nanoduino do the same thing as an arduino?????

  • thank you for this video i always hear arduino in different projects but i had no idea what it is

  • 4:33 "gets" not "equal" 13 =) cool video, thanks alot! =)

  • great intro video, I was so nervous about getting one

  • just bought an arduino : ) hoping to link it to max msp. should be fun : P

  • what are these?

  • @carlosthecactus "char array", did I say that?

    @javamanV3 I am 31. All right, one or two bytes, whatever? This is stuff is for beginners anyway. The criticism, however, is not to the C language (even though I can list many of the, if you wish) but to the sloppy code.

  • The serial version of the Arduino has series resistor on Pin 13. Since you are using Duemilanove, there is "NO" series resistor on Pin 13 and you are risking to exceed the 40ma limit by directly plugging that LED. Besides, there is already built-in LED on Pin 13, so what's the point of risking damaging the AVR by hooking another LED without series resistor? Check the schematics and your board.

  • Can you make it turn a 60w lamp on and off? And can you using a 2nd commuter at work on the internet to do that action?

  • @rprp07110 yeah you make it switch a relay, you could send Open Sound Control messages or even midi across the web from work to your home machine to turn the light on. would take a few days to nail it on the head, but yeah, it would work.

  • Well, the code presented really sucks!

    First of all, why in the hell do they use an "int" to represent the number 13 when a "char" would do the job? While we are not running out of memory with this simple example, good programming should be teach from the beggining.

    Second this little sketch will actually use the full power of the microcontroller without doing almost nothing! Timer interrupts are the way to go here!

    The board is actually worth buying, but the software sucks.

  • @eshneto

    What are you - 80? I have been programming sin 16K was a lot of memory, but i don't knock people for using int vs char. It is clearly not an issue.

    If you want to be a C critique go to a C web site - they will love it ... Here - not so appropriate.

  • @eshneto Why on earth would you use a char array in this case? It is pretty apparent that the formal parameters of the digitalWrite function require an integer to define which pin you are setting the value of.

  • Have you made a video about the Ethernet Shield (or however it is called) to talk to the internet?

  • How do you pronounce this thing?

    Is it like Ard-Wino?

    Thanx

  • yeah i think thats how its said. I sometime emphasize the "oo" sound.

  • Comment removed

  • hi what board would you use with a display to make a volts amps and watts meter for a solar system

    thanks

  • Thanks for this video, it is utterly interesting!

    BTW, the correct pronunciation of 'Diecimila' would be something like Dee-eh-chee-mee-lah (the 'h's are there to show how to pronounce the vowels, but shouldn't be pronounced).

  • my math teacher have one of those italian arduinos

  • yes! been looking for a video like this forever, and it was made yesterday, my god

    Thanks!

  • ok, I know nothing of this, i am trying to learn it on my own. Can this thing be programmed via USB, the diconnected an made mobile, like in a vehicle, the hooked 2 a 12 volt power supply an run its program?

  • this chip board is made in italy,,,

    that is cool

  • 7:49 he said tittie :P

    nice tut ive just got myself such a board from school but not the power supply or the usb cable so i have to make one or buy one.

    so im close to finaly start with programming microchips :D

  • after you have done the uploading can you just plug it into net stream to keep that blinkled going or does it need usb all the time?

  • read comment below and also it only said blue tooth

  • can any one help me i can't upload data because the serial port is taken and if i and it doesn't use bluetooth. HELP ME.

  • Thanks for sharing!

  • Hi, these videos are just great, thank you. Let me clarify something: You say that pin 13 has a built-in resistor, but I think that at least for the duemilanove this resistor is for the built-in LED connected to pin 13 only. This means you still need a resistor if you are plugging an external LED to pin 13 just as when using any other pin.

  • the resistor for the built in led runs on the same circuit as pin 13 so you don't need an extra resistor

  • Actually, if you look at the schematic for the duemilanove, you'll see that RodCastler is correct. The 1k resistor is for the built-in LED only, and pin 13 has no resistor in series.

  • Comment removed

  • Comment removed

  • Comment removed

  • Is it possible to connect an LED to the digital ins 0 (RX) and 1 (TX)?? hellp!

  • Yes, if you don't use serial communication.

  • is it possible to connect an LED into analog pins?? Im an idiot can anyone help

  • You can use a LED bargraph if you want to.

    Can you do a video of the arduino connected to a tv if possible please do it

  • Getting started with Arduino really is a good book.

  • @jodex96 massimo banzi is awesome!!!!!

  • Comment removed

  • Comment removed

  • Whats next?Force shield? And can a small LED number screen (2nums, 1 row) fit on a nano arduino? I'd use it to show my Pi day!

  • Im getting a starter kit for my birthday <3

  • just got one for mine :)

  • W ITALY (Arduino is italian)

  • @kecapo That‘s why it is so shitty. They can neither build cars (Fiat) nor build micro devices :)

  • Google this free download book, "Arduino Starter Kit Manual : A Complete Beginner Guide to the Arduino" by Mike McRoberts from Earthshine Design. If I had this twenty-some years ago, it would have changed my life (well, at least my grades in Physics) It seems so straight-forward now!!

  • i know i just got it, luckily im still young.. wonder if i can get some high grades in physics.!

  • I am completely new to arduino and don't fully understand them, but could you tell me how you could have gotten a better grade in Physics? I'm going into Physics this year.

  • Hi, I new to the arduino "world" and I don't no much about it i've watch about all of your arduino videos and I camed with an idea. This idea was to take an arduino and hook it up to a Servo motor, using in to unlock a door lock. And then using this project to unlock and lock a door by entering a code on my computer. I would really appreciate you guys making a DIY video on that project!

    Thanks in advence!

  • I'd like to buy Arduino starter kit, but they don't sell it in Makershed anymore. But they sell this Getting started with Arduino kit, witch has this book witch may help me with using the Arduino, but the Arduino starter kit has not. Getting started with Arduino doesn't have the Protoshield, but it has only breadboard.

    I'm confused witch I should buy??!?

  • a breadboard can be hooked up to the arduino without attaching it to a shield. the protoshield only makes it a bit easier to wire up