Arduino Workshop - Chapter One - Hello World Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ก.พ. 2017
  • The full Arduino Workshop in step-by-step format can be found here core-electronics.com.au/tutor...
    In the final section of this chapter, we'll talk through using the Arduino IDE to upload your first program to your Arduino.
    We're official retailers for Arduino in Australia - powered by makers, for makers! core-electronics.com.au/ardui...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 43

  • @grahamevans5304
    @grahamevans5304 3 ปีที่แล้ว +6

    Chapter one, wonderful I’m so indebted to guys like yourself who help the newbies and not so newbies, and in advance I’ll thank you.
    Unfortunately reading through some unhelpful comments here would discourage me from ever posting a help request.

    • @Core-Electronics
      @Core-Electronics  3 ปีที่แล้ว

      We are glad it was helpful. To get the best support from our team, it's best to post any questions or issues to our forum - it's a space built by makers for makers: forum.core-electronics.com.au/

  • @alvinraines3273
    @alvinraines3273 3 ปีที่แล้ว

    I do not see arduino/gemuino uno as an option, therefore I cannot choose the port I am using. What am I doing wrong?

  • @apiyopao4586
    @apiyopao4586 3 ปีที่แล้ว

    Thankyou so so much 🤗🤗
    This workshop videos are going to be very useful👌👍
    just tried doing this hello world experiment today but am a bit confused cos this happened
    1stly when selecting the port 3 options popped up which were COM3, COM4 and COM 5 arduino
    I selected the last option i.e.,
    COM5 Arduino
    However, when to use the other two ports then and also after uploading my program I didn't see white light glow as a success message and (actually I couldn't clearly see the white light glow in your video too) in fact I saw orange light glow with mine so thought may be an error occured but no error message popped up on the display and the led blinked as expected maintaining a delay of half a second.
    Then I changed the delay time to 1sec,2 sec, 5 sec and the led blinked as expected, perfectly.
    Also my Arduino has funduino uno written on it instead of Arduino uno is it any different from Arduino uno
    So summing up my case did I do it right and was my experiment successful??

    • @almnm5920
      @almnm5920 2 ปีที่แล้ว

      You only need to use the port that has arduino next to it, as that's the one that has the device plugged in. There's no need to worry about the other ones.

  • @Dboygang
    @Dboygang ปีที่แล้ว

    Why is it called “void setup?”

  • @adamaneomar7713
    @adamaneomar7713 3 ปีที่แล้ว

    hello sir, why you choose pin 13 and no another

    • @apti_master
      @apti_master 3 ปีที่แล้ว

      You can choose anything as ur wish

    • @ukewala
      @ukewala 3 ปีที่แล้ว +1

      Pin 13 is attached with the onboard led. So for simplicity, he chose pin 13.

  • @zok_6619
    @zok_6619 2 ปีที่แล้ว

    That „when it’s hoigh“ is one of the most British things I’ve ever heard

    • @Core-Electronics
      @Core-Electronics  2 ปีที่แล้ว

      Haha, we're from Australia 🦘, but close enough.

  • @Dboygang
    @Dboygang ปีที่แล้ว

    Hello, I would like to know why almost everything has the word “void”

    • @shaw7598
      @shaw7598 26 วันที่ผ่านมา

      because the function doesn't return a value

  • @Hello_there_obi
    @Hello_there_obi 3 ปีที่แล้ว

    I thought the hello world tutorial was to get the words "hello world" to print on your serial monitor. Then you can do it with a loop and the with a delay in the loop.
    Am I missing something here?

    • @dariusddixon9842
      @dariusddixon9842 3 ปีที่แล้ว

      If you want "Hello World" to display, you have to include 'Serial.begin(9600); ' in the void setup and 'Serial.print("Hello World"); ' in the void loop. It will display in the Serial monitor.

    • @Hello_there_obi
      @Hello_there_obi 3 ปีที่แล้ว +1

      @@dariusddixon9842 cheers! I know though. I was just confused at what this guys thinks is the hello world tutorial. I think he’s wrong.

    • @dariusddixon9842
      @dariusddixon9842 3 ปีที่แล้ว

      @@Hello_there_obi okie ;)

    • @Hello_there_obi
      @Hello_there_obi 3 ปีที่แล้ว +1

      @@dariusddixon9842 you’re right btw hahaha

    • @dariusddixon9842
      @dariusddixon9842 3 ปีที่แล้ว

      @@Hello_there_obi did you try it?

  • @SemlerPDX
    @SemlerPDX 5 ปีที่แล้ว +2

    This is SO weird -- I just got my (brand new) Uno v3, decided to follow your instructions, I connected it for the first time to the computer, it powers up and the led is blinking. Literally at the same rate in your "hello world" example. I uploaded BareMinimum from the examples just to verify, and then uploaded your led-demo-blink that I copied from your video, and of course, back to the same behavior as when I first took it out of the box and plugged it in. This is my first go at Arduino - do they come with this example pre-loaded? Is there a way to read and decompile whatever is already on an Uno? Or is that not possible once compiled and uploaded? So odd... ;) Thanks for the tutorial series!!

  • @michealmyers4515
    @michealmyers4515 3 ปีที่แล้ว +1

    Hello World is the blinking LED of programming dammit
    Not the reverse!

  • @Samuelplayspiano289
    @Samuelplayspiano289 7 หลายเดือนก่อน

    it wont say hello world it is a saying of an electronic

  • @michaellovitt8497
    @michaellovitt8497 2 ปีที่แล้ว

    This was quite literally not the hello world program

  • @ChickenPermissionOG
    @ChickenPermissionOG 4 ปีที่แล้ว +2

    This is not hello world

    • @SemlerPDX
      @SemlerPDX 4 ปีที่แล้ว +9

      Um... yes it is. Do you know what a 'hello world' is? It's a 'first step program' in a given language. This device does not have an output (unless you count the dev monitor), therefore the equivalent 'hello world' for Arduino is to make a light blink. The very next step of any 'hello world' is to modify it to be different than the words, 'hello world', and with this Arduino version, that would involve you changing the blink rate. Did you expect to have it blink out 'hello world' in morse code? Your incredulity is irrelevant - when you're new to something or don't understand something, it's best to just state that rather than taking a firm stance on the position of "don't confuse me with the facts, I've already made up my mind".
      Best wishes and good luck with your Arduino!

    • @ChickenPermissionOG
      @ChickenPermissionOG 4 ปีที่แล้ว

      @@SemlerPDX I'm aware of what hello world is and this isn't it. incredulity did you just learn a new big word to make your self appear like a big shot?

    • @SemlerPDX
      @SemlerPDX 4 ปีที่แล้ว +5

      @@ChickenPermissionOG No, that's a pretty common word used to describe the tone and attitude behind your uneducated protest that this is not a 'hello world'. Glad you had the chance to learn a new word, son. Now maybe you can learn that just because you say, "This is not hello world", does not make that a fact. Presenting your personal opinions as a fact (as if it is upheld by others) is pretty weak sauce. But I'm sure you have some reply full of apathy ready to fire off, while the rest of us are enjoying our Arduino projects and passing this video along to our friends who are just getting started. Despite your protests, this popular video will just go on getting another ten thousand views and helping new Arduino users, and there is not a damn thing you can do about it. Basically, I'm saying your incorrect assumption and personal opinion is irrelevant to the fact that this is a 'hello world' tutorial for Arduino that has been viewed by over 22 thousand people, and will keep helping people long after you've gotten bored of showing the world how ignorant you are of relative terminology in the English Language in these TH-cam comments. Have a good life, kiddo!

    • @ChickenPermissionOG
      @ChickenPermissionOG 4 ปีที่แล้ว

      @@SemlerPDX Bull it is not a common word at all. A blinking LED is not hello world. Hello world is displayed or printed with Hello world.

    • @SemlerPDX
      @SemlerPDX 4 ปีที่แล้ว +7

      ​@@ChickenPermissionOG So you're just an obstinate child, then? Listen here, son: Just because you're triggered at someone correcting you in some YT comments doesn't make you right. No one cares that you don't understand words, that you don't understand relative terminology or the application of it, that you deny simple facts such as the correct label of this sketch as THE "hello world" for Arduino, and that you think everyone ELSE has the problem. Yea, you're being incredulous, you'll learn plenty of these "big new" descriptors once you've lived longer than two decades, and honestly nobody cares that you don't understand that this is a 'hello world' sketch for Ardunio. Only in your mind does such a specific and restrictive definition apply. In the world of programming, believe it or not, we deal with devices which do not have outputs or displays, sorry to burst your bubble of "everything has a display/output", but if you cannot understand that such devices rightly call their entry level tutorial sketch a 'hello world', let me remind you that nobody cares about your opinion. You are clearly a child, and this is why folks could care less about your foolish assumptions. You can flop through your life as an ignorant mong all you want, doesn't make the foolish things you say correct. Grow the hell up, kid.

  • @kasiditruangrit1522
    @kasiditruangrit1522 ปีที่แล้ว

    #include ;
    LiquidCrystal_I2C lcd(0x27,16,2);
    int analogX;
    #include // add servo library
    Servo myservo; // create servo object to control a servo
    int potpin = 0; // analog pin used to connect the potentiometer
    int val; // variable to read the value from the analog pin
    void setup(){
    lcd.init();
    pinMode(A0,INPUT);
    pinMode(3,OUTPUT);
    lcd.backlight();
    myservo.attach(2); // attaches the servo on pin 9 to the servo object
    }
    void loop(){
    lcd.setCursor(1,0);
    lcd.print("Hello, world");
    lcd.setCursor(1,1);
    analogX = analogRead(A0);
    lcd.print(analogX);
    lcd.print(" ");
    analogWrite(3,analogX);
    val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
    val = map(val, 0, 1023, 0, 90); // scale it to use it with the servo (value between 0 and 180)
    myservo.write(val); // sets the servo position according to the scaled value
    delay(15); // waits for the servo to get there
    }