> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/embedded-systems/resources/basic-hardware-and-firmware/environment-preparation/arduino-ide.md).

# การติดตั้งโปรแกรม Arduino IDE

## &#x20;Arduino IDE&#x20;

&#x20;     เป็นโปรแกรมสำเร็จรูปสำหรับการเขียน firmware ลงบอร์ด Arduino สามารถดาวน์โหลดได้จาก [download](https://www.arduino.cc/en/software) แล้วเลือกตามภาพด้านล่างสำหรับ Windows และ ขั้นตอนการติดตั้งสามารถทำได้ดังนี้ [การติดตั้ง](https://www.arduino.cc/en/guide/windows)

![dowload Arduino IDE for Windows](/files/fTBDh9jdigybVhBBo0pL)

### การตั้งค่า Arduino IDE สำหรับใช้ Arduino Mega2560

1\. เปิดโปรแกรม Arduino IDE ไปที่ Tools > Board : > เลือกบอร์ด Arduino/Genuino Mega or Mega2560

![](https://paper-attachments.dropbox.com/s_C18CC3EC56C57A881AE43A42692451B3697E0F27166743848FB4B947AD88F779_1597896869029_Lab+1-1.png)

2\. ทำการเสียบ Arduino บอร์ดเข้ากับคอมพิวเตอร์ ตรวจสอบว่าพบบอร์ดที่ต่อเข้ามาหรือไม่ สามารถทำตามขั้นตอนดังนี้

* โปรแกรม Arduino IDE ไปที่ Tools > Port > มีเลข Port เพิ่มเข้ามาหลังจากต่อบอร์ดเข้ากับคอมพิวเตอร์ > เลือก Port นั้นๆ
* วิธีการดู port ที่ไมโครคอนโทรลเลอร์เสียบอยู่
  1. ไปที่ search bar ของ window พิมว่า “Device manager”
  2. เลือก Device manager จากนั้นเปิดไปที่ Port
  3. เลือกดูว่า Arduino ต่ออยู่ที่ COM port ได้

![search for device manager](https://paper-attachments.dropbox.com/s_C18CC3EC56C57A881AE43A42692451B3697E0F27166743848FB4B947AD88F779_1597897506312_Lab+1-2.png)

![You connected ports are list here](https://paper-attachments.dropbox.com/s_C18CC3EC56C57A881AE43A42692451B3697E0F27166743848FB4B947AD88F779_1597897561200_image.png)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aic-eec.com/embedded-systems/resources/basic-hardware-and-firmware/environment-preparation/arduino-ide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
