The relay: coil, armature and NO/NC contactsรีเลย์: คอยล์ อาร์เมเจอร์ และหน้าสัมผัส NO/NC

Raise the coil current past the pull-in threshold and watch the armature snap over, in the circuit symbol and inside the part, switching the load on.เพิ่มกระแสคอยล์ให้เกินค่าดึงเข้าแล้วดูอาร์เมเจอร์สะบัดข้าม ทั้งในสัญลักษณ์วงจรและภายในตัวอุปกรณ์ แล้วโหลดก็ทำงาน

Loading module…กำลังโหลดโมดูล…

Inside a relay

A relay is a switch worked by an electromagnet. A coil is wound on an iron core. Above it, a hinged iron armature is held up by a spring, and the armature carries the moving contact, called COM. With no coil current the spring holds COM against the normally closed contact, NC. Pass current through the coil and the core becomes a magnet, pulls the armature down against the spring, and COM moves over to the normally open contact, NO.

Reading the circuit symbol

On a circuit diagram the coil is a rectangle with two terminals, usually A1 and A2, labelled with the relay’s name, such as K1. The contacts are drawn as a switch: a blade at COM that rests on NC and can move to NO. A dashed line from the coil to the blade means they are one part, linked mechanically rather than electrically.

Contacts are always drawn in their de-energized position, so NC is shown closed and NO open.

  • A1, A2: the coil terminals
  • COM: common, the moving contact
  • NC: normally closed, joined to COM while the coil is off
  • NO: normally open, joined to COM only while the coil is energized

Coil current and pull-in

The coil is a resistance, so its current follows Ohm’s law. The armature moves only once that current makes enough magnetic force to beat the spring: the pull-in current. Below it nothing happens, however close you get; above it the armature snaps over.

I_coil = V_coil / R_coil
energized when I_coil ≥ I_pull-in
I_load = V_load / R_load   (through NO, only while energized)

Why use a relay

The coil circuit and the contact circuit are electrically separate. A few milliamps from a 5 V microcontroller, through a transistor, can switch a 230 V mains load with no electrical connection between the two. A diode is fitted across the coil in practice, because the coil’s inductance kicks back a high voltage when it is switched off.

Worked example (the simulator’s default values)

  1. V_coil = 5 V, R_coil = 400 Ω, pull-in 20 mA; the load is 12 V across 100 Ω, wired through NO.
  2. I_coil = 5 / 400 = 12.5 mA, below 20 mA: the relay stays de-energized, COM rests on NC and no load current flows.
  3. To pull in, the coil needs at least 20 mA × 400 Ω = 8 V.
  4. At 12 V: I_coil = 30 mA, the armature pulls in, COM closes onto NO and I_load = 12 / 100 = 0.12 A.

Common mistakes

  • Reading NO and NC from a powered relay. Normally open and normally closed describe the contacts with no coil current, which is also how they are drawn.
  • Driving a relay coil straight from a microcontroller pin. Most coils need more current than a pin can give, and the switch-off spike can damage it; use a transistor and a flyback diode.
  • Expecting it to release at the pull-in current. Real relays let go at a lower drop-out current, which stops them chattering; the simulator uses one threshold for both.

Common questions

How does a relay work?

Current through the coil magnetizes an iron core, which pulls a hinged armature against a spring. The armature moves the common contact from NC to NO. Cut the current and the spring pulls it back.

What do NO and NC mean on a relay?

NO (normally open) connects to COM only while the coil is energized. NC (normally closed) connects to COM while the coil is off. Both names describe the relay at rest.

What is relay pull-in current?

The smallest coil current that makes enough magnetic force to pull the armature over. With a coil resistance R, it sets the minimum coil voltage, I_pull-in × R.

ภายในรีเลย์

รีเลย์คือสวิตช์ที่ทำงานด้วยแม่เหล็กไฟฟ้า คอยล์พันอยู่บนแกนเหล็ก เหนือขึ้นไปมีอาร์เมเจอร์เหล็กแบบบานพับถูกสปริงยกไว้ อาร์เมเจอร์พาหน้าสัมผัสที่เคลื่อนที่ได้ซึ่งเรียกว่า COM เมื่อไม่มีกระแสคอยล์ สปริงกด COM ไว้กับหน้าสัมผัสปกติปิด NC เมื่อจ่ายกระแสให้คอยล์ แกนเหล็กจะกลายเป็นแม่เหล็ก ดึงอาร์เมเจอร์ลงชนะแรงสปริง และ COM ย้ายไปแตะหน้าสัมผัสปกติเปิด NO

การอ่านสัญลักษณ์วงจร

ในแผนภาพวงจร คอยล์เขียนเป็นสี่เหลี่ยมที่มีสองขั้ว ปกติคือ A1 และ A2 พร้อมชื่อรีเลย์ เช่น K1 หน้าสัมผัสเขียนเป็นสวิตช์ คือใบสวิตช์ที่ COM ซึ่งพักอยู่ที่ NC และย้ายไป NO ได้ เส้นประจากคอยล์ไปยังใบสวิตช์หมายความว่าทั้งสองเป็นอุปกรณ์ชิ้นเดียวกัน เชื่อมกันทางกล ไม่ใช่ทางไฟฟ้า

