Arduino Programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

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

  • @derekbanas
    @derekbanas  5 ปีที่แล้ว +97

    Learn in One Videos for Every Programming Language
    Subscribe to Bookmark them: bit.ly/2FWQZTx
    C++ : th-cam.com/video/Rub-JsjMhWY/w-d-xo.html
    Python : th-cam.com/video/N4mEzFDjqtA/w-d-xo.html
    Java : th-cam.com/video/n-xAqcBCws4/w-d-xo.html
    PHP : th-cam.com/video/7TF00hJI78Y/w-d-xo.html
    MySQL : th-cam.com/video/yPu6qV5byu4/w-d-xo.html
    JavaScript : th-cam.com/video/fju9ii8YsGs/w-d-xo.html
    C# : th-cam.com/video/lisiwUZJXqQ/w-d-xo.html
    HTML5 : th-cam.com/video/kDyJN7qQETA/w-d-xo.html
    CSS3 : th-cam.com/video/CUxH_rWSI1k/w-d-xo.html
    JQuery : th-cam.com/video/BWXggB-T1jQ/w-d-xo.html
    TypeScript : th-cam.com/video/-PR_XqW9JJU/w-d-xo.html
    ECMAScript : th-cam.com/video/Jakoi0G8lBg/w-d-xo.html
    Swift : th-cam.com/video/dKaojOZ-az8/w-d-xo.html
    R : th-cam.com/video/s3FozVfd7q4/w-d-xo.html
    Haskell : th-cam.com/video/02_H3LjqMr8/w-d-xo.html
    Handlebars : th-cam.com/video/4HuAnM6b2d8/w-d-xo.html
    Bootstrap : th-cam.com/video/gqOEoUR5RHg/w-d-xo.html
    Rust : th-cam.com/video/U1EFgCNLDB8/w-d-xo.html
    Matlab : th-cam.com/video/NSSTkkKRabI/w-d-xo.html
    Arduino : th-cam.com/video/QO_Jlz1qpDw/w-d-xo.html
    Crystal : th-cam.com/video/DxFP-Wjqtsc/w-d-xo.html
    Emacs : th-cam.com/video/Iagbv974GlQ/w-d-xo.html
    Clojure : th-cam.com/video/ciGyHkDuPAE/w-d-xo.html
    Shell : th-cam.com/video/hwrnmQumtPw/w-d-xo.html
    Perl : th-cam.com/video/WEghIXs8F6c/w-d-xo.html
    Perl6 : th-cam.com/video/l0zPwhgWTgM/w-d-xo.html
    Elixir : th-cam.com/video/pBNOavRoNL0/w-d-xo.html
    D : th-cam.com/video/rwZFTnf9bDU/w-d-xo.html
    Fortran : th-cam.com/video/__2UgFNYgf8/w-d-xo.html
    LaTeX : th-cam.com/video/VhmkLrOjLsw/w-d-xo.html
    F# : th-cam.com/video/c7eNDJN758U/w-d-xo.html
    Kotlin : th-cam.com/video/H_oGi8uuDpA/w-d-xo.html
    Erlang : th-cam.com/video/IEhwc2q1zG4/w-d-xo.html
    Groovy : th-cam.com/video/B98jc8hdu9g/w-d-xo.html
    Scala : th-cam.com/video/DzFt0YkZo8M/w-d-xo.html
    Lua : th-cam.com/video/iMacxZQMPXs/w-d-xo.html
    Ruby : th-cam.com/video/Dji9ALCgfpM/w-d-xo.html
    Go : th-cam.com/video/CF9S4QZuV30/w-d-xo.html
    Objective C : th-cam.com/video/5esQqZIJ83g/w-d-xo.html
    Prolog : th-cam.com/video/SykxWpFwMGs/w-d-xo.html
    LISP : th-cam.com/video/ymSq4wHrqyU/w-d-xo.html
    Express : th-cam.com/video/xDCKcNBFsuI/w-d-xo.html
    Jade : th-cam.com/video/l5AXcXAP4r8/w-d-xo.html
    Sass : th-cam.com/video/wz3kElLbEHE/w-d-xo.html

    • @priti9016
      @priti9016 5 ปีที่แล้ว +15

      the amount of languages you know is god like

    • @iyxan23
      @iyxan23 5 ปีที่แล้ว +1

      *MY GOD!*

    • @milutinrakovic5498
      @milutinrakovic5498 5 ปีที่แล้ว

      I have a problem with this my laptop says "error compiling for board arduino/genuino uno" how can I fix it.

    • @bloxcodes6576
      @bloxcodes6576 4 ปีที่แล้ว +1

      *Fast question: this is C# or C++? Becouse this is almost same with C++*

    • @3xiit3d
      @3xiit3d 4 ปีที่แล้ว +3

      @@bloxcodes6576 C

  • @juancarrion3607
    @juancarrion3607 5 ปีที่แล้ว +314

    Disclaimer: this video is good for those who have some C or C++ coding background, as the way that he displays the information already assumes that you know what the effects of the code are.

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

      Almost everything in the video is basic C/C++. It was a pretty good refresher for me seeing as I want to learn Arduino and those are my strongest programming languages on a computer. But yeah, it helps to know one of those or at least a similar language.

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

      I know c#

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

      Yeah, I've been experimenting with Python for the last couple years. I took a course on C++ about 12 years ago, and I'm getting flashbacks, but I really don't recall enough to be able to follow this at speed. It is a really good video though. I did an arduino tut already that accomplished (essentially) the same end goal, but through different means. This is some fun stuff!

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

      @@Graym672 This may be a weird way to do this, but I cant find an answer anywhere. I got the problem that when I mistype something so for example const it ledpin = 0; and I want to insert that missing "n", its not actually inserting an "n" its overwriting the "i", so I always have to write the whole thing new. Is there some way to get around that and actually insert the stuff I want to insert?

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

      @@grimanium I dont remember exactly what it is but I think that's a keyboard type setting. like alt + something or other, i'm sorry this isn't more helpful but maybe you could look it up off that? I remember having that issue and then hitting some kind of keybind combination and it stopping doing that

  • @KNO3Arts
    @KNO3Arts 5 ปีที่แล้ว +277

    It starts easy and useful. But down the road, You keep on changing codes continuously even before you show the effects on the righthand screen. That makes it to hard to follow.

    • @pqpq1905
      @pqpq1905 5 ปีที่แล้ว +7

      well, to be fair he didn't say that "this is for beginners"

    • @ramraja7796
      @ramraja7796 5 ปีที่แล้ว +6

      KN03Arts Try Paul McWhoter video Tutorial 1 to 16 , he cover Arduino and Programming at very study pace.

    • @Flowtester1
      @Flowtester1 4 ปีที่แล้ว +10

      @@pqpq1905 yeah he didn't say for advanced programmers either to be fair.

    • @StreuB1
      @StreuB1 4 ปีที่แล้ว +3

      @@pqpq1905 Saying Arduino is essentially saying beginner. There are no adept programmers out there using Arduinos for industry or actual work. They are for hobbyists with the odd [mis]use in industrial applications.

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

      @@StreuB1 I disagree , the use of microprocessor and microcontrollers are used widely in industry. I worked in the manufacturing industry for 30 years, working side by by side with engineers designing, building and testing PLC,s and microprocessor controlled safety equipment . I agree that Arduinos' themselves are not used specifically but the idea behind their function and design are the same processes that are used.

  • @DesertVox
    @DesertVox 5 ปีที่แล้ว +400

    This is more like a revision of Arduino programming for those who have ALREADY learned it beforehand.

    • @fredriko.zachrisson9711
      @fredriko.zachrisson9711 4 ปีที่แล้ว +14

      I read Simon Monks Programmering Arduino before i watched this video, so i were more firmilar with the terms and all that, but i agree with you that it wasnt much help before that

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

      True I forgot a lot of stuff this video helped a lot it does help if you already know a programming language e.g Java or C

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

      just what im searching for

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

      well it didn't say its for beginners

    • @damarcusl02
      @damarcusl02 3 ปีที่แล้ว +2

      i think you should rather have a little bit of general programming background to start with this. I recommend starting with cs50x.

  • @orcasea59
    @orcasea59 5 ปีที่แล้ว +364

    I'm sorry, but there is a big difference between doing something while just verbally describing what you are doing, and explaining what something is, why you are changing it and what effect it will have on the end result. After Line 16 you abandoned the latter for the former.
    This is like how some teachers teach math: "Memorize the formula, plug the numbers in to the correct places and here is the result. Everyone got that?" Three math whizzes raise their hand. "Good! Let's move on!" Leaving everyone else behind, when if they had actually been taught then they, too, would understand, as well.
    Viewer's shouldn't feel 'dumb' if this moves too fast, or you're just not 'getting it' because this isn't teaching; this is just showing, and there's a big difference.

    • @lswachkkdk5959
      @lswachkkdk5959 5 ปีที่แล้ว +28

      I disagree. The best part is how fast he moves. I watched his ruby video in one sitting, because I had spent several years programming ruby, and just needed a refresher, but when I did the haskell video, it took me maybe 10-15 times the length of the video to get through it. Constantly rewinding and checking the documentation for haskell.
      If there is a point where you get lost, practice everything that came before it, and then come back.

    • @uberboat4512
      @uberboat4512 5 ปีที่แล้ว +12

      Yeah I didn't understand why he was doing the count direction after he explained the delays

    • @AdamRW240
      @AdamRW240 5 ปีที่แล้ว +7

      Exactly. There is no actual description of the functions or what everything means. When he does the first if he doesn't even describe what he typed to do it.

    • @LeoH3L1
      @LeoH3L1 5 ปีที่แล้ว +9

      @@lswachkkdk5959 This isn't aimed at you though.

    • @12uWaterPolo
      @12uWaterPolo 5 ปีที่แล้ว +12

      @@LeoH3L1 I've never touched an Arduino but I do know various C derivative languages (C++, C#, Java, etc) and this video was perfect because it quickly runs through the subset of C/C++ instructions the Arduino compiler will accept. This video is aimed at those who need familiarization and it does a great job.

  • @f.a3202
    @f.a3202 5 ปีที่แล้ว +789

    you forgot something.
    we are beginners!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว +55

      Sorry about that. I tend to make tutorials for people that already know another language. I have a beginners tutorial if you are interested th-cam.com/video/nwjAHQERL08/w-d-xo.html

    • @paulk.bowden7134
      @paulk.bowden7134 5 ปีที่แล้ว +17

      Fiorii Alaia this is at beginners level😊

    • @omaxshendy5732
      @omaxshendy5732 5 ปีที่แล้ว +24

      yeah ,for a programmer or a (cs ) student ,its very very very basic to death XD

    • @gamestv4875
      @gamestv4875 5 ปีที่แล้ว +24

      You remembered something...
      To tell Derek that we are beginners.

    • @StarDoesntUpload
      @StarDoesntUpload 5 ปีที่แล้ว +16

      @@paulk.bowden7134
      No its not. You really already have to know another language first to follow along with these, making them very useful for programmers wanting to pick up new programming languages, but not so good for beginners.

  • @ORagnar
    @ORagnar 3 ปีที่แล้ว +2

    I don't know if anyone has pointed this out, but at about 51:20 of the video to get the second index of the array you should type the following:
    Serial.println(*(primes+1));
    as opposed to
    Serial.println(*primes + 1);
    It just so happens that both will give you the result of 3!
    By the way, very good video!

  • @HyperionBadger
    @HyperionBadger 5 ปีที่แล้ว +21

    You don't explain the functions for some reason.

  • @BryceDixonDev
    @BryceDixonDev 5 ปีที่แล้ว +33

    > Did you catch the bug? I left that on purpose to test you.
    Yeah, sure. That's why you had to cut and then do a transition to another take. Because you were testing the viewers.

  • @actorzone856
    @actorzone856 5 ปีที่แล้ว +1

    I am over 60 and just discovering Arduino as I am on a different mountain with my knowledge base, so I have been looking at how electronics drive and operate machines, i got a lot out of your tutorial even though i don't know what the language means but the content shows what is possible and how flexible the Arduino programming is to change finite details to suit ones needs, now i just need to learn what button to press. thanks.

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      I'm happy it helped. I have additional videos here that may help th-cam.com/video/I6jIORI7K2k/w-d-xo.html

  • @SirDonkeyShot
    @SirDonkeyShot 6 ปีที่แล้ว +1

    So here is a list with things I would like to know:
    - What do the different colors mean?
    - What’s the difference between a constant int and a bool int?
    - Does the software work from top to bottom or does it look at all the given instructions all at once?
    - Is there a list with all these different functions that you showcased?
    Btw, thank you for your help!

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

      It's read from top to bottom, left to right and the colors mean nothing, they're just so we can see that we have call upon a method I believe and a boolean is just True or False, int means integer

  • @timmay131313
    @timmay131313 5 ปีที่แล้ว +50

    This is an amazing refresher of college C programming 101!!! This is like a whole semester in one hour!! Just what I needed. loved it.

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว +1

      Thank you :) I'm happy you liked it

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

      thats exactly how I felt

  • @aerobetamax6022
    @aerobetamax6022 5 ปีที่แล้ว +1

    Good showcase of arduino programming for people that already know at least basic programming theory and another language. Not suitable for absolute beginners.
    For the beginners: read the documentation, do some follow along tutorials. When you are done with those start customizing the code, change the values and see what happens. Over maybe a few months of daily tinkering you'll start to understand. Do not expect programming to be a 50-minute endeavour. Do not expect one person to give a complete tutorial on how to program. The knowledge accumulates with every line of code you write and think about and every video you watch and try to understand.
    I bought an arduino yesterday and I understand the concepts he does in the video. My previous programming experience is GML and Python for over a year. The basic theory translates over almost every language, only synthax and structure changes. It's quite simply logic!
    Keep up and don't give up. You encounter a problem, just try it from different angles and then go go do something else for a while. Often the subconcious will figure out a solution quite spectacularly. Good luck!

  • @parthjoshi5779
    @parthjoshi5779 5 ปีที่แล้ว +14

    this is good if you already know everything and just want to check if you know everything

  • @Chupria
    @Chupria 3 ปีที่แล้ว +11

    This was like a final exam. I can't believe sprintf showed up, I kinda just learned that for fun, but boom there it is. Defenilty glad this video exists. It was perfect, fast, and yet informative. For people who already learned this and just want to quickly gauge their knowledge. If you're just starting, it takes about 2-3 months to learn all this, but it's pretty easy once you learn it and practice it at least 2-3 times a week.

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว +2

      I'm happy you found it useful. I do my best to cram as much as possible into each minute of every video I make. Only a choice few enjoy them, so thank you :)

  • @Incestbarnet1337
    @Incestbarnet1337 6 ปีที่แล้ว +95

    It goes way too fast for me

    • @OverlyCautious_
      @OverlyCautious_ 6 ปีที่แล้ว +2

      Nils Persson Me too xD

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

      Just click on the settings button and click on the Speed option. This will allow you to decrease the tempo of the video according to your requirement

    • @jacobabraham9944
      @jacobabraham9944 6 ปีที่แล้ว

      play the video more slower,

    • @f.a3202
      @f.a3202 5 ปีที่แล้ว +2

      didn't you understand?
      he is just saying that he is talking like we know all the basics . he is not teaching us first the basics for example what this means and what that means detailed and not that fast

    • @lswachkkdk5959
      @lswachkkdk5959 5 ปีที่แล้ว

      @@f.a3202 you can take an introductory programming course for that. This video condenses down weeks worth of content into a short video. You should take much more time than the length of this video if you don't already know several languages.

  • @John-wu2mn
    @John-wu2mn 3 ปีที่แล้ว +1

    When you suggest at 2:25 that you are setting up the Led Pin to be pin 13 on the Arduino board, that is a little misleading. Granted you will use this number 13 later in the code to identify which pin you are going to use on the board, but really all you're doing at line 1, is setting up a value of 13 in memory - that you may or may not use in future

  • @86abaile
    @86abaile ปีที่แล้ว

    Love that you didn't waste time showing us how to install arduino IDE. I hate that so many tutorials think we can't handle something so basic.
    I have a question though: @18:20 why did the for loop execute before the while loop if the while loop was in the setup? Sorry if this is a basic question, I'm quite new to this.

  • @gusgyovi6338
    @gusgyovi6338 2 ปีที่แล้ว +1

    Do you have a video tutorial on how to code multiple effects for RGB LEDs like the addressable led strips ws2811 ws2812 using one pin, also setup an IR remote and sound reactive option

  • @FritsvanDoorn
    @FritsvanDoorn 6 ปีที่แล้ว +7

    Hi Derek, you are a master. Hopefully I can teach you something. Some days ago I learned the other difference between ++i and i++. The first increases i by one first and than returns the new value of i. The second makes a copy of the old value of i and then it increases i with one and then it returns the old value, the copy. For a base type it is not that a biggy, but with classes it might be that the second method, the suffix ++, makes a copy of the object. When it is used in a for statement like this, the return value is not used and therefor it is deleted, it might even call the classes destructor. This is all time consuming, so it is better to use ++i (or ++ some class object) because it is faster. I think you already know this, but on the other hand I hope it is interesting. Looking forward to the evolution of this wonderful new series. Thanks!

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +2

      Thank you for the compliment :) That is an example of a great piece of knowledge that while I knew, I was never smart enough to bring up in a tutorial! Thank you for taking the time to explain it so well! I hope everyone enjoys this tutorial. I hesitated making it because my electronics tutorial was originally a big flop, but I think it will be fun.

    • @FritsvanDoorn
      @FritsvanDoorn 6 ปีที่แล้ว

      I'm sure it will be !

    • @kusumitahazra3985
      @kusumitahazra3985 6 ปีที่แล้ว

      Huh! you think he doesn't know!!!!

    • @thecombatengineer7069
      @thecombatengineer7069 6 ปีที่แล้ว

      Thanks brotha, good note. I wonder what kind of time this saves, literally. If nothing else, there isnt a replicate byte hanging around...very good to learn, thanks again

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

    At 3:35, "baud" is "bits per second", not "characters per second." A bit is a 1 or a 0, 8 bits denote 1 of 256 characters. Therefore, 9600 / 8 = 1200 (characters per second), still more than adequate for logging output from a serial device for humans debugging their code.

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

    This video was what I've been looking for. I learned VBA and have used it a bunch. That was enough for me to mostly follow what you did. I just gotta get all the different commands committed to my memory.

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

      I'm happy you liked it :)

  • @Osman-lf6fp
    @Osman-lf6fp 5 ปีที่แล้ว +2

    Important note for all:
    == Means equal
    = Defines something

  • @melconin
    @melconin 4 ปีที่แล้ว +6

    Another fantastic video. Great job! No wasted space (well...maybe the 30 seconds explaining binary :-) It's an entire semester on basic Arduino Coding in 50 minutes. As noted by many others and by Derek, this is targeted at programmers learning a new language - not the place to start if you don't already write some code.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +3

      Thank you very much for the compliment :) Yes I tend to make videos for intermediate users who want the info and don't have the time to sit through a beginners programming video.

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

    Good video. I just completed the exercises found in the arduino uno stater kit and I never really understood the coding part of the manual found in it. This made it way clearer.

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

      Thank you very much :) I'm happy I could help

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

    This is the best programming video I've ever watched. Most of them go super slow and bore me out but this one gets straight to the point! Thanks!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you for the nice compliment :) I hate slow tutorials as well

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

    I took an intro class to comp sci and you basically just covered the entire curriculum in one vid. I followed but only because i've already learned it. to anyone new, it would be impossible

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว +1

      Yes it is meant for people that have learned another language already

  • @vishnuprasad7574
    @vishnuprasad7574 5 ปีที่แล้ว

    i have IOT practical exam which consists of building a simple project(problem statemen given by external teacher ) within 3hrs in lab
    on your choice of board
    watching this will help in answering lot of VIVA and oral question
    thank you my dude

  • @ClearlyCero
    @ClearlyCero 4 ปีที่แล้ว +1

    Honestly guys, this video is about as basic as you could sensibly do. C languages are not easy and you shouldn't expect to have mastered robotics in 1 hour.
    This video is a great reference for syntax but if you are at ground zero then your best best (this is what I'm doing) is to pick up a project kit and then use this to experiment with it once you're done.

  • @steb430
    @steb430 4 ปีที่แล้ว +1

    This the best basic tutorial I seen so far, Thanks!
    I just needed to know how to lay down code, I have books that explain all the fine detail but the code they use far too function orientated and therefore unreadable unless you've studied all their functions in minute detail.

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

      Thank you for the compliment 😁

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

    man youre turorails are very useful. this is like the 3d time yt search I find one of your tutorials

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

      Thank you :) I'm happy you enjoy them

  • @Mr._Tony
    @Mr._Tony 2 ปีที่แล้ว

    The statement in line 10
    Serial.println(*primes + 1);
    doesn’t print the second prime number,,
    but instead the first prime number + 1, which also happens to be 3

  • @leyun._.00
    @leyun._.00 4 ปีที่แล้ว

    see a lot of people complaining about going too fast but I think for people who have experience of programming, just not c++, it is very useful! like for me! thanks a lot.

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

      Thank you very much :)

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

    Derek, Thank you, at first i was disappointed and frustrated by the way you explained the coding ideas involved in this simple program, but after watching a couple times I realized your teaching method really challenged me to dig in and figure it out..

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

      Thank you. Yes My approach is different from most. I try to create videos that can be paused through for deep understanding, while also acting as review tools. They aren't for everyone, but I'm happy it worked for you.

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

    It's a 3-hour video the way I watch it, and very effective. Thanks, Derek Banas!

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

      Thank you :) I'm happy it helped

  • @SuprunAlexey
    @SuprunAlexey 6 ปีที่แล้ว +57

    Wooow really nice, I think this video will be in top about adruino

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +4

      Thank you :) I hope it helps

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

      Two years later and is on the top search results

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

      u wrote adruino instead of adruino
      or is it written both ways? idk bro im bad at life

  • @yvesinformel221
    @yvesinformel221 4 ปีที่แล้ว +1

    I agree, this is not a beginner course, but a good C refresher or it could be very usefull for peoples who knows other languages.

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

    Just want to say that your videos are fantastic! I picked up Python from your videos last year and have since become a full fledged software engineer this year, though in Clojure! Also followed your Clojure tutorial early on in my career :-)

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      That is awesome! Congratulations!!! I'm very happy to have been able to help :)

  • @LegoBeto
    @LegoBeto 5 ปีที่แล้ว +1

    Great video. For those of us who have read a book about programming but don't know how to get things off the ground and could use a little bit of simplification, this video lays it all out really well. The math section is super useful!

  • @DeputatKaktus
    @DeputatKaktus 6 ปีที่แล้ว +1

    Very informative and useful.
    However, you really go through all the stuff at breakneck speed. Gently applying the brake might help. I found it very difficult to follow along at times and had to pause and rewatch individual sections several times. But then, you crammed a ton of material into that one hour.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you :) Sorry about the speed

    • @khanezflouss
      @khanezflouss 6 ปีที่แล้ว

      Use the pause button

  • @mByyurt
    @mByyurt 5 ปีที่แล้ว

    This video is best for those who have some background with some programming. I watched x2 speed and got all I need to be going on with. I think absolute beginners should seek another source which explain basic concepts more throughly.

    • @lazyh-online4839
      @lazyh-online4839 5 ปีที่แล้ว

      I think this same TH-cam has a video specifically for less experienced users too, I saw a link in his reply to another comment I think.

  • @Jonathan-ex3sl
    @Jonathan-ex3sl 4 ปีที่แล้ว +1

    I’ve had a bit of exposure to python but not C or Arduino and I found this video very helpful, thanks!!

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

    What's the difference between Arduino and scratch
    Who's the best for kids

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

    Great video, although it ended on a bit of a sour note when you said that "Basically an array, is actually a pointer".
    That's a common held misbelief. Arrays are NOT pointers!
    Say you have something like:
    #include
    #include
    int main(){
    int* array = malloc(5 * sizeof(int));
    for (size_t i = 0; i < 5; ++i){
    array[i] = i*i;
    }
    int arr[] = {1, 4, 9, 16, 25};
    size_t l_array = sizeof(array) / sizeof(array[0]);
    size_t l_arr = sizeof(arr) / sizeof(arr[0]);
    printf("l_array = %lu
    ", l_array);
    printf("l_arr = %lu
    ", l_arr);
    return EXIT_SUCCESS;
    }
    Compile and run the executable in the terminal and you will see that l_array will be 2 and l_arr will be 5, which is the actual correct answer for the length.
    The length of an array CANNOT be reconstructed from a pointer.
    Thus... arrays and pointers are NOT the same thing.
    You probably meant to say that arrays decay into pointers. The fact that you knew to put an argument for the length of the array within the function "printArray(...)" shows you actually know it.

  • @DiscoverRajivVlogs
    @DiscoverRajivVlogs 5 ปีที่แล้ว +1

    Hey, what these codes are called Serial.begin, pinMode, delay, digital write etc(orange texts)? How can I find full list of these codes?

    • @jerer194
      @jerer194 5 ปีที่แล้ว

      www.arduino.cc/reference/en/ there you go

  • @tald7014
    @tald7014 5 ปีที่แล้ว

    Hi Derek, your video is great, however, I believe you have a little mistake at (51:10) with pointers, I believe that you should have used *(primes+1) to address the second array's cell. Due to your array structure, 2, 3, etc.. you get a result that seems right, but you do not address cell 2. I believe that instead you point to cell #1, and add to it's value (2) +1 = 3 which seems like the value in cell 2, however, if you change cells 2 value to something else like: 90, you will locate the mistake. *primes takes precedence and than 1 is added arithmetically. I hope you can confirm and add a corrective note in your excellent video, if I'm right.

  • @khanezflouss
    @khanezflouss 6 ปีที่แล้ว

    Very awesome tutorial, I don't know why people complain about the speed when they have the rewind and pause button

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +1

      Thank you :) I'm happy you like tutorials with no dead air

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

    Thanks, this will make a great cheat sheet, for me, when I forget certain syntax, and methods, when writing code for my ESP 32. Arduino, was my first language, and I'm surprised that I remembered as much as I did, watching this tutorial. This is the first tutorial, I've watched from your channel, that I didn't feel lost or plain stupid; great review of the basics, for me...
    I will probably watch your other Arduino tutorials, because there is always a nugget of knowledge here or there, that I can pick up, that you dropped, in your seemingly never ending path, to the motherload of coding enlightenment.

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

      Thank you for the nice compliment :) I'm happy I could help

  • @ctbram0627
    @ctbram0627 5 วันที่ผ่านมา

    I want to randomly call a function. Can I put the functions into an array and call them by index?

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

    This is the *BEST* coding video I've ever seen! Thank you!

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

      Wow thank you for the wonderful compliment :)

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

      @@derekbanas Thank you for making a great video!

  • @Blackkspot
    @Blackkspot 5 ปีที่แล้ว +8

    this appears to be a tutorial for superhumans.

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

    Where did Derek define "max" and "i" in the early for-loop as I'm seeing an error "'i' was not declared in this scope". Secondly, I eventually figured out where "void" came from. As I understand it, the underlying C-code has a "main()" program which calls "void setup()" and "void loop()" to start the whole thing off. This is so basic no-one ever realizes that its a knowledge gap. I'll put this on Patreon for Derek too. Thanks if anyone wants to talk about program flow and structure for me.

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

      Sorry for not making that clear. I provide all the code here with a ton of comments to make it easier to understand www.newthinktank.com/2018/08/arduino-programming/

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

    nice vid man, learned some of C's limitations. also, you sound like a straight version of jeff goldblum. very calming voice

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

      Thank you very much :) Mr. Goldblum grew up in my city!

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

    Will not work if if 'int' of 100 initially is changed to 90
    or any number not a factor of 1000. Therefore to improve, should be
    >= 1000 and

  • @phantomrose1999
    @phantomrose1999 6 ปีที่แล้ว

    I first learnt "C" using the Microsoft C compiler, with Dos, running on a IBM PC, with a green monitor !!! funny how i remember a fair bit of it, while watching this video !! made me smile.. Getting my first Adrino tomorrow and will be getting my hands a little dirty again.. Gad !! i have become old !! ha

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      You're only as old as you feel :) I'm happy you liked the video. Up next I'm making Conway's game of life

  • @mr.destructive8554
    @mr.destructive8554 6 ปีที่แล้ว +5

    Little problem, at about 11:53 my serial wont print anything

  • @th0row
    @th0row 5 ปีที่แล้ว +1

    This video helped a lot for me because I already know coding and can use other languages well, but it's a good way to transition into the syntax and logic of another language. Thank you!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Happy I could help :)

  • @noeflores-ramirez7998
    @noeflores-ramirez7998 6 ปีที่แล้ว

    Thank you so much Derek! I am also glad your back is better (I'm assuming, since you uploaded). I'm still watching the tutorial and I will comment if I have any questions. I just wanted to demonstrate my gratitude beforehand.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you very much :) Yes it is getting better. Thank you for your concern.

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

    "Come unto me, all ye that labour and are heavy laden, and I will give you rest." Matthew 11:28

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

    man plz do a big playlist teaching Arduino Programming

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      I made an 11 part tutorial starting here th-cam.com/video/I6jIORI7K2k/w-d-xo.html

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

    Good video. I get what you are doing. I have a list of a few things you covered to look further into. I understand that the best way to really see the changes is to jump into the IDE and write some code ourselves. Arduino is ONLY learned hands on. For you to stop and show the results of every change to the code you made, the video would be 2 hrs. I understand the purpose of the vid. Well done. Arduino is not the type of thing that a person can learn in 1 vid. Get a notebook, lol a dictionary, a breadboard, arduino chip, get comfortable, and dig in guys and girls.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you very much :) I agree that you can only learn but just jumping in and experimenting. My goal is to provide all the basics in one place so people don’t get bored by a book

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

    The only thing I am confused on is at 10:12. The checkDirChange integer has a parenthesis and two other integers inside of it. Can someone please explain what this means? It would help a lot!

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

      int checkDirChange is a function so it received two variables the int isidr the brackets and returns a int value

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

    Hey Derek!! Thanks a lot for these amazing videos again. I have a request! I am an audio engineer with a basic programming skill. I've always been fascinated with how audio plug-ins are made. Could you make a series of "audio programming"?

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +2

      Thank you :) I'll look into it and see what I can do

  • @ericcannon862
    @ericcannon862 6 ปีที่แล้ว +1

    Your videos are absolutely amazing and the way you speak makes everything seem so easy, you have inspired me to make a couple of videos myself but I can’t seem to get a flow like you do.
    Any tips on starting out making videos? Anyone?

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you for the compliment :) Your videos are very good and so is your voice. Naturally I talk very fast. Actually in real life I talk faster then I do in my videos. Typing and thinking slows me down. If you want to sound more like me, edit out your pauses. I think I'm just about the only tutorial guy on TH-cam that edits out pauses because it takes F O R E V E R.... If I was you I'd stay with your style. The videos are very good!

    • @ericcannon862
      @ericcannon862 6 ปีที่แล้ว

      Derek Banas thanks a million! I also didn’t realize you edit out your pauses, that’s a great tip. Ye I’m only getting the hang of it, still feels a bit strange talking in a microphone at the moment 😅 thanks for the compliment also and keep up your amazing work!

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      I wish you all the best :)

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

    Hi Derek, I enjoyed the video. You made a small error in the ptr section though I believe. It should have been Serial.println( *(primes +1) ). You got the correct answer as it was 2 + 1 = 3.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you :) Sorry about the typo

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

    Another video that explains something, but only if you already know what’s being explained.

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

    How do you know al these functions ?
    I mean how do you know how to code ‘delay’, ‘int’, ‘digitalwrite’.
    Is there a tutorial somewhere where I could learn stuff like this ?

  • @amparorod2000
    @amparorod2000 4 ปีที่แล้ว +1

    Can I use a text editor than Arduino IDE???

  • @Nicholas-ze5vv
    @Nicholas-ze5vv 3 ปีที่แล้ว

    If your IO is windows, you can simply download the Arduino IDE from the Microsoft Store.

  • @dimitarvel1441
    @dimitarvel1441 6 ปีที่แล้ว

    Are you ever going to make an extension of this video?
    Maybe take on a project like maybe a color detector or a smart house or something. It really would be informative to see how someone with actual experience takes on a project.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Yes I plan on making numerus projects with ever increasing complexity

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

    Great video, I do have a question I want to make an obstacle avoiding robot using a ultrasonic sensor and 2 servo motors how would I program that?

  • @videoaccount5676
    @videoaccount5676 5 ปีที่แล้ว +12

    Arduino programming IRL in a nutshell: CTR+C, CTR+V

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

    Thanks! I was just looking for something like this to recap basic info

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

      Happy I could help :)

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

    Thank you for your videos. Are very easy to follow. Witch simulator do you prefer or recommend? Is Autodesk Tinkercad good?

  • @olfl
    @olfl 5 ปีที่แล้ว

    The expresion canVote == true returns a boolean which is either true or false. As canVote is already a boolean you could simplify the ternary term to
    Serial.println(canVote ? "Yes" : "No");
    Nevertheless nice tutorial, thanks a lot!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thanks for the input :)

  • @pheonixeye_1162
    @pheonixeye_1162 6 ปีที่แล้ว +1

    God! Is there any programming language left in this world that Derek has not done
    DEREK U ARE CRAZZYY!!

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +1

      That's funny :) Crystal and Fortran are coming soon

  • @cutlerwhitely4635
    @cutlerwhitely4635 3 ปีที่แล้ว +2

    This tutorial was absolutely fantastic. Thank you!

  • @thecombatengineer7069
    @thecombatengineer7069 6 ปีที่แล้ว +2

    Excellent video. I've been using Arduino for a little while but have no previous programming background. I have all the basics down but this helped with understanding the use of functions and arrays quite a bit (to clean up my code), so huge thanks. I really need some help on "state machines" and using the 'for loop' to help change state without having to increment the 'i' value, but using the stored value to change other variables states. Can you recommend any good reading or sites? I've watched your "C in a hour" video and reference it often, but still run into trouble with state machines. Many thanks again, and keep the videos coming brotha.

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

    an interesting mix of C, c++, and python. thanks for this.

  •  5 ปีที่แล้ว

    I will need to watch this video again at least ten times, because I barely understand anything, don't even thinking about trying it in action, but i love this video! It means that any time I will watch it again it will support thing that i already know but don't understand. I think this type of tutorial very powerful.

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you :) Please ask me any questions that you have and I'll gladly answer them. You may want to watch my programming for beginners tutorial which covers everything in detail th-cam.com/video/nwjAHQERL08/w-d-xo.html

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

    It sounds and feels like Jeff Goldblum is teaching how to code and eventually create a transporter. Haha. LOVE IT!

    • @derekbanas
      @derekbanas  2 ปีที่แล้ว +1

      Thank you very much :) Jeff and I were born in the same city

  • @2271masoud
    @2271masoud 6 ปีที่แล้ว

    wow you're back. I hope your back is better now. Thanks for this tutorial Derek

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Yes it has been to long. I'm feeling much better now. thank you for asking :)

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

    very refreshing ,concise and precise to the point ,my appreciation.

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

      Thank you very much :)

  • @gizlikullanc4861
    @gizlikullanc4861 5 ปีที่แล้ว +1

    You don't know how pointers work. *ptr + 1 was not the number at 1st index, it was the number at 0th index plus 1

    • @jgsh8062
      @jgsh8062 5 ปีที่แล้ว

      Lmao ikr

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

    A see several negative comments... Well, I liked it & watched it all.
    People forget that they can pause & try the code for themselves. If they expect to watch it once and be C++ programmers, they are smoking too much pot. Programming takes time, experience and a lot of trying out different code.
    The only thing I would have liked to see more of is what the Arduino was doing when you ran each code sample.

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

      Thank you for taking the time to tell me you enjoyed it :)

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

      @@derekbanas In case I need help, are you available for hire to program one of these bad boys when it arrives?

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

      @@AndreChampoux Sorry but I don’t have the time. I have a 12 part series in which I explain everything using real low level electronics starting with this video th-cam.com/video/I6jIORI7K2k/w-d-xo.html

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

    amazing video got me at first but once i started following along it made sense thank you.

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

      Thank you very much :) Happy to help

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

    This is good for me because I already worked with C. Thanks!

  • @manantank
    @manantank 6 ปีที่แล้ว

    Isn't this the perfect timing..
    I have an exam tomorrow on embedded systems.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว +1

      Best of luck on your exam :)

    • @manantank
      @manantank 6 ปีที่แล้ว

      Thanks Derek :)

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

    Much better then what my school offers, using a rich shield kind of defeats the purpose of the whole arduino learning expierence.

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

    I need help with my school project. It's a seed sowing robot. I have a big and wide acrylic sheet. Do I need 2 motor drivers or 1??? I have servo motor, ultrasonic sensor, infra-red sensor and soil moisture sensor. I have mega2560 microcontroller. How to program by moving the robot and control with Bluetooth that's what I wanna do first

  • @dagmawimekonnen6991
    @dagmawimekonnen6991 5 ปีที่แล้ว

    Thanks a lot for taking the time to make the video bro,
    and the syntax resembles c++ a lot.......
    thanks again!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Happy I could help :)

  • @ronchampagne8484
    @ronchampagne8484 5 ปีที่แล้ว +20

    You need to start with a DETAILED explanation of the terminology . why are words orange and others blue . What is the meaning of the brackets ?Why is the word void used ? ETC ETC ETC .
    You can't teach somebody Chinese by explaining the chinese language in chinese !

    • @digitzero3613
      @digitzero3613 5 ปีที่แล้ว

      He is teaching to code for arduino, You should checkout some c, c++ tutorials since its just for the guys with coding background who want to know how does to code for arduino.

    • @thomasvarghese4085
      @thomasvarghese4085 5 ปีที่แล้ว

      Keywords..special words

    • @thevapingpig
      @thevapingpig 5 ปีที่แล้ว

      I think you should go and learn C programming 101 before you can do this. This already assumes you have a good deal of familiarity with the language, he is just demonstrating how it works in the IDE. He gets into how data types, looping structures, functions, and all of that works extremely quickly because this is for those who want to start doing stuff on the embedded side of things. The highlighted text is meaningless beyond the type of data class that is being utilized and helps make it more visually interesting. The brackets signify where a function or operation begins and ends in a segment of code. Void is used when performing an action in function, opposed to returning a specific value.

    • @dilipghosh5852
      @dilipghosh5852 4 ปีที่แล้ว +1

      You need to know C in order to understand this completely

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

      @@Rassettaja If colors meant nothing, there would not be colors. It would be monochrome like back in the day. Adding color is to add differentiation and depth as well as to call attention to change.

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

    Great learning...
    But my big question is, how the serial monitor displaying new upload output, clearing the previous output...?

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

    Hey Derek,
    Great video’s mate you are tops at delivering instructions that you can follow and understand so thanks in advanced. Any chance you could do a video on how to program Toggle, Momentary, Rotary switches, Rotary encoders and potentiometers for use with flight simulators using the Mega 2560 Arduino boards. I have searched high and low for content on coding for this specific topic but everyone seams to do the LED flashing light and not just switches or they just use a preprogrammed sketch that dose not suit flight sims and you are left with many questions on how to start the code. Is their a specific code for each switch to tell it to open and close?
    Cheers
    Damo

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

    I have a claw machine, which i would like to setup something like this to move the claw and drop the claw by using my computers keyboard. Any ideas, where to start?.

  • @ChandanKumar-kr2kj
    @ChandanKumar-kr2kj 3 ปีที่แล้ว

    Excellent.. I was looking exactly for this.

  • @omarshawky5859
    @omarshawky5859 5 ปีที่แล้ว +1

    Java, Matlab & now Arduino, you are a mentor sir :)

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว +1

      Thank you :) I try to do my best

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

    This is a very effective video as I assume it is for people already have background of C as me. Thanks for the great video. I am wondering if you're running any live Arduino or C course. Not a recorded or self-study content.

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

      Thank you :) It is mainly aimed at people who already know how to program. I cover Arduino and electronics in this series th-cam.com/video/I6jIORI7K2k/w-d-xo.html

  • @LeoH3L1
    @LeoH3L1 5 ปีที่แล้ว

    This isn't teaching, this is just you doing it and saying what you're doing.

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Please ask any questions that you have and I'll be happy to answer them.

    • @LeoH3L1
      @LeoH3L1 5 ปีที่แล้ว

      @@derekbanas I don't have any, it's just the video starts with the basics, which suggests the intent is to teach, but it quickly went into less of a lesson and more of a commentary, which if the intent was to teach, it doesn't really work.

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Sorry if it was confusing. C is really a bad first language to learn. If you are new to programming I have a Python video series that may help th-cam.com/video/nwjAHQERL08/w-d-xo.html I'm always available to answer any questions that you may have.

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

    It does go fast which is nice, but I didn't hear an explanation of the "return countDir;" Return to what?