Basic LED blinking w/ Arduino

Hi and welcome to the first official post of!

First off to test if your Arduino is working with a classic LED blinking test.

Before we go into the project, some things need to be explained so you won’t be confused by the images you will see later.

I mounted my Arduino and breadboard to the cap of a food box. This way I easily keep together my projects and easily store and carry it around. Also I currently have a button mounted on the corner of the breadboard to further simplify tests I perform during my projects. All this isn’t necessary for this project but simplifies my workspace and further increases my productivity for future projects. The red and blue intertwined cables are connected to the 5V- and ground-pins on the Arduino and the breadboard. The long black cable its the cable for the output of the cornered button. Under the Arduino is an old card which is glued to the food box cap. This way I can easily remove  the Arduino if I have to.


So now lets start our first project!


  • Arduino (Duh)
  • Two breadboard jumper wires male to male
  • 330 Ω resistor
  • LED

Connecting the hardware

The LED has a long pin and a shorter pin, the longer pin is the anode which should always be connected to the voltage output of the Arduino or any component., in this case it should be connected to the resistor. The shorter pin the cathode and is connected to the GND-pin on the Arduino, which is the pin for ground. The resistor’s other end is connected to the Arduino pin 13. Thank god this is illustrated in the image below.



Programming the Arduino

Next step is to use the Arduino app. I’m not going to go through the installation process. There are tons of tutorials online if you need help installing apps on Windows, Mac and Linux.

Now open up Arduino app and paste the code below. This is taken from one of Arduino’s example sketches names “Blink”.

  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second

You can access this and other Arduino Sketches directly from the Arduino program
“Up arrow button” –> 01.Basics –> Blink

Screen-Shot-2014-01-30-at-02.45.26Or you can just go File –> Examples –> 01.Basics –> Blink

To upload the code to the Arduino, connect the Arduino to your computer with the USB-cable and press the “Right arrow button”, or just go “File –> Upload”.

After a few seconds your LED should be blinking!



If you have any questions feel free to ask me by using the Contact page or by commenting below.


A second year computer engineering student at Malmö University in Sweden just having some fun with this blog. Computer Engineering and Mobile IT: Bachelor of Science in engineering

You may also like...

