110 likes | 267 Views
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
E N D
Florida Tech – MAE Department MAE 4316 - Mechatronics Installing and Using Libraries in Arduino
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
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:
Code Libraries and Tutorials • Next, click on “Code Libraries and Tutorials”
Libraries • All libraries are organizes in categories depending on the application • The one for this example is located in the “Communication” category:
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
Save the new Library • Save the file to your PC • Once you have downloaded it, right click and extract the file.
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
Using the new Library • Next time you open Arduino, you will find the new library under “Examples”:
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