The new major release of the Arduino IDE is faster and even more powerful! In addition to a more modern editor and a more responsive interface it features autocompletion, code navigation, and even a live debugger. Show For more details, please refer to the Arduino IDE 2.0 documentation. Nightly builds with the latest bugfixes are available through the section below. SOURCE CODEThe Arduino IDE 2.0 is open source and its source code is hosted on GitHub. Arduino with ChromebookTo program Arduino from a Chromebook, you can use the Arduino Web Editor on Arduino Cloud. The desktop version of the IDE is not available on ChromeOS. MicroPython With Arduino BoardsTo program your boards using MicroPython, visit the MicroPython with Arduino page. There you find download links and additional resources for getting started with MicroPython on your Arduino boards. Arduino PLC IDE 1.0.3 Program using IEC 61131-3 languages and mix Arduino sketches through Arduino PLC IDE! Configure easily your pre-mapped resources and get quick no code fieldbus support, dive into your code analysis thanks to the wide set of debugging tools. For more details, please refer to Arduino PLC IDE documentation. DOWNLOAD OPTIONSBoth files are required Version 1.0.4 coming soon Legacy IDE (1.8.X)Arduino IDE 1.8.19 The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. This software can be used with any Arduino board. Refer to the Arduino IDE 1.x documentation for installation instructions. SOURCE CODEActive development of the Arduino software is hosted by GitHub. See the instructions for building the code. Latest release source code archives are available here. The archives are PGP-signed so they can be verified using this gpg key. Terms of ServiceBy downloading the software from this page, you agree to the specified terms. The Arduino software is provided to you "as is" and we make no express or implied warranties whatsoever with respect to its functionality, operability, or use, including, without limitation, any implied warranties of merchantability, fitness for a particular purpose, or infringement. We expressly disclaim any liability whatsoever for any direct, indirect, consequential, incidental or special damages, including, without limitation, lost revenues, lost profits, losses resulting from business interruption or loss of data, regardless of the form of action or legal theory under which the liability may be asserted, even if advised of the possibility or likelihood of such damages. Để Arduino có thể hoạt động được, chúng ta cần lập trình điều khiển cho Arduino thực hiện một chức năng nào đó. Công cụ Arduino IDE hỗ trợ việc lập trình trở nên dễ dàng hơn. 1. Download Arduino IDEDownload Arduino IDE tại website chính thức của Arduino: Hiện tại, phiên bản mới nhất (09/2018) của Arduino IDE là 1.8.6 với các phiên bản dành cho Windows, Linux, Mac OS X. Double click file cài đặt Arduino IDE, chọn “I Agree”, sau đó, click Next và chọn đường dẫn cài đặt Arduino IDE, mặc định là C:\Program Files (x86)\Arduino. Chương trình cài đặt yêu cầu khoảng 500MB dung lượng ổ cứng còn trống. Chọn Install và đợi quá trình cài đặt hoàn tất. Double click biểu tượng Arduino trên màn hình Desktop. Chương trình Arduino IDE được mở lên. 3. Sử dụng Arduino IDEThanh công cụ của Arduino
Menu “File”
Menu “Tool”
File mã nguồn (source code) của Arduino IDE có đuôi mở rộng là .ino. Để nhúng lệnh điều khiển vào Arduino thì cần biên dịch file .ino thành file .hex. File .hex chứa lệnh thực thi được biểu diễn dưới dạng hệ cơ số 16. Board mạch Arduino chỉ hiểu và chạy được những lệnh này. Đổi đường dẫn biên dịch ra file Hex– File Hex là file nạp vào Arduino để Arduino thực thi được – Khi biên dịch thì file Hex sẽ nằm ở đường dẫn mặc định (thường trong Program Data trong phân vùng C). Để xem đường dẫn mặc định này, ta làm như sau: Bước 1 – Chọn File->Preferences rồi chọn compilation ở phần “Show verbose output during” Bước 2 – Nhấn nút biên dịch file code đang mở và xem đường dẫn ở phần thông báo compile Arduino. Chúng ta có nhu cầu đổi đường dẫn file Hex để tiện việc quản lý và upload cho Arduino. – Đổi đường dẫn file Hex, thực hiện các bước sau:
4. Bài tậpCài đặt Arduino IDE, ghi nhớ đường dẫn cài đặt Arduino IDE. Đổi đường dẫn compile file Hex trên Arduino IDE với đường dẫn mới là C:\\Hex Build thử một chương trình (File->Examples->01.Basics->Blink) trong Arduino IDE để kiểm tra quá trình đổi đường dẫn mới. |