กลับไปหน้ารวมไฟล์
using-external-power-suppplies-with-arduino-explained-8a1536.md

กลับมาเจอกันอีกแล้วน้องๆ! วันนี้พี่จะมาสอนเรื่องพื้นฐานแต่สำคัญมาก นั่นคือ การใช้แหล่งจ่ายไฟภายนอกกับ Arduino ให้ถูกต้อง!

ง่ายมากเลย เดี๋ยวรู้เอง

แหล่งจ่ายไฟ (Power supplies)

ทุกโปรเจกต์ที่ใช้ Arduino ต้องมีแหล่งจ่ายไฟอยู่แล้ว ไม่ว่าจะเป็นไฟเลี้ยง LED, Servo motor, Relay หรืออื่นๆ

แต่บางที... Arduino ตัวเดียวอาจจะจ่ายไฟไม่พอสำหรับโปรเจกต์เราได้! เช่น ถ้าจะควบคุม Servo motor หลายๆ ตัวพร้อมกันด้วยไฟ 5V จาก Arduino ตัวเดียว

ตัวอย่างนี้ชัดมาก:

ตัวอย่างที่เห็นชัดเลยว่า [Arduino](https://s.shopee.co.th/7fUgFAWSki) จ่ายไฟไม่พอ
จากรูปจะเห็นว่า **เป็นไปไม่ได้เลย** ที่จะควบคุม [Servo](https://s.shopee.co.th/7fUgFAWSki) motor 5 ตัวด้วยไฟจาก [Arduino](https://s.shopee.co.th/7fUgFAWSki) ตัวเดียว แล้วเราจะทำยังไงดี?
คิดหน่อยน้อง... คิดหน่อย

ทางออกของเรา

ใช่แล้ว! วิธีแก้ไขง่ายมาก แต่ต้องทำถูกขั้นตอน ไม่งั้นเจ๊งแน่

คำตอบคือ ใช้แบตเตอรี่หรือแหล่งจ่ายไฟภายนอก!

ตัวอย่างแหล่งจ่ายไฟภายนอกที่ใช้กัน:

Power Supply จากคอมพิวเตอร์
Power Supply แบบตั้งโต๊ะ
ใช้แบตเตอรี่ก็ได้

โอเค มีตัวอย่างให้ดูแล้ว... แต่ทีนี้ จะใช้ยังไงให้ถูกต้องล่ะ?

คำตอบคือ ดู Schematic ให้เป็น! (เดี๋ยวพี่จะอธิบายต่อในตอนหน้า อย่าเพิ่งหนีนะ)

ข้อมูล Frontmatter ดั้งเดิม

title: "Using External power suppplies with Arduino explained!"
description: "Hey you, welcome to another tutorial! I'm Back to show how to use correctly any external power supply with Arduino! Enjoy!"
author: "bruno_opaiva"
category: ""
tags:
  - "remote control"
views: 8905
likes: 0
price: 699
difficulty: "Intermediate"
components:
  - "1x Arduino UNO"
  - "1x AA Batteries"
  - "1x Arduino Nano R3"
  - "1x Breadboard (generic)"
  - "1x Arduino Mega 2560"
  - "1x 10 Pc. Jumper Wire Kit, 5 cm Long"
  - "1x 9V battery (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "87a11ad84ea7712ea9bd32b54d8b03acbfa3b73e9925ed7f6b83eeafbb159b8f"
encryptedPayload: "U2FsdGVkX1/Y4eqXkei0a+8sL4vZ0B5lwaRJ/yukcQJ30/0N12g/V8I1WmKnfzvJAWItg1MB6FfLi8z9D62BaUlZ6Fa5iD6UFYcwbZBjs6g="
seoDescription: "Learn how to correctly use an External power supply with Arduino. Safe wiring tips and power management for your DIY projects."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/using-external-power-suppplies-with-arduino-explained-8a1536_cover.jpg"
lang: "th"