JF-0530B Solenoid EN: 두 판 사이의 차이
(새 문서: {{#seo:|title=アドウィキ:Arduino JF-0530Bソレノイドガイド|title_mode=append|keywords=Arduino, 情報科学, メーカーレーニング, 実施評価, ソレノイド, Arduinoプロジェクト, キャップストーンプロジェクト, Arduino例コード|description=このガイドでは、Arduinoを使用してJF-0530Bソレノイドを制御する方法(基本情報、回路、例コード)を紹介します。情報科学とメーカーレッスンに...) |
잔글편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
{{#seo:|title= | {{#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- | 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''' | ||
|( | |(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 | |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 [[Arduino Relay Module|Relay Module]] or [[MOSFET Driver Module (IRF520)|MOSFET]] to safely control the current. | |||
'''<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. | |||
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. [[ | === 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