หน้าสัมผัสจะเขียนในสถานะที่ไม่ได้จ่ายไฟเสมอ NC จึงแสดงเป็นปิด และ NO แสดงเป็นเปิด

  • A1, A2: ขั้วของคอยล์
  • COM: ขั้วร่วม คือหน้าสัมผัสที่เคลื่อนที่
  • NC: ปกติปิด ต่อกับ COM ขณะคอยล์ไม่ได้รับไฟ
  • NO: ปกติเปิด ต่อกับ COM เฉพาะขณะคอยล์ได้รับไฟ

กระแสคอยล์และค่าดึงเข้า

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

I_coil = V_coil / R_coil
ทำงานเมื่อ I_coil ≥ I_pull-in
I_load = V_load / R_load   (ผ่าน NO เฉพาะขณะทำงาน)

ทำไมต้องใช้รีเลย์

วงจรคอยล์และวงจรหน้าสัมผัสแยกจากกันทางไฟฟ้า กระแสไม่กี่มิลลิแอมป์จากไมโครคอนโทรลเลอร์ 5 V ผ่านทรานซิสเตอร์ สวิตช์โหลดไฟบ้าน 230 V ได้โดยไม่มีการเชื่อมต่อทางไฟฟ้าระหว่างกัน ในทางปฏิบัติจะต่อไดโอดคร่อมคอยล์ไว้ เพราะความเหนี่ยวนำของคอยล์สร้างแรงดันย้อนกลับสูงเมื่อถูกตัดไฟ

ตัวอย่างการคำนวณ (ค่าเริ่มต้นของโปรแกรมจำลอง)

  1. V_coil = 5 V, R_coil = 400 Ω, ค่าดึงเข้า 20 mA โหลดคือ 12 V คร่อม 100 Ω ต่อผ่าน NO
  2. I_coil = 5 / 400 = 12.5 mA ต่ำกว่า 20 mA รีเลย์จึงไม่ทำงาน COM พักอยู่ที่ NC และไม่มีกระแสโหลด
  3. คอยล์ต้องการแรงดันอย่างน้อย 20 mA × 400 Ω = 8 V จึงจะดึงเข้า
  4. ที่ 12 V: I_coil = 30 mA อาร์เมเจอร์ดึงเข้า COM แตะ NO และ I_load = 12 / 100 = 0.12 A

ข้อผิดพลาดที่พบบ่อย

  • อ่าน NO และ NC จากรีเลย์ที่กำลังได้รับไฟ ปกติเปิดและปกติปิดหมายถึงหน้าสัมผัสเมื่อไม่มีกระแสคอยล์ ซึ่งก็คือสถานะที่ใช้เขียนในแผนภาพด้วย
  • ขับคอยล์รีเลย์จากขาไมโครคอนโทรลเลอร์โดยตรง คอยล์ส่วนใหญ่ต้องการกระแสมากกว่าที่ขาจ่ายได้ และแรงดันกระชากตอนตัดไฟอาจทำให้เสียหาย ควรใช้ทรานซิสเตอร์และไดโอดกันแรงดันย้อนกลับ
  • คาดว่ารีเลย์จะปล่อยที่ค่ากระแสดึงเข้า รีเลย์จริงปล่อยที่กระแสดรอปเอาต์ซึ่งต่ำกว่า ช่วยไม่ให้หน้าสัมผัสสั่นกระพือ โปรแกรมจำลองใช้ค่าขีดเดียวสำหรับทั้งสองกรณี

คำถามที่พบบ่อย

รีเลย์ทำงานอย่างไร?

กระแสผ่านคอยล์ทำให้แกนเหล็กเป็นแม่เหล็ก ดึงอาร์เมเจอร์แบบบานพับให้ชนะสปริง อาร์เมเจอร์ย้ายหน้าสัมผัสร่วมจาก NC ไป NO ตัดกระแสแล้วสปริงจะดึงกลับ

NO และ NC บนรีเลย์หมายถึงอะไร?

NO (ปกติเปิด) ต่อกับ COM เฉพาะขณะคอยล์ได้รับไฟ NC (ปกติปิด) ต่อกับ COM ขณะคอยล์ไม่ได้รับไฟ ทั้งสองชื่ออธิบายรีเลย์ในสภาวะพัก

กระแสดึงเข้าของรีเลย์คืออะไร?

กระแสคอยล์ที่น้อยที่สุดที่สร้างแรงแม่เหล็กพอจะดึงอาร์เมเจอร์ข้ามไป เมื่อคอยล์มีความต้านทาน R ค่านี้กำหนดแรงดันคอยล์ต่ำสุดเท่ากับ I_pull-in × R