54 Responses

  1. Levent Unan says:

    Hi Prince,

    I do benefit a lot from your site, but I have a problem I could not solve and could not find the answer here, hope you can help me. It is:

    I manage to blink the leds first with10 times with 1000ms delay, then 10 times with 500ms delay and then 10 times 100ms delay. So after 30 blinks the loop stops. Then I wanted to start the loop by a push button, but as soon as I remove my finger from the push button, the loop stops. How can I make the loop complete, even if I press the button for a very short time (like a short signal starting a loop).

    I’d really appreciate your answer

    Best regards, Levent

  2. will steve says:

    hay dood nise werk tank you

  3. Enjoyed examining this, very good stuff, thanks. “Shared joys make a friend, not shared sufferings.” by Friedrich Wilhelm Nietzsche.

  4. Perfectly indited content material, Really enjoyed looking through.

  5. Nearly all of whatever you claim is astonishingly precise and that makes me ponder why I hadn’t looked at this in this light before. Your piece really did turn the light on for me personally as far as this specific topic goes. Nevertheless at this time there is actually just one position I am not really too comfortable with so whilst I attempt to reconcile that with the main idea of your issue, let me see exactly what the rest of the subscribers have to say.Well done.

  6. Very interesting points you have observed, thankyou for putting up.

  7. Este site é realmente fantástico. Sempre que acesso eu encontro coisas boas Você também vai querer acessar o nosso site e saber mais detalhes! conteúdo único. Venha descobrir mais agora! 🙂

  8. Good info. Lucky me I reach on your website by accident, I bookmarked it.

  9. Jamesenund says: nystatin cream over the counter

  10. albulty says:

    40 mg lasix However, the tissue distribution of tamNox differed from that of the other metabolites as the tissue to serum ratio of tamNox decreased with increasing tamoxifen dose

  11. albulty says:

    Frank Tanner, who owned a landscaping business, is also a Californian and former Roundup user cialis online ordering

  12. says:

    Your article helped me a lot, thanks for the information. I also like your blog theme, can you tell me how you did it?

  13. says:

    Some truly great posts on this website, appreciate it for contribution.

  14. I do love the manner in which you have framed this difficulty plus it does indeed present me personally some fodder for consideration. Nevertheless, because of what I have seen, I basically hope when the actual commentary pack on that men and women continue to be on issue and don’t get started on a soap box regarding the news of the day. All the same, thank you for this superb point and even though I do not agree with this in totality, I value your viewpoint.

  15. Appreciate it for helping out, superb information.

  16. Together with almost everything that appears to be developing within this particular subject material, many of your perspectives tend to be relatively refreshing. On the other hand, I am sorry, but I do not subscribe to your whole strategy, all be it exhilarating none the less. It appears to me that your remarks are not entirely justified and in simple fact you are your self not even thoroughly confident of the argument. In any event I did appreciate reading it.

  17. A person essentially help to make seriously posts I would state. This is the very first time I frequented your website page and thus far? I surprised with the research you made to create this particular publish incredible. Magnificent job!

  18. Reading your article helped me a lot and I agree with you. But I still have some doubts, can you clarify for me? I’ll keep an eye out for your answers.

  19. crosoften says:

    I wish to express my appreciation to the writer just for rescuing me from such a setting. Because of searching through the world wide web and finding principles which were not powerful, I figured my entire life was well over. Being alive without the strategies to the problems you’ve resolved through your good article is a critical case, and ones which may have adversely damaged my entire career if I had not noticed your website. Your own understanding and kindness in taking care of all areas was precious. I’m not sure what I would have done if I had not encountered such a thing like this. I’m able to now relish my future. Thanks a lot very much for your skilled and amazing guide. I will not be reluctant to refer your blog to anyone who should have guide about this subject.

  20. Very efficiently written information. It will be supportive to anybody who utilizes it, including yours truly :). Keep up the good work – for sure i will check out more posts.

  21. férias says:

    Good web site! I truly love how it is easy on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made. I’ve subscribed to your RSS feed which must do the trick! Have a great day!

  22. I like your writing style genuinely enjoying this website .

  23. Unquestionably believe that which you stated. Your favorite justification appeared to be on the internet the easiest thing to be aware of. I say to you, I certainly get annoyed while people think about worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks

  24. I am glad to be a visitor of this double dyed weblog! , regards for this rare information! .

  25. Hi there, just became aware of your blog through Google, and found that it’s really informative. I’m gonna watch out for brussels. I will appreciate if you continue this in future. Numerous people will be benefited from your writing. Cheers!

  26. Thankyou for all your efforts that you have put in this. very interesting information.

  27. sbobet says:

    Greetings from Colorado! I’m bored to tears at work so I decided to browse your blog on my iphone during lunch break. I love the knowledge you provide here and can’t wait to take a look when I get home. I’m surprised at how fast your blog loaded on my mobile .. I’m not even using WIFI, just 3G .. Anyways, awesome site!

  28. What i do not realize is actually how you are not actually much more well-liked than you may be right now. You’re very intelligent. You realize therefore considerably relating to this subject, produced me personally consider it from numerous varied angles. Its like men and women aren’t fascinated unless it is one thing to do with Lady gaga! Your own stuffs excellent. Always maintain it up!

  29. you are in point of fact a good webmaster. The website loading velocity is amazing. It sort of feels that you are doing any distinctive trick. Moreover, The contents are masterpiece. you have performed a excellent activity in this topic!

  30. Its great as your other content : D, thanks for posting. “Slump I ain’t in no slump… I just ain’t hitting.” by Yogi Berra.

  31. I got good info from your blog

  32. Great write-up, I am normal visitor of one?¦s site, maintain up the excellent operate, and It is going to be a regular visitor for a long time.

  33. This actually answered my drawback, thanks!

  34. You are my breathing in, I possess few web logs and rarely run out from to brand.

  35. Great wordpress blog here.. It’s hard to find quality writing like yours these days. I really appreciate people like you! take care

  36. Great V I should certainly pronounce, impressed with your web site. I had no trouble navigating through all the tabs as well as related information ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, site theme . a tones way for your customer to communicate. Nice task..

  37. This actually answered my downside, thank you!

  38. Hi , I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people.

  39. Nice blog right here! Additionally your website quite a bit up very fast! What host are you using? Can I am getting your associate link for your host? I wish my site loaded up as fast as yours lol

  40. I am curious to find out what blog platform you’re using? I’m having some minor security issues with my latest blog and I’d like to find something more secure. Do you have any recommendations?

  41. Wonderful work! This is the type of info that should be shared around the web. Shame on Google for not positioning this post higher! Come on over and visit my website . Thanks =)

  42. gate io ny says:

    I agree with your point of view, your article has given me a lot of help and benefited me a lot. Thanks. Hope you continue to write such excellent articles.

  43. I have recently started a web site, the information you provide on this site has helped me greatly. Thank you for all of your time & work.

  44. Do you mind if I quote a couple of your articles as long asI provide credit and sources back to your website?My blog site is in the very same niche as yours and my users would certainly benefit from some of the information you present here.Please let me know if this okay with you. Thanks!

  45. I have been exploring for a little for any high quality articles or blog posts in this sort of space . Exploring in Yahoo I at last stumbled upon this website. Reading this information So i’m glad to exhibit that I have a very excellent uncanny feeling I came upon just what I needed. I most surely will make sure to do not fail to remember this web site and provides it a look regularly.

  46. ciorba peste says:

    I simply wanted to say thanks yet again. I’m not certain the things that I would have used in the absence of the tips and hints shown by you on such theme. Previously it was a very distressing difficulty in my position, however , taking note of a skilled strategy you managed that forced me to weep for contentment. I am grateful for this support and as well , hope that you realize what a powerful job your are providing educating the rest all through your webpage. I am sure you’ve never met all of us.

  47. gateio says:

    I have read your article carefully and I agree with you very much. So, do you allow me to do this? I want to share your article link to my website: gateio

  48. Excellent post. I was checking constantly this blog and I am impressed! Very helpful information particularly the last part 🙂 I care for such information a lot. I was looking for this certain info for a very long time. Thank you and best of luck.

  49. Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!

  50. Some times its a pain in the ass to read what website owners wrote but this site is very user genial! .

  51. Great post. I am facing a couple of these problems.

  52. obviously like your web-site but you have to take a look at the spelling on several of your posts. Many of them are rife with spelling problems and I in finding it very troublesome to inform the truth on the other hand I¦ll surely come back again.

  53. Jackpot168 says:

    Nice read, I just passed this onto a colleague who was doing some research on that. And he just bought me lunch since I found it for him smile Thus let me rephrase that: Thanks for lunch!

  54. I got what you mean ,saved to favorites, very nice web site.

Leave a Reply

Your email address will not be published. Required fields are marked *