Arduino MASTERCLASS | How to Use Arduino Libraries PART 7

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 มิ.ย. 2022
  • 🤩 How much Arduino can you learn in 7 Days? 👇
    bit.ly/7_Day_Arduino_Challenge
    **Want to have some fun programming your own electronics?**
    bit.ly/39TzXsf
    **Get the code, transcript, challenges, etc for this lesson on our website**
    bit.ly/3NxEEpG
    **We designed this circuit board for beginners!**
    Kit-On-A-Shield: amzn.to/3lfWClU
    FOLLOW US ELSEWHERE
    ---------------------------------------------------
    Facebook: / programmingelectronics...
    Twitter: / progelecacademy
    Website: www.programmingelectronics.com/
    ________________________________
    Okay. I got a feeling that what you really wanna do is start controlling all types of cool electronic stuff. Maybe you got some cool ideas for some projects and you just wanna get rolling. The quickest way to do that is to learn and understand how to use Arduino Libraries. They are gonna help you get up and running super fast with all types of different electronic stuff, by leveraging the hard work and expertise of an amazing group of programmers from all over the world. In this video, you are gonna learn exactly what an Arduino Library is and how it's gonna catapult you in your prototyping efforts. You are gonna learn the quickest way to learn how to use an Arduino Library. It's what I've been doing for years, and it always pays off. And I'll show you two examples of a library in action. Let's go.
    So what exactly is in Arduino Library? It's not like a place with a bunch of books about Arduino, right? You're right. It's not that. When you hear the term Arduino Library, what it's referring to is code that someone or some group of people have written, and they've packaged it up to work on a specific thing. So an Arduino Library is code that's developed for a specific purpose, and is packaged in a way that allows you to access all of the functionality without necessarily having to understand all the dirty details. Because anytime you're writing code, and learning about new stuff, and figuring things out, there's a lot of complexity. And what and Arduino Library does is it abstracts away some of that complexity by giving us simpler ways to access the functionality. So let me give you an example. Let's say you sit in your car and you wanna start it, right? Maybe you have a key start or a button start, or maybe, I don't know, maybe there's like clapper start cars. I don't know, whatever. Anyway, all you gotta do is something really simple, right? But what actually takes place inside the car is rather complex. It's got a starter in there, or maybe, I guess if you have an electric car, maybe there isn't a starter, but you get the idea. All types of things are happening by you simply turning a key, pressing a button, whatever, right? You don't need to know the details of all that. All you have to do is turn the key. So an Arduino Library is sort of like that. There is a person or several people who have worked together to write code to control some type of hardware or do some type of calculation. For example, controlling a stepper motor, or a servo motor, or maybe lighting up some NeoPixel LEDs. So these people have put in the blood, sweat, and tears to make this code work, and what you're able to do is just use the functions or part of the code that they've written in order to invoke all of the stuff that is going on in their library. And what's amazing is you can get these Arduino Libraries for completely free. Almost all of them are open source. They're just being shared out there. Just about any piece of hardware out there that you want to control, there's probably gonna be a library that's already been written to help you control it, and I wanna try to drive the point home that this is absolutely amazing. You're basically being handed all these tools that you can start using. People are just like, "Hey, here, use this tool. Hey, use this tool." It's like, I don't know, to me, it's really exciting. Now, I'm not saying you're gonna just blindly use any library. It's a good idea to have an idea of kind of some of the inner workings, but when you're just getting started and you really have no idea how the coding works at all, it's fantastic to be able to just use these libraries and, bam!
    CONTINUED...
    bit.ly/3NxEEpG
    **About Us:**
    This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
    **We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

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

  • @3goldfinger
    @3goldfinger 4 หลายเดือนก่อน +6

    After banging my head against the wall for a few weeks, didn't know what Libraries and Files was, finally a video which tells it so even I can understand it. Thanks.

    • @programmingelectronics
      @programmingelectronics  4 หลายเดือนก่อน +1

      Trust me - you are not the only one! Glad this could help!

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

    Right on point + no click-bait + educational

  • @thekingelectroblade
    @thekingelectroblade หลายเดือนก่อน +2

    So far the best video I found on youtube. You got a sub 👍

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

    Sometimes you need to look at the code in the library to see things like pin outs etc and if you go to the library folder in the arduino folder inside the documents folder on you pc and look at the C++ source file and header file you can open it to see the code . Usually they will document this in the library manager in arduino but if they don't ..

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

      Thanks for adding this Ian!!

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

      Hello, thanks for tip. I'm just start to dive into arduino programming, is there a way to see descriptions for functions and their arguments inside library? Or i should look for this information on github for downloaded library?

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

    You know your the best teacher ever. You should start a school and charge; Teach other teachers to teach one course; Just like you. and I bet
    you will have everybody signing up for your school. then bundle the package; Tech little chuck at a time; Just like a school. See the way you
    teach makes it very easy to learn; Like say a drone; and you want to teach PID controller; Do just the P first and create a simple project. then the I project; then the D project ; then put them all to gather. I and other would pay 200 - 500 dollars for How to build a drone/Robot/ and others stuff class

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

    Thank you, sir! This is exactly what I needed to get rolling using libraries!

  • @ChristianDeBelen-jv5hp
    @ChristianDeBelen-jv5hp 11 หลายเดือนก่อน

    Thank you so much!!I had problems with the DHT 11 sensor library as the commands to import the library has changed over years from the library constantly updating

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

    The content is excellent. I learned some great stuff. The moving of everything on the screen is horrible. It's like canned laughter on a sitcom. Messes with my OCD! LOL But I pushed through.

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

    Thanks for this video. I was trying to learn how url encode works. But now I know that I can download a library and see how it works by arduino ide. Thanks you help a DSA student.

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

    As always, great video Mike! The syntax of these libraries gets so confusing. Sometimes you need to use a capital letter, sometimes it’s all lower case, sometimes it’s all upper case. Seems like no rhyme or reason to which. I usually try to find an example that works close to what I would like to achieve then copy and paste into my code. If it doesn’t work I’ll play around to see if I can get some functionality.

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

      Thanks Warren! Agree on all points, there is a huge variety of styles in these different libraries. I’m usually happy when I can decipher the example sketches and then try to go from there.

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

    Wow, I wish I had found your lessons on Arduino IDE weeks ago. I've been struggling with libraries for my R2D2 Droid because I've been misunderstanding the online instructions at Arduino IDE website. I've loaded the libraries .zip files and they're added to the libraries folder, but were not installed to the sketch. Your video was very clear and easy to understand, your voice is paced correctly and easy to understand. A suggestion might be to add something perform a quality review (a check) to ensure the library file is installed by reviewing the sketch. My current assumption is that once I hit "Install" the code gets written into the basic sketch I have up on the screen! Am I assuming correctly? I'm going to go back and start with Lesson 1 of your channel.

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

    het is zeer goede uitleg !! ik volg al een hele tijd jullie goede voorbeelden van de ARDUINO groeten ! uit BELGIUM !!

  • @reid-qo2sz
    @reid-qo2sz 9 หลายเดือนก่อน

    Bigger ??So you string library’s together… or just load each program ? .. eg . Servo library and and controller.. will they just know how to control each other … or do you have to match code to each other ..
    Great video .. thanks❤.. real bigginer I know nothing..

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

    Hi from NZ. Really enjoy your tutorials - very informative, please keep them coming. Please can you advise me how you set the default for the Arduino Libraries? Many thanks. Regards Charlie

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

    Thankyou. So very clearly explained. Now I know!

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

    Really, wonderful explanations

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

    Great help as always.🙌 Thank you.😊

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

    Great overview video about libraries! Have you considered a video about "setting up a library" as in writing your own? I echo your thoughts that the Arduino environment has the largest selection of libraries! I think this is due mostly to the open source nature of projects that use it. Other programing environments are more geared towards commercial projects and don't often share libraries they use or build.

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

    Outstanding thank you

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

    Thank you, sir!

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

    I have some code that requires a library? There are lots of rtc libraries but what is the rom/ ? you can't even use forward slash as a character to describe a library

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

      Did you have a link to the github for the code? It looks like a file path...

  • @smaqdaddy
    @smaqdaddy 10 หลายเดือนก่อน +1

    IDE 2.1.1, I can only open installed examples. Unzipped ones do not show up. Any ideas?

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

      I'd try closing and re-opening the IDE. I'd also check the unzipped files have the correct naming convention.

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

    Not quite the info I was looking for. So in IDE 2.0, are ALL libraries in the same one folder? What if I have two projects and one works with version 4 of xyz.hd and the other works with version 5 of xyz.hd? How can I use a specific library for each of my projects without needing to overwrite the xyz.hd. Also what does a 'library' consist of - how does each of my projects point to the correct library folder? Does the include statement in my project just look at one folder or can it path to many? How does the IDE know which version I use for each project (file?).

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

    How do i know 'command/function/strucure' of librarry if theres no 'example'? Tx u mr🙏

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

    fromm wherre can i get both library and its circuit diagram pls comment

  • @J.T323
    @J.T323 ปีที่แล้ว +1

    Awesome...thank you so much for this.

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

      Thanks JT!!

    • @J.T323
      @J.T323 ปีที่แล้ว

      @@programmingelectronics Is there a nice Arduino syntax cheat sheet that you would recommend for a person like me that has just started to learn coding.I found a few on the internet,but me knowing very little about coding isn't sure were to start. Thank you

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

      Great question @@J.T323 ! Here is a semi-lame answer :)
      OK, this isn't a "cheat sheet" per say, but the Arduino reference page is what I use almost every time I code:
      www.arduino.cc/reference/en/
      We have a video on using it here (it's old but still very on point):
      th-cam.com/video/f3h4pV_B2Dg/w-d-xo.html
      Also, we have some "cheat sheets" on our website, but they may not be the syntax you're looking for:
      www.programmingelectronics.com/free-arduino-guides-and-resources/
      Best of luck!

    • @J.T323
      @J.T323 ปีที่แล้ว

      @@programmingelectronics Awesome thanks...🙏🏻

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

    Hi . really great information. Can you please open a header file and talk about some modifications to discuss structure of header and c files of library

  • @mikerilling2745
    @mikerilling2745 6 หลายเดือนก่อน +1

    How do you know that it’s safe to just download things anonymously off the Internet?

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

    Creative video, thanks :)

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

    Amazing as usual. But where can I find a list of all new commands for each library with explanation of the syntax for each command?

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

      Great question Hisham!
      It will depend on the specific library documentation. Some libraries have great docs, others...well...non-existent!
      Here is a place to start for some libraries documention:
      www.arduino.cc/reference/en/libraries/
      But another place to go is check out the library github page (if it has one), and see if they have a wiki, or link to documentation.
      Hope this helps some!

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

      @@programmingelectronics Thank you for the replay...waiting for the comming lessons.

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

      @@drsaif343 Thanks! We'll try to bring it!

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

    i want to use 2 libraries at ones but they both use pin 4... how can i change 1 of them

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

    Don't have a question just wanted to make a comment and say good vid

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

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

    🥰🥰

  • @360_tours
    @360_tours 8 หลายเดือนก่อน +1

    I think this is now out of date. I used add zip file from the software

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

      I think there are 3 different way to add libraries:
      1) Sketch> Include Library> Add .ZIP Library
      2) Tools> Manage Library (or from sidebar in IDE 2) Then search and add library
      3) Add library manually into Arduino>libraries
      I'd start at option 2, but if you can't find a library, you might have to download a ZIP from somewhere (e.g. github) then you could use option 1, however, if that fails because of naming issues, then understanding that option 3 is what option 1 and 2 are doing comes in handy. Best of luck!

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

    Ahaaaaaaaa