Arduino Programming Syntax

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • SparkFun RedBoard: www.sparkfun.c...
    Knowing how to properly format your code is essential to having a program compile and run correctly. The set of rules defining how to format, spell, and structure your code is known as "syntax," and it's what we cover in this episode of Adventures in Science as we continue talking about computer science. We look at the history of the C and C++ languages and how to apply syntax rules to an Arduino program.

Комментарии • 80

  • @superpayaseria
    @superpayaseria 3 года назад +9

    You accomplished more in this video than 1,000 so called pro's do in their entire series trust me. That's all it takes. Simply a good teacher. Someone who know's what it's going to take to make someone understand perfectly in a quick and effective way. Keep it short. Keep it very very thorough, and very very easy. Simple littel baby steps that actually are super valuable. Thank u for this vid.

  • @pauln1557
    @pauln1557 2 года назад +2

    A first class video, no long, pointless intro, no excited arm waving or other BS!
    Just, clearly presented concise information.
    I spent 30 minutes replaying each 'nugget' of info while making a page full of notes.
    Many thanks Paul

  • @Godshole
    @Godshole 3 года назад +1

    Oh boy. Mid 50's and I have to start again. As a 13 year old my Dad's interest in computing got me familiar with BASIC, (ZX81) and I could write the code in BASIC for what I want to do with my Arduino in minutes. I still thank my Dad in my heart for all he did. This though, new territory..... Very well explained, thank you. Now, onto the next lesson....

  • @scragglewaggle4109
    @scragglewaggle4109 5 лет назад +8

    Okay so far so good. This seems like something I can wrap my head around.

  • @johnf4388
    @johnf4388 4 года назад +6

    Although extremely basic, it was exactly what i needed to understand the environment ill be working in. Thank you

    • @maskedmarvyl4774
      @maskedmarvyl4774 4 года назад

      Trust me, this was much better than other instructors who assume you already know all the concepts and zip through the code, without explaining what they're doing.

    • @luhgrnt
      @luhgrnt 2 года назад

      nobody cares Tesla 5869

    • @johnf4388
      @johnf4388 2 года назад

      @@luhgrnt 'nobody cares' for you. Is that why you're like that?

  • @tomwilliam5118
    @tomwilliam5118 6 лет назад +1

    I love these videos you speak slowly clearly and when you're showing your examples you do it in a very orderly fashion thank you

    • @ShawnHymel
      @ShawnHymel 6 лет назад

      Thank you! I'm glad you like them.

  • @j.a.harvilla2819
    @j.a.harvilla2819 3 года назад +3

    Excellent video, thank you so much for making this clear and concise!

  • @richard7crowley
    @richard7crowley 7 лет назад

    Nicely organized, written, delivered and produced. Keep up the good work.

  • @helpinghandalmere1
    @helpinghandalmere1 7 лет назад +3

    Yes please make a complete course for programming

  • @vernonleeper7788
    @vernonleeper7788 5 лет назад +1

    Finally something I can kinda grasp. Great video and thanks clearing up some things for me.
    Just got my first uno and I'm still not getting it. I can program ladder logic on 2 different platforms but this......hurts my head .☺

  • @anandg825
    @anandg825 Год назад

    Nice and helpfull. Please publish more articles as arduino course.

  • @kiranSharma-bx4xk
    @kiranSharma-bx4xk 5 лет назад +6

    such a nice way of teaching , i become a fan of this channel now

  • @tpobrienjr
    @tpobrienjr 7 лет назад

    Very well done. I will recommend this video as a good starting point.

    • @ShawnHymel
      @ShawnHymel 7 лет назад

      Thomas O'Brien Thank you, and I appreciate the recommendations!

  • @travnat1
    @travnat1 6 лет назад +7

    This is cool stuff. I am just starting to learn this but I'm not really sure why. I don't really have a goal in mind.

    • @simplyInvent
      @simplyInvent 6 лет назад +2

      That's Passion. It's unconditional just like love

    • @flavoredbean7152
      @flavoredbean7152 4 года назад

      @@simplyInvent damn that was cute

  • @sayantanmaiti2513
    @sayantanmaiti2513 7 лет назад

    Awesome video for beginners, we will look forward for more, nice work

  • @houdaaloui3882
    @houdaaloui3882 2 года назад

    Excellent video thank you, so much

  • @mikelee1906
    @mikelee1906 5 лет назад +2

    What are all the Programmers for on the Tools drop down men?. Second from the bottom Ex : Atmel EDBG, AVR ISP etc. I have watched about 40 videos and no one ever mentions which one(s) to use and why.

  • @martinmunene2556
    @martinmunene2556 2 года назад

    Well explained ....thanks ......

  • @frankvassallo2740
    @frankvassallo2740 2 года назад

    Well explained. Great video thank you

  • @magneticking4339
    @magneticking4339 3 года назад +1

    0:04 Actually, that is incorrect. The reality is that when you write a program in Arduino, you are actually using a C++ language with a few additional libraries compiled in that give it its Arduino taste. Remember that C++ is actually a superset of the C language... Additionally, it is possible to install the entire Arduino programming environment and do the entire building with just the tools that are used in the background: GNU GCC compiler and GNU Make for building.

  • @n.s.shankar
    @n.s.shankar 4 года назад

    Awesome explaimation

  • @Fleurlean4
    @Fleurlean4 7 лет назад

    Thank you for not showing the IDE as a full screen where the lines are tiny and hard to read in the video. It's better to have some black bars on the side than having all the screen occupied by the window and not being able to follow along.

  • @jhoserob
    @jhoserob 7 лет назад

    Now I am more motivated to learn more about arduino and programming Thank you #SparkFun Electronics #Shawn Hymel
    You made a very funny and easy way in the learn process.

  • @curioushabit78
    @curioushabit78 6 лет назад +2

    Your video satisfied me

  • @hyperxplays
    @hyperxplays 5 лет назад

    Programming In Ardunio Shall Be Alot Easier For Me Now Because I Learnt The Syntax C

  • @cultofsogga5863
    @cultofsogga5863 6 лет назад

    Huge and powerful notebook for loading sketches to arduino uno :))))

    • @ShawnHymel
      @ShawnHymel 6 лет назад

      D3n N3sm And editing videos :) And maybe some gaming here and there... :P

  • @lintangwisesa
    @lintangwisesa 7 лет назад +1

    nice explanation, Sir!

  • @namanakaskippy
    @namanakaskippy 4 года назад

    So... Defination, Void Setup {Stuff}, Void Loop {What Stuff does } Right ?

  • @madhukeshnp
    @madhukeshnp 7 лет назад

    sparkfun.... videos are coming great. keep it coming.
    and if u could... please make a video on servos.. like positions and reset to get back to the home position

    • @shawnhymel7647
      @shawnhymel7647 7 лет назад

      Thanks, and noted! Time permitting, I would love to get around to doing hardware-specific tutorials (including one on servos). For now, we have written tutorials that might help: learn.sparkfun.com/tutorials/hobby-servo-tutorial

  • @youking6530
    @youking6530 3 года назад

    Hi, please reply to my question
    I am a beginer to audiro and what coding language should i learn to handle aurdino??

  • @tr-GoodVibes
    @tr-GoodVibes 6 лет назад

    Well explained for beginners. Keep it huge up 👍🏼👍🏼👍🏼.

    • @ShawnHymel
      @ShawnHymel 6 лет назад

      Thanks. Glad you liked it!

  • @elmexikanosai
    @elmexikanosai 6 лет назад +1

    I'm having trouble with one of my projects. if I post it; will the doctor explain it to me???

    • @ShawnHymel
      @ShawnHymel 6 лет назад +1

      I'll happily take a look if you post your code. I can't promise I'll be able to fix it :) Please post your whole code and any error messages you might be receiving.

  • @vineetnegiroxwang
    @vineetnegiroxwang 7 лет назад

    loved it,are you going to cover Arduino tutorials now on,coz I need it for making weather project

  • @georgeglennon6623
    @georgeglennon6623 3 года назад

    how do you see what code it on the ardunio if you have more than one ardunio??

  • @rosivangelova3543
    @rosivangelova3543 7 лет назад +1

    Thank you

  • @quazzi5345
    @quazzi5345 7 лет назад

    Thank you so much🙏

  • @rhl1800
    @rhl1800 7 лет назад

    Thanks. Great app!

  • @sukhvirguide2560
    @sukhvirguide2560 4 года назад

    Wait how do i press those symbols to make a comment

  • @komalas797
    @komalas797 3 года назад

    Can't able to see the code

  • @rodneyrash
    @rodneyrash 5 лет назад

    This was an amazing instructional lesson thank you

  • @yalemzewdytayew7696
    @yalemzewdytayew7696 6 лет назад

    thanks a mollion for your best video. please send me the code which integrates IR sensor and solenoid vale for the purpose of automatic pneumatic brake system.

  • @جساس-ه6ح
    @جساس-ه6ح 6 лет назад

    That is nice thanks

  • @diederikvankleef3816
    @diederikvankleef3816 4 года назад

    Lol great video but what i want to know is, who is your responsible for your outfit in the video

  • @lasersbee
    @lasersbee 7 лет назад +7

    1:09 Nice jump over BASIC.... as if it never existed...

    • @ShawnHymel
      @ShawnHymel 7 лет назад +10

      lasersbee Not to downplay the importance of BASIC, but there were dozens of languages created in the 1960s (en.m.wikipedia.org/wiki/Timeline_of_programming_languages). I wanted to show the progression from low level to high level and then the Arduino target language (C/C++). If I do a "History of Programming Languages" video at some point, I'm sure BASIC will be in there.

    • @lasersbee
      @lasersbee 7 лет назад +2

      Thanks for the reply and link.

  • @siddheshwarbhujabal1173
    @siddheshwarbhujabal1173 7 лет назад

    thanks sir

  • @MissleadingPromo
    @MissleadingPromo 6 лет назад

    Can i ask you a question? Is there any program that can turn arduino language into matlab language?

    • @ShawnHymel
      @ShawnHymel 6 лет назад +1

      Not that I'm aware of. You can compile C/C++ code (probably not for Arduino, though) and call it from MATLAB (www.mathworks.com/solutions/matlab-and-c.html) or you can run an Arduino from MATLAB (ruclips.net/video/sBfKfd-vIE0/видео.html).

    • @MissleadingPromo
      @MissleadingPromo 6 лет назад

      so if i have the program(code) for arduino and i want to turn the same code into matlab code i cant? i want to make something with arduino and matlab and i already have the arduino code and i wanted a program that can make the arduino code into matlab.Thanks for your time

    • @ShawnHymel
      @ShawnHymel 6 лет назад +1

      The problem is that there are certain functions, such as pinMode() and digitalWrite(), that are unique to microcontrollers that Arduino compiles code for. Even if there was an interpreter that could give you MATLAB code from Arduino, many of those microcontroller-only functions would not be defined for your computer running MATLAB. Even if you write C/C++ without the Arduino-only functions, I do not believe there are any interpreters to translate it to MATLAB.
      Short answer: no, you cannot turn Arduino into MATLAB code. If you write C/C++, then you can generate a MEX file that can be called from MATLAB. Not quite the same, but it might be worth looking into: stackoverflow.com/questions/11495996/c-c-to-matlab-compiler-converter

    • @MissleadingPromo
      @MissleadingPromo 6 лет назад

      thank you!!

  • @petermugendi6527
    @petermugendi6527 5 лет назад

    i want that laptop

  • @wadisanaa
    @wadisanaa 4 года назад

    arduino syntax begins at 1:45 . you welcome

  • @CrazyHHO19
    @CrazyHHO19 6 лет назад +2

    need someone to write arduino program for me am beginner.i have analog input 0.64v which need to convert to 4 Hz at 10% duty cycle output and voltage then gradually increasing in increments to 3.84v which is 4Hz at 90% duty cycle.frequency stay 4Hz all the time only duty cycle need to be increasing and decreasing with increasing/decreasing voltage.am sure there are some clever lads who can write this in 5 min.any help most appreciated thank you.

  • @charliebrown5611
    @charliebrown5611 Год назад

    Wow, a Pocket Protector. LOL

  • @aneasyliving
    @aneasyliving 7 лет назад +2

    I know binary!!

    • @aneasyliving
      @aneasyliving 7 лет назад

      1111 0100
      1111 0100 0101 010?

    • @abstract2121
      @abstract2121 7 лет назад

      Channel Caden I know I'm late, but app binary code has to start with 0 and have more characters

    • @travnat1
      @travnat1 6 лет назад

      1+1 = 0 carry the 1. That's all I remember.

    • @HelloMyNamesNino
      @HelloMyNamesNino 6 лет назад

      I know it 10

    • @extrem2497
      @extrem2497 5 лет назад

      01001000 01100101 01101100 01101100 01101111

  • @ssycooffwhite3893
    @ssycooffwhite3893 Год назад +1

    bet

  • @LunarStrike
    @LunarStrike 3 года назад

    just watched 6 minutes of this and retained no information at all maybe i need something more simplified lol.

  • @renderuthis
    @renderuthis 2 года назад

    I hate software developers. they are like women always wanting to to move and change the furniture.