# Introduction to ESD

## Embedded Systems คืออะไร

Embedded system หรือระบบสมองกลฝังตัวคือ ระบบที่มีฮาร์ดแวร์และซอฟแวร์ทำงานร่วมกัน ไม่ขึ้นกับว่าระบบจะเล็กหรือใหญ่ขนาดไหน แต่อะไรกันที่จะทำให้เราจำแนกระบบสมองกลฝังตัวออกจากคอมพิวเตอร์ที่เราใช้ทั่วๆไปตารางข้างล่างจะแสดงให้เห็นความแตกต่างระหว่างสมองกลฝังตัวและคอมพิวเตอร์

| Computer                                | Embedded systems                        |
| --------------------------------------- | --------------------------------------- |
| สามารถใช้ตอบโจทย์ได้หลายอย่างด้วยตัวเอง | ตอบโจทย์ได้บางอย่างตามที่ออกแบบเท่านั้น |
| มีทรัพยากรในการคำนวณมาก                 | มีทรัพยากรในการคำนวณน้อย                |
| มีขนาดที่ใหญ่เมื่อเที่ยบกับ embedded    | มีขนาดเล็ก                              |
| มีความสามารถในการประมวลผลได้เร็ว        | สามารถประมวลผลได้ช้ากว่าคอมพิวเตอร์     |
| ใช้พลังงานในการประมวลผลมากกว่า embedded | ใช้พลังงานในการประมวลผลน้อย (<100watt)  |

แต่ข้อที่ระบุมาข้างต้นนั้นเป็นนิยามสำหรับการแบ่งประเภทเท่านั้น ในปัจจุบัน ความสามารถของตัว Embedded system ได้พัตนาอย่างสูงขึ้นมาก และมีประสิทธิภาพเกือบเท่าเทียมกับคอมพิวเตอร์แล้ว

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_E0ED2CB7AF67F830DA459C758AF6C43EE6FB618AE97FC3EF1DE9A9668AC9B778_1668246606280_image.png" alt=""><figcaption><p>ARM cortex-A710</p></figcaption></figure>

<figure><img src="https://paper-attachments.dropboxusercontent.com/s_E0ED2CB7AF67F830DA459C758AF6C43EE6FB618AE97FC3EF1DE9A9668AC9B778_1668246889460_image.png" alt=""><figcaption><p>AMD Ryzen9 7950x</p></figcaption></figure>

นอกจากนั้นตัว Embeded เองยังประหยัดพลังงานมากกว่าทำให้อุปกรณ์อิเล็กทรอนิกส์ส่วนใหญ่ในปัจจุบันล้วนเป็นอุปกรณ์ embedded เกือบทั้งหมดไม่ว่าจะเป็น กล้องดิจิตอล เครื่องขายของอัตโนมัติ อุปกรณ์ทางการแพทย์ โทรศัพท์ รถยนต์ แม้กระทั่งในเครื่องบินเองก็เป็น embedded system เกือบทั้งหมดในขณะเดียวกันที่ตัว Embedded system เองทำตัวเป็นเหมือนคอมพิวเตอร์ขึ้นทุกทีแต่ความหลายหลายของมันนั้นมีตั้งแต่ระบบง่ายๆควบคุมเพียงไฟเข้าออกไม่มีหน้า UI อะไรเลย จนไปถึงทำหน้าที่เป็น GUI ของจอสมาร์ทโฟนที่มีทั้งระบบทัชสกรีน ระบบสั่นและรับส่งข้อมูลผ่าน wifi \
**ตัวอย่างการใช้งานของระบบสมองกลฝังตัว**

* ระบบยานยนต์

<figure><img src="https://westsideautomotivegroup.com/wp-content/uploads/2019/08/Automotive-Software-Change.jpg" alt=""><figcaption></figcaption></figure>

* Proximity Warning System
* Cruise control
* ระบบกันหลับใน
* ระบบไฟเลี้ยว

<br>

* โทรศัพท์สมาร์ทโฟน

<figure><img src="https://www.ericsson.com/4af7e8/assets/global/qbank/2019/12/17/79455--hand-holding-mobile-device-with-cityscape-in-background---_r4a2316-93296crop013919971124resize1500844autoorientbackground23ffffffquality90stripextensionjpgid8.jpg" alt=""><figcaption></figcaption></figure>

* การรับคำสั่งจาก touch screen
* Fingerprint scan
* Face recognition
* ระบบสั่น

<br>

* ระบบอุตสาหกรรม

<figure><img src="https://www.automate.org/images/ogImages/AIA-blog-Robotic-machine-visual-system-working-in-factory-815430482_726x484.jpeg" alt=""><figcaption></figcaption></figure>

* การควบคุมสายพาน

* หน้าจอ HMI

* เซนเซอร์นับจำนวน

* เซนเซอร์ตรวจจับผลิตภัณฑ์เสียหาย

* อุปกรณ์ทางการแพทย์

<figure><img src="https://www.frost.com/wp-content/uploads/2020/10/IoT-device-security-solution.png" alt=""><figcaption><p>Medigate Lauded for Reliably Protecting Patient Information</p></figcaption></figure>

* MRI CT scan
* เครื่อง X-rays
* กล้อง Bronchoscopy (กล้องส่องหลอดลม)
* เครื่องวัดความดันอัตโนมัติ

อ้างอิง :

{% embed url="<https://predictabledesigns.com/introduction-to-embedded-firmware-development/>" %}

Last update: May 2022

Author: Thanaluk Pranekunakol (AIC-Researcher)


---

# Agent Instructions: 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/introduction-to-esd.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.
