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.
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.
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!
@@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?
@@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
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 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.
@@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.
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
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.
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.
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 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.
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 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.
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!
> 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.
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.
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!
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
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!
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.
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 :)
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
@@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.
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
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.
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
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!
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.
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
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.
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.
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.
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.
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.
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
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
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.
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.
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
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.
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..
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.
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 :-)
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!
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.
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.
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.
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.
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.
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.
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/
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
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!
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.
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.
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
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!
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"?
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?
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!
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!
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.
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 ?
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.
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!
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.
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.
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
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.
@@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
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
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 !
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.
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.
@@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.
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
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?.
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.
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
@@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.
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.
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
the amount of languages you know is god like
*MY GOD!*
I have a problem with this my laptop says "error compiling for board arduino/genuino uno" how can I fix it.
*Fast question: this is C# or C++? Becouse this is almost same with C++*
@@bloxcodes6576 C
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.
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.
I know c#
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!
@@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?
@@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
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.
well, to be fair he didn't say that "this is for beginners"
KN03Arts Try Paul McWhoter video Tutorial 1 to 16 , he cover Arduino and Programming at very study pace.
@@pqpq1905 yeah he didn't say for advanced programmers either to be fair.
@@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.
@@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.
This is more like a revision of Arduino programming for those who have ALREADY learned it beforehand.
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
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
just what im searching for
well it didn't say its for beginners
i think you should rather have a little bit of general programming background to start with this. I recommend starting with cs50x.
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.
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.
Yeah I didn't understand why he was doing the count direction after he explained the delays
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.
@@lswachkkdk5959 This isn't aimed at you though.
@@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.
you forgot something.
we are beginners!
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
Fiorii Alaia this is at beginners level😊
yeah ,for a programmer or a (cs ) student ,its very very very basic to death XD
You remembered something...
To tell Derek that we are beginners.
@@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.
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!
You don't explain the functions for some reason.
> 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.
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.
I'm happy it helped. I have additional videos here that may help th-cam.com/video/I6jIORI7K2k/w-d-xo.html
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!
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
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.
Thank you :) I'm happy you liked it
thats exactly how I felt
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!
Great advice!!!
this is good if you already know everything and just want to check if you know everything
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.
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 :)
It goes way too fast for me
Nils Persson Me too xD
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
play the video more slower,
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
@@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.
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
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.
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
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!
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.
I'm sure it will be !
Huh! you think he doesn't know!!!!
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
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.
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.
I'm happy you liked it :)
Important note for all:
== Means equal
= Defines something
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.
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.
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.
Thank you very much :) I'm happy I could help
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!
Thank you for the nice compliment :) I hate slow tutorials as well
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
Yes it is meant for people that have learned another language already
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
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.
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.
Thank you for the compliment 😁
man youre turorails are very useful. this is like the 3d time yt search I find one of your tutorials
Thank you :) I'm happy you enjoy them
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
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.
Thank you very much :)
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..
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.
It's a 3-hour video the way I watch it, and very effective. Thanks, Derek Banas!
Thank you :) I'm happy it helped
Wooow really nice, I think this video will be in top about adruino
Thank you :) I hope it helps
Two years later and is on the top search results
u wrote adruino instead of adruino
or is it written both ways? idk bro im bad at life
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.
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 :-)
That is awesome! Congratulations!!! I'm very happy to have been able to help :)
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!
Thank you :)
@@derekbanas help me please 🙏🥺
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.
Thank you :) Sorry about the speed
Use the pause button
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.
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.
I’ve had a bit of exposure to python but not C or Arduino and I found this video very helpful, thanks!!
What's the difference between Arduino and scratch
Who's the best for kids
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.
Hey, what these codes are called Serial.begin, pinMode, delay, digital write etc(orange texts)? How can I find full list of these codes?
www.arduino.cc/reference/en/ there you go
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.
Very awesome tutorial, I don't know why people complain about the speed when they have the rewind and pause button
Thank you :) I'm happy you like tutorials with no dead air
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.
Thank you for the nice compliment :) I'm happy I could help
I want to randomly call a function. Can I put the functions into an array and call them by index?
This is the *BEST* coding video I've ever seen! Thank you!
Wow thank you for the wonderful compliment :)
@@derekbanas Thank you for making a great video!
this appears to be a tutorial for superhumans.
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.
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/
nice vid man, learned some of C's limitations. also, you sound like a straight version of jeff goldblum. very calming voice
Thank you very much :) Mr. Goldblum grew up in my city!
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
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
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
Little problem, at about 11:53 my serial wont print anything
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!
Happy I could help :)
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.
Thank you very much :) Yes it is getting better. Thank you for your concern.
"Come unto me, all ye that labour and are heavy laden, and I will give you rest." Matthew 11:28
man plz do a big playlist teaching Arduino Programming
I made an 11 part tutorial starting here th-cam.com/video/I6jIORI7K2k/w-d-xo.html
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.
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
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!
int checkDirChange is a function so it received two variables the int isidr the brackets and returns a int value
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"?
Thank you :) I'll look into it and see what I can do
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?
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!
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!
I wish you all the best :)
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.
Thank you :) Sorry about the typo
Another video that explains something, but only if you already know what’s being explained.
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 ?
Can I use a text editor than Arduino IDE???
If your IO is windows, you can simply download the Arduino IDE from the Microsoft Store.
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.
Yes I plan on making numerus projects with ever increasing complexity
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?
Arduino programming IRL in a nutshell: CTR+C, CTR+V
Thanks! I was just looking for something like this to recap basic info
Happy I could help :)
Thank you for your videos. Are very easy to follow. Witch simulator do you prefer or recommend? Is Autodesk Tinkercad good?
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!
Thanks for the input :)
God! Is there any programming language left in this world that Derek has not done
DEREK U ARE CRAZZYY!!
That's funny :) Crystal and Fortran are coming soon
This tutorial was absolutely fantastic. Thank you!
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.
an interesting mix of C, c++, and python. thanks for this.
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.
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
It sounds and feels like Jeff Goldblum is teaching how to code and eventually create a transporter. Haha. LOVE IT!
Thank you very much :) Jeff and I were born in the same city
wow you're back. I hope your back is better now. Thanks for this tutorial Derek
Yes it has been to long. I'm feeling much better now. thank you for asking :)
very refreshing ,concise and precise to the point ,my appreciation.
Thank you very much :)
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
Lmao ikr
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.
Thank you for taking the time to tell me you enjoyed it :)
@@derekbanas In case I need help, are you available for hire to program one of these bad boys when it arrives?
@@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
amazing video got me at first but once i started following along it made sense thank you.
Thank you very much :) Happy to help
This is good for me because I already worked with C. Thanks!
Isn't this the perfect timing..
I have an exam tomorrow on embedded systems.
Best of luck on your exam :)
Thanks Derek :)
Much better then what my school offers, using a rich shield kind of defeats the purpose of the whole arduino learning expierence.
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
Thanks a lot for taking the time to make the video bro,
and the syntax resembles c++ a lot.......
thanks again!
Happy I could help :)
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 !
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.
Keywords..special words
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.
You need to know C in order to understand this completely
@@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.
Great learning...
But my big question is, how the serial monitor displaying new upload output, clearing the previous output...?
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
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?.
Excellent.. I was looking exactly for this.
Java, Matlab & now Arduino, you are a mentor sir :)
Thank you :) I try to do my best
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.
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
This isn't teaching, this is just you doing it and saying what you're doing.
Please ask any questions that you have and I'll be happy to answer them.
@@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.
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.
It does go fast which is nice, but I didn't hear an explanation of the "return countDir;" Return to what?