1 / 10

Installing and Using Libraries in Arduino

Florida Tech – MAE Department MAE 4316 - Mechatronics. Installing and Using Libraries in Arduino. Introduction. Just about everything you want to do with A rduino has probably already been done There are lots of Libraries available online for download

silver
Télécharger la présentation

Installing and Using Libraries in Arduino

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Florida Tech – MAE Department MAE 4316 - Mechatronics Installing and Using Libraries in Arduino

  2. Introduction • Just about everything you want to do with Arduino has probably already been done • There are lots of Libraries available online for download • The challenge is to find a library that suits your need, understand how it was done, and modify it if necessary • This example will show you how to download a library to do software serial

  3. Step One • First you need to find the library you need for the specific problem you are trying to address • Many libraries are already available on the Arduino playground:

  4. Code Libraries and Tutorials • Next, click on “Code Libraries and Tutorials”

  5. Libraries • All libraries are organizes in categories depending on the application • The one for this example is located in the “Communication” category:

  6. Downloading • Remember… These libraries were created by users like you • This particular library takes you to a personal website • The website describes the library so it is important to read it before downloading • Scroll Down and Download the library zip file

  7. Save the new Library • Save the file to your PC • Once you have downloaded it, right click and extract the file.

  8. Installing the new Libraryin the Arduino Environment • Copy the library folder to the “libraries” folder inside the Arduino main folder: • When you click on “NewSoftSerial” you should see its files

  9. Using the new Library • Next time you open Arduino, you will find the new library under “Examples”:

  10. Enjoy! • An important skill to learn to make the most of the Arduino platform is the use of libraries available in the web. • Using someone else’s code saves time but can also be a challenge ! • Understand the hardware connections • Understand the proper use of the functions • Understand limitations and potential bugs

More Related