Arduino Uno INFANT. I need a good tutorial

Will someone point me to a tutorial for the BASICS of Arduino? The internet is flooded with tutorials, but the water just keep getting muddier. Thank you in advance.

I have questions like...

Where exactly do I paste the code? Here is what the window looks like. The arrows are my options.

This is a section for tutorials, not for questions.

Please use the flag icon below to attract the attention of a moderator and ask them to move it for you.

The picture literally tells you where to put your code.

Looking for the flag icon. If I find it I will ask to move this to the appropriate location.

Well, there's a heart, a chain...

Welcome.
Great question! Your 1st question and you have already run afoul of the "system police" ... Do not fret, I a senior member and it happens to me.

Arduino was conceived to be easy to learn and flexible to implement but has become rather complicated through evolution and 3rd party hardware and software. To begin, you need to address what do you want to learn; example: digital electronics, programming, data gathering using sensors, games, of just fooling around with LEDs, motors, robotics, and so on. So, let say you want to do a bit of it all!

Before you start using the IDE software to build your own programs (your screenshot is the default 'new' sketch template) start by looking over the built-in examples:

Anything stir your interest? If so, you can bring up the example and Google to find info concentrated in that area, including YouTube videos. If I start with "Basics" I see:
image

As I have nothing but the Arduino board, I will select "Blink" and I get


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
  • To make the example work, I must connect the Arduino by USB to the PC,
  • Select the hardware port
  • And select the board type.

Best way to get comfortable at this point is with a Beginner video:

https://youtu.be/dnPPoetX0uw

Take your time, if you get stuck, walk away, review the documentation or video, and try again.

Good luck,

Ray

If you now feel adventurous, try the code below to blink and count to the built-into IDE serial-terminal. You must set the IDE to the correct serial port (Tools, Port) before opening the serial console:
Icon in upper-right corner of IDE
image


int n = 0;

void setup() {                
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(13, OUTPUT);
  Serial.begin(9600);
  Serial.println("Blink LED & count Demo");
}

void loop() {
  digitalWrite(13, HIGH);   // set the LED on
  delay(500);              // wait for 0.5 seconds
  digitalWrite(13, LOW);    // set the LED off
  Serial.print("Loop #: ");
  n++;
  Serial.println(n);
  delay(500);              // wait 0.5 seconds
}

Thank you mrburnette for kindly responding to my question with a more than helpful response. I honestly do apologize for posting my little issue in the wrong area. I am grateful for this community and the ability to learn from others.

And I still do not see a flag anywhere. I see a solution box, a heart, a chain, a bookmark, and a reply button. If someone would send me a screenshot of a flag I would appreciate it so I can "attract the attention of a moderator and ask them to move" my offensive post to the correct area.

In case you hadn't noticed, it's already been moved.

Your post isn't "offensive", simply in the wrong place.

The section where it was originally even has a couple of pinned posts requesting that you don't post questions (I wrote them), and I'm a little surprised you didnt see them.

Second from left ... you may not be able to see it until after probation posts.

Post was not offensive.
But, this forum is user-moderated and little Arduino corporate involvement. As a worldwide forum, post volume is significant, so when posting happens to cause a hiccup, helpful responses sometime turn out terse. It is a normal forum thing, so build up a non-sensitive attitude and forge forward.

Ray

No, TheMemberFormerlyKnownAsAWOL, I didn't see your posts. I just jumped right in and asked a question. I should have taken my time and looked around. I can see now this site has an amazing amount of great knowledge. I just got lazy I guess and jumped in feet first. I appreciate all of you and I'm glad to be here. I have pretty thick skin. A little jabbing never hurt anybody. I guess I was "that guy" today. And no I don't have a flag icon yet. Maybe one day I will get one.

Take care fellas (or ladies).

In answer to the original question, 'here' means between the pair of curly braces

setup() {
your code goes here
}

loop() {
and here
}

The symbol // merely signifies a comment, that is, non-code explanatory information for humans.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.