BLOG > Tutorial Series for Arduino: It begins.

This video was featured on the Adafruit Blog on 01/06/11
This tutorial was featured on the official Arduino blog on 3/9/2011
This video was featured on the DIYFilm Blog on 03/19/11

Arduino UnoThanks to a generous sponsorship from element14, I’m putting together a tutorial series on using the arduino microcontroller platform!  The arduino is a platform that I’ve done several projects with, and I think it is the best possible way for beginners to get acquainted with electronics.  This tutorial series will be aimed at beginner users, but I’m hoping to keep it going with some more advanced topics a few episodes into the future.    This first episode will get you acquainted with the arduino uno (the current “flagship” arduino), introduce the programming language, and help you get your first program running!


You can download the files associated with this episode here:

GNU GPL License Distributed under the GNU General Public (Open-Source) License.

Please Attribute and Share-Alike.


Arduino Project Contest!  Start getting your projects together!

Start thinking about your arduino projects, because element14 will be sponsoring a contest where you can win a prize if your arduino project gets the most votes.  More info coming soon!

129 comments

  1. this is a great tutorial about Arduino. also, I write a comprehensive tutorial about how to start using Arduino boards and resources.

  2. You should take a look at the Smart Citizen project! Good to see this Arduino go viral worldwide. A lot of people from around the world want to get their hands on one or more Smart Citizen kits.

    It will change the way we look at our environment we live in worldwide. This is a project with a lot of potential that is unleashed in the coming months. It only needs your support. So be a backer to before it’s all sold out:

    http://www.kickstarter.com/projects/acrobotic/the-smart-citizen-kit-crowdsourced-environmental-m

  3. Hey Jeremy,

    This is my first attempt at Arduino.

    I looked through all the comments, and did not find anyone that seemed to be having my problem.
    I think I have the program exactly like you show, But I am getting a set of error messages.

    In bold orange in says: function ‘void setup ()’ is initialized like a variable
    The rest of the error message text is:

    JeremyBlumTutorial_jun28a:9: error: function ‘void setup ()’ is initialized like a variable
    JeremyBlumTutorial_jun28a:10: error: expected unqualified-id before ‘(‘ token
    JeremyBlumTutorial_jun28a:15: error: expected constructor, destructor, or type conversion before ‘(‘ token
    JeremyBlumTutorial_jun28a:16: error: expected constructor, destructor, or type conversion before ‘(‘ token
    JeremyBlumTutorial_jun28a:18: error: expected unqualified-id before ‘(‘ token

    Here is my program:

    /*
    Jeremy Blum’s first tutorial project.
    */

    int ledPin = 13;

    void setup()
    (
    pinMode(ledPin, OUTPUT);
    )

    void loop()
    (
    digitalWrite(ledPin, HIGH);
    delay(1000);
    digitalWrite(ledPin, LOW)
    delay(1000);
    )

    Did not think I could mess up such a simple program.
    Thanks in advance.

  4. whay ia can’t download your video /
    i wanna download
    please tell me how can i download your video

  5. Is it possible to transmit the data from the cheap DHT11 weather chip using a cheap 433 mhz pair from one Arduino Uno to another ? Im just not clever enough to work it out or write the code.

  6. thanks Jeremy Blum for these great tutorials >>I have a question :
    I must start working on my project after tow week, which is :mobile robot navigation based gps with local avoidance ,but I do not know which arduino ,digital compass and the GPS module must be use ,there are many shields and modules ,I am very confused >>>cloud you help me in choice ??……thank you very much for all your tutorial …..

  7. Jeremy Blum

    sir
    i am financially not strong can you tell me about any place in Pakistan where i do practical work on cir-cut and get basic knolige free

  8. Hi..i’m reena… I connect the arduino with the arduino ethernet sheild to light up 1 led.
    but the led not turn on. i have change the ip add refer to my ip add for both sketch but he led still not turn on . Chould you help me?thanks

  9. Hi I want to make an arduino uno by myself. But I need a firmware and bootloader . where can i find them.

  10. i need some help to find the frequency of a square wave produced by a color sensor….
    TCS3200

  11. Hi,

    I am a new user of Arduino. I want to buy a beginners Arduino UNO kit to get through your tutorials. I found several kits avilable online but I do not know which one will be good to get through your tutorials. Could you please suggest me the one?

    Thank you.

  12. Great tutorial series! Very helpful. I’m not finished with the series but I were able to make several projects like motors and traffic lights with buttons and I don’t know if my question will be mentioned later in the series but here goes: “How can I make the Arduino run independently without connecting it to a laptop or pc? You mentioned a power supply, so what is the appropriate voltage it needs? (Planning to make the power supply)”.

  13. Hi
    I m very much intrested in robotics
    And I have made some bots like edge dectector,line follower, etc using arduino and platform with two tyres but I have very less knowledge of robotics so please keep uploading videos
    Thank you and video is very helpful

  14. The tutorial series was very useful and can you extend the tutorial series for PIC micrcontroller also.. Its a request..!!

  15. Hi Jeremy,

    I am trying to make an arduino- arduino communication using 2 XBees of series 2. I ran your code shown in tutorial 9, but the communication doesn’t happen. I think I got the configuration wrong. May I know how I can configure the XBees? I used XCTU for configuring one XBee as Coordinator AT and the other one as Router AT. Thanks.

  16. Hi Jeremy,

    I am taking a class for robotic that using Arduino program. I just bought a book “Exploring Arduino” from Amazon that I am gonna use for my project assignment reference (I also use reference on http://www.arduino.cc). It’s probably come up a lot of questions that I want to ask. I hope in this forum, I can find an answer and have forum to help me when I get stuck how to do the programming.

  17. Hi I downloaded ChromeDuino to try to use my Chromebook for programming my arduino and it keeps telling me I have a syntax error and I even used your same coding and it keeps telling me the same thing. Hopefully you can help me :)

  18. Hey Jeremy!
    You are doing a great job in helping out people with arduino.Thank you man!

    I just wanted to ask that what are the things that can fry up my arduino or what are the things to avoid while safely using it. :)

  19. I want a code of aurdino to control 4 servo motors by getting a signal from computer as 1,2,3,4
    If signal is 1 then first servo should move 90 degree for few seconds and then back to its original positon. If signal is 2 then second servo should do the same task and same for rest of servos. I need a program will you please mail me and write in comments also:

    [email protected]

  20. what shud i do to rectify it sir ,
    please help me

    Arduino: 1.8.0 (Windows 8.1), Board: “Arduino/Genuino Uno”

    Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
    Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
    avrdude: ser_open(): can’t open device “\\.\COM5”: The system cannot find the file specified.

    Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
    Invalid library found in C:\Users\Admin\Documents\Arduino\libraries\ArduinoISP: C:\Users\Admin\Documents\Arduino\libraries\ArduinoISP
    Invalid library found in C:\Users\Admin\Documents\Arduino\libraries\sweep: C:\Users\Admin\Documents\Arduino\libraries\sweep
    Invalid library found in C:\Users\Admin\Documents\Arduino\libraries\ArduinoISP: C:\Users\Admin\Documents\Arduino\libraries\ArduinoISP
    Invalid library found in C:\Users\Admin\Documents\Arduino\libraries\sweep: C:\Users\Admin\Documents\Arduino\libraries\sweep

    This report would have more information with
    “Show verbose output during compilation”
    option enabled in File -> Preferences.

  21. Sir
    I wanted to learn adrino from basics with
    C programming can I learn with this
    or else please suggest me a guide to refer

  22. hey there I am from India
    I am a complete Rookie so i wanted to know with what arduino board shall i start
    ARDUINO UNO R3
    OR
    ARDUINO UNO R3 SMG
    AND IS THERE ANY CODE THAT I NEED TO CHECK WHILE BUYING A ARDUINO BOARD.

  23. hi im looking at living off the grid and no internet but am trying to find a way to download the tutorials can anyone help?

  24. I’ve commented with double slash in which I am confused. When I defined the buttonState as a global variable, it didn’t work as expected (first commented line). And when the same is defined in loop function (second commented line), it worked fine. I don’t get it. Because the global variable should work perfectly fine in all the scope. So, why didn’t it work as expected?

    const int buttonPin = 2;
    const int ledPin = 9;
    //int buttonState = digitalRead(buttonPin); (1)

    void setup() {
    pinMode(ledPin, OUTPUT);
    pinMode(buttonPin, INPUT);
    }

    void loop() {
    //int buttonState = digitalRead(buttonPin); (2)
    if (buttonState == LOW) {
    digitalWrite(ledPin, LOW);
    } else {
    digitalWrite(ledPin, HIGH);
    }
    }

  25. Hello
    I need your help to solve my gsm Arduino problem by adding restart by software and then initializer.
    Would you please help me in this case to write my library or just add the helpful code to my program.
    Thank you
    Fisher

  26. Hello
    I need your help to solve my gsm Arduino problem by adding restart by software and then initializer.
    Would you please help me in this case to write my library or just add the helpful code to my program.
    Thank you
    Fisher

  27. Hello
    I need your help to solve my gsm Arduino problem by adding restart by software and then initializer.
    Would you please help me in this case to write my library or just add the helpful code to my program.
    Thank you
    Mahsa

  28. Hey i am new here i was wondering if someone could help me with a problem that im having
    when i wanna upload a sketch to my arduino nano i repeatedly get the error message expected unqualified-id before ‘\x683e’ i hope someone can help

  29. Stumbled upon your tutorials by pure chance in 2022., as a complete download ZIP files.

    Your links to ‘parts list’ isn’t really a list of parts, but a referral link to suppliers.
    Ok, I get you need any extra little bit of income, however it appears you’ve released a number of books since the original tutorials were put together.

    For simplistic tutorial most of us has resistors etc laying around, so a simple:
    R1: 1k – 100k
    is more appropriate.

    I am not trying to denigrate or in any way take away something from your tutorials.
    You’ve obviously gone through much time putting them together.

    Not all of us are fans of YouTube, and it’s advertising, however handy it may be, and for generating clicks.

    In the ZIP files I stumbled upon, why not include a link which leads to a download of all of the videos you uploaded to YouTube as a complete series, away from YouTube, making your spot here a one-stop-shop, for everything, maybe even Fritzing diagrams.

    For the most basic it’s not necessary, although judging by some of the comments here that may not be true.

    It’s a long time since you first made these tutorials, maybe it’s time to update the links?

    FYI:
    I am new to ARDUINO, but I was programming back in the days when DOS was short for MS-DOS (Microsoft Disc Operating System) rather than Denial Of Service.
    I wrote an undelete program when the only other options were the commercial Norton and McAfee options.

    From there I moved into OOP, and true event-driven Windows coding, utilising Pascal, C, C++ (all from the now defunct Borland group).
    I’ve coded myself through three countries.

    Moving back into a loop() until some global variable is met is a big backwards step, and so I think having all of the resources you’ve obviously spent so much time preparing in one spot would be far more contusive.

  30. Pingback: arduino | vjkajla

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Advertisement