JF-0530B Solenoid EN: 두 판 사이의 차이

아두위키 : Arduwiki
(새 문서: {{#seo:|title=アドウィキ:Arduino JF-0530Bソレノイドガイド|title_mode=append|keywords=Arduino, 情報科学, メーカーレーニング, 実施評価, ソレノイド, Arduinoプロジェクト, キャップストーンプロジェクト, Arduino例コード|description=このガイドでは、Arduinoを使用してJF-0530Bソレノイドを制御する方法(基本情報、回路、例コード)を紹介します。情報科学とメーカーレッスンに...)
 
잔글편집 요약 없음
1번째 줄: 1번째 줄:
{{#seo:|title=アドウィキ:Arduino JF-0530Bソレノイドガイド|title_mode=append|keywords=Arduino, 情報科学, メーカーレーニング, 実施評価, ソレノイド, Arduinoプロジェクト, キャップストーンプロジェクト, Arduino例コード|description=このガイドでは、Arduinoを使用してJF-0530Bソレノイドを制御する方法(基本情報、回路、例コード)を紹介します。情報科学とメーカーレッスンに役立ちます。}}
{{#seo:|title=Arduino Wiki: JF-0530B Solenoid Guide|title_mode=append|keywords=Arduino, Information Science, Maker Learning, Performance Evaluation, Solenoid, Arduino Projects, Capstone Projects, Arduino Example Code|description=This guide introduces how to control the JF-0530B solenoid with Arduino (basic information, circuit, example code). It is useful for information science and maker classes.}}


[[파일:JF0530B솔레노이드메인.jpg|center|class=coders100]]
[[파일:JF0530B솔레노이드메인.jpg|center|class=coders100]]


== '''概要''' ==
== '''Overview''' ==
JF-0530Bソレノイドは、電気信号を機械的運動に変換する装置で、電磁誘導原理が使用されます。
The JF-0530B solenoid is a device that converts electrical signals into mechanical motion, using the principle of electromagnetic induction.


電流が流れると磁場により鉄心が前方に動き、電流が切れるとバネによって元の位置に戻ります。
When current flows, the iron core moves forward due to the magnetic field, and when the current is cut off, the iron core returns to its original position by the spring.


=== 動作原理 ===
=== Working Principle ===
電流が流れると磁場を生成するコイルで構成されています。電流がコイルを通過すると、磁場が形成され、それに応じて内部の可動鉄心が移動します。この過程で機械的動作(直線運動)が発生し、電源が遮断されると、鉄心は元の位置に自動的に戻ります。
It is composed of a coil that generates a magnetic field when current flows. When current passes through the coil, a magnetic field is formed, and the movable iron core inside moves accordingly. This process generates mechanical motion (linear motion), and when the power is turned off, the iron core automatically returns to its original position.


== '''仕様''' ==
== '''Specifications''' ==
{| class="wikitable"
{| class="wikitable"
|'''サイズ'''
|'''Size'''
|(本体) 30.1 x 13.2 mm / 鉄心含む約61mm
|(Body) 30.1 x 13.2 mm / Including iron core approximately 61mm
|-
|-
|'''電圧'''
|'''Voltage'''
|6V、12Vなど、本文では6Vモデルを使用
|6V, 12V, etc. In this example, the 6V model is used.
|-
|-
|'''タイプ'''
|'''Type'''
|Push & Pull
|Push & Pull
|}
|}


== '''活用例''' ==   
== '''Example Usage''' ==   
ArduinoのデジタルピンではJF-0530Bソレノイドに必要な電流供給が難しいです。
It is difficult to supply the current required to operate the JF-0530B solenoid directly from the Arduino's digital pins.


これを解決するために[[アドウィノ リレー モジュール|リレーモジュール]][[モスフェット ドライバ モジュール(IRF520)|モスフェット]]を使用して、安全に電流を制御します。
To solve this, we use a [[Arduino Relay Module|Relay Module]] or [[MOSFET Driver Module (IRF520)|MOSFET]] to safely control the current.


'''<u>短時間に長時間動作させるとソレノイドに発熱が生じ、熱くなる可能性があるので注意してください。</u>'''
'''<u>Be careful as the solenoid may heat up if operated for long periods of time with short intervals.</u>'''


=== リレーとモスフェットの違い ===
=== Difference Between Relay and MOSFET ===


モスフェットはスイッチング時に消費電力が少なく、電子的スイッチングであるため、リレーに比べて非常に速い速度で動作します。
MOSFETs consume less power during switching, and since they are electronically controlled switches, they operate much faster than relays.


また、機械的部品がないため物理的な動きが必要なリレーよりも長い寿命を持つという利点があります。
Moreover, they do not have mechanical parts, which gives them a longer lifespan compared to relays that require physical movement.


しかし、リレーは高い電圧や電流を処理できるという利点があり、Arduinoとデバイス間で電気的な分離が必要な場合にはより適しています。
However, relays can handle higher voltages or currents and are more suitable when electrical isolation is needed between the Arduino and devices.


したがって、状況に応じて適切に選択して使用することが望ましいです。
Therefore, it is best to select and use them appropriately based on the situation.


=== 1. [[アドウィノ リレー モジュール|リレーモジュール]]の活用 ===
=== 1. Using [[Arduino Relay Module|Relay Module]] ===


==== 回路構成 ====
==== Circuit Configuration ====
{| class="wikitable"
{| class="wikitable"
|+
|+
!Arduino
!Arduino
!リレー
!Relay
!ソレノイド
!Solenoid
!外部電源
!External Power
|-
|-
|5V
|5V
56번째 줄: 56번째 줄:
|GND
|GND
|GND
|GND
|黒い線
|Black wire
|黒い線または-極
|Black wire or negative terminal
|-
|-
|D4
|D4
65번째 줄: 65번째 줄:
| |
| |
|COM
|COM
|赤い線
|Red wire
| |
| |
|-
|-
| |
| |
|NO
|NO
|赤い線または+極
|Red wire or positive terminal
|}
|}


==== [[파일:JF0530B솔레노이드릴레이회로.jpg|center|class=coders100]] ====
==== [[파일:JF0530B솔레노이드릴레이회로.jpg|center|class=coders100]] ====


==== 例コード ====
==== Example Code ====
<syntaxhighlight lang="c++" line="1">
<syntaxhighlight lang="c++" line="1">
const int relay = 4;
const int relay = 4;
91번째 줄: 91번째 줄:
</syntaxhighlight>
</syntaxhighlight>


==== 実行結果 ====
==== Execution Result ====
<div class="coders70">
<div class="coders70">
<youtube> _m0ttN4cD88 </youtube>
<youtube> _m0ttN4cD88 </youtube>
</div>
</div>


=== 2. [[モスフェット ドライバ モジュール(IRF520)|モスフェット]]の活用 ===
=== 2. Using [[MOSFET Driver Module (IRF520)|MOSFET]] ===


==== 回路構成 ====
==== Circuit Configuration ====
{| class="wikitable"
{| class="wikitable"
|+
|+
!Arduino
!Arduino
!モスフェット
!MOSFET
!ソレノイド
!Solenoid
!外部電源
!External Power
|-
|-
|5V
|5V
128번째 줄: 128번째 줄:
| |
| |
|Vin
|Vin
|赤い線または+極
|Red wire or positive terminal
|-
|-
| |
| |
|GND
|GND
|黒い線または-極
|Black wire or negative terminal
|-
|-
| |
| |
|V+
|V+
|赤い線
|Red wire
|-
|-
| |
| |
|V-
|V-
|黒い線
|Black wire
|}
|}


[[파일:JF0530B솔레노이드모스펫회로1.jpg|center|class=coders100]]
[[파일:JF0530B솔레노이드모스펫회로1.jpg|center|class=coders100]]


==== 例コード ====
==== Example Code ====
<syntaxhighlight lang="c++" line="1">
<syntaxhighlight lang="c++" line="1">
const int mosfet = 4;
const int mosfet = 4;
161번째 줄: 161번째 줄:
</syntaxhighlight>
</syntaxhighlight>


==== 実行結果 ====
==== Execution Result ====
<div class="coders70">
<div class="coders70">
<youtube> 0Ue7LJmvt88 </youtube>
<youtube> 0Ue7LJmvt88 </youtube>
</div>
</div>
== '''Purchase Link''' == 
[https://gongzipsa.com/shop/1737703728 GongzipSa Mall]

2025년 3월 27일 (목) 21:34 판


Overview

The JF-0530B solenoid is a device that converts electrical signals into mechanical motion, using the principle of electromagnetic induction.

When current flows, the iron core moves forward due to the magnetic field, and when the current is cut off, the iron core returns to its original position by the spring.

Working Principle

It is composed of a coil that generates a magnetic field when current flows. When current passes through the coil, a magnetic field is formed, and the movable iron core inside moves accordingly. This process generates mechanical motion (linear motion), and when the power is turned off, the iron core automatically returns to its original position.

Specifications

Size (Body) 30.1 x 13.2 mm / Including iron core approximately 61mm
Voltage 6V, 12V, etc. In this example, the 6V model is used.
Type Push & Pull

Example Usage

It is difficult to supply the current required to operate the JF-0530B solenoid directly from the Arduino's digital pins.

To solve this, we use a Relay Module or MOSFET to safely control the current.

Be careful as the solenoid may heat up if operated for long periods of time with short intervals.

Difference Between Relay and MOSFET

MOSFETs consume less power during switching, and since they are electronically controlled switches, they operate much faster than relays.

Moreover, they do not have mechanical parts, which gives them a longer lifespan compared to relays that require physical movement.

However, relays can handle higher voltages or currents and are more suitable when electrical isolation is needed between the Arduino and devices.

Therefore, it is best to select and use them appropriately based on the situation.

1. Using Relay Module

Circuit Configuration

Arduino Relay Solenoid External Power
5V VCC
GND GND Black wire Black wire or negative terminal
D4 INI
COM Red wire
NO Red wire or positive terminal

Example Code

const int relay = 4;

void setup() {
  pinMode(relay, OUTPUT);
}

void loop() {
  digitalWrite(relay, LOW);
  delay(3000);
  digitalWrite(relay, HIGH);
  delay(3000);
}

Execution Result

2. Using MOSFET

Circuit Configuration

Arduino MOSFET Solenoid External Power
5V VCC
GND GND
D4 SIG
COM
NO
Vin Red wire or positive terminal
GND Black wire or negative terminal
V+ Red wire
V- Black wire

Example Code

const int mosfet = 4;

void setup() {
  pinMode(mosfet, OUTPUT);
}

void loop() {
  digitalWrite(mosfet, LOW);
  delay(3000);
  digitalWrite(mosfet, HIGH);
  delay(3000);
}

Execution Result

Purchase Link

GongzipSa Mall