Skip to main content

Arduino - How to Install Library

Arduino - How to Install Library

What is Library?
          Library is a collection of code that makes it easy for using modules or other devices. Arduino IDE are pre-install some libraries. If you want to install other libraries, you can download more from the Internet.

How to Install Library.
  • Install from Library Manager
  • Install from Zip file
  • Manual Installation

Install from Library Manager
         For installation of this library, you can open the Arduino IDE program. Select the Sketch > Include Library> Manage Library ...
 Search Library > Select Version > Install

Install from Zip file

         For installation of this library, you can open the Arduino IDE program. Select the Sketch > Include Library> Add .Zip Library.
 Then select the desired .zip file to add to the Arduino IDE.

Manual installation
         For installation, this library can be installed by opening the Document > Arduino > libraries and copying the library file to install immediately.

(If you open the Arduino IDE, you must close the program and reopen it.)

Referent
- https://www.arduino.cc/en/Guide/Libraries

Comments

Popular posts from this blog

Arduino กับการใช้งาน Serial Monitor

Arduino กับการใช้งาน Serial Monitor Serial Monitor คือ ส่วนหนึ่งของโปรแกรม Arduino IDE สามารถใช้งานได้ 2 อย่าง คือ - แสดงผลลัพธ์จากบอร์ด Arduino - ใช้รับข้อมูลจากผู้ใช้ แล้วส่งข้อมูลไปยังบอร์ด Arduino รูปแบบการใช้งาน Serial Monitor เริ่มต้นใช้งาน void setup() {    Serial.begin(9600); } แสดงผลออกทาง Serial Monitor Serial.print("Hello World");       /* แสดงคำว่า Hello World */ Serial.println("Hello World");     /* แสดงคำว่า Hello World และขึ้นบรรทัดใหม่ */   อ่านค่าจาก Serial Monitor Serial.read(); วิธีเปิด Serial Monitor 1. กด Ctrl + Shift + M 2. กด Icon ตัวอย่างการแสดงผลลัพธ์จากบอร์ด Arduino แสดงผลลัพธ์จากบอร์ด Arduino ตัวอย่างการรับค่าจาก Serial Monitor - ส่ง 1 เพื่อ On LED -  ส่ง 0 เพื่อ Off LED แสดงผลลัพธ์การรับค่าจาก Serial Monitor * ถ้าไม่สำเร็จ ตรวจสอบว่าเลือก No line ending และบอดเรทเป็น 9600 เเล้วหรือยัง

การเชื่อมต่อระหว่างบอร์ด Arduino กับคอมพิวเตอร์

การเชื่อมต่อระหว่างบอร์ด Arduino กับคอมพิวเตอร์         สำหรับบทความในตอนนี้จะเป็นการอธิบายเบื้องต้นเกี่ยวกับการเชื่อมต่อระหว่างบอร์ด Arduino กับคอมพิวเตอร์ ว่าสามารถใช้ทำอะไรได้บ้างและมีการทำงานอย่างไร การเชื่อมต่อระหว่างบอร์ด Arduino กับคอมพิวเตอร์ เมื่อเชื่อมต่อกันเเล้วสามารถทำอะไรได้บ้าง - อัพโหลดเฟริมแวร์ที่พัฒนาขึ้นด้วยโปรเเกรม Arduino IDE - รับ/ส่งข้อมูลระหว่างบอร์ด Arduino และ คอมพิวเตอร์ หลักการทำงาน (Uno, Mega2560, Pro Micro, อื่นๆ)         หลักการทำงานของการเชื่อมต่อระหว่างบอร์ด Arduino กับคอมพิวเตอร์ ยกตัวอย่างเช่น การอัพโหลดเฟิร์มแวร์ที่พัฒนาเสร็จเเล้วลงบนบอร์ด Arduino ข้อมูลจากฝั่งคอมพิวเตอร์จะถูกไอซี USB To Serial แปลงระดับเเรงดันจากคอมพิวเตอร์ให้เป็นระดับเเรงดัน TTL เเล้วส่งไปยัง  MCU (Micro Controller Unit) ผ่านทางขา Rx-Tx ทำให้บอร์ด Arduino มีเฟริมแวร์ตัวที่เพิ่งอัพเดทเข้ามา ส่วนการรับ/ส่งข้อมูลระหว่างบอร์ด Arduino และคอมพิวเตอร์ก็ลักษณะเดียวกับการอัพโหลดเฟริมแวร์ ข้อสังเกตุ - Comport ...