Arduino MASTERCLASS | How to Use Arduino Libraries PART 7

preview_player
Показать описание
🤩 FREE Arduino Crash Course 👇👇

***Want to have some fun programming your own electronics?***

***Get the code, transcript, challenges, etc for this lesson on our website***

***We designed this circuit board for beginners!***

FOLLOW US ELSEWHERE
---------------------------------------------------
________________________________
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...

***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.***
Рекомендации по теме
Комментарии
Автор

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.

goldfinger
Автор

Right on point + no click-bait + educational

HiggsDeposition
Автор

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 ..

ianbertenshaw
Автор

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

andyschrock
Автор

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

thekingelectroblade
Автор

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

rickygoings
Автор

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.

pedrovictormelo
Автор

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

mauricecortens
Автор

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.

warrenscorner
Автор

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.

jon_raymond
Автор

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.

petetomiello
Автор

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.

GunnerAl
Автор

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..

reid-qosz
Автор

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

ChristianDeBelen-jvhp
Автор

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

KHIRD
Автор

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

charlespeters
Автор

Thankyou. So very clearly explained. Now I know!

jonathanm
Автор

I have some code that requires a <rom/rtc.h> 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

embededfabrication
Автор

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

cleightthejw
Автор

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?).

steve
welcome to shbcf.ru