JF-0530B Solenoid EN: 두 판 사이의 차이
잔글편집 요약 없음 |
잔글 (→Example Usage) |
||
| 26번째 줄: | 26번째 줄: | ||
It is difficult to supply the current required to operate the JF-0530B solenoid directly from the Arduino's digital pins. | 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 [[ | To solve this, we use a [[Relay Module En|Relay Module]] or [[MOSFET Driver Module(IRF520)|MOSFET]] to safely control the current. | ||
'''<u>Be careful as the solenoid may heat up if operated for long periods of time with short intervals.</u>''' | '''<u>Be careful as the solenoid may heat up if operated for long periods of time with short intervals.</u>''' | ||
| 40번째 줄: | 40번째 줄: | ||
Therefore, it is best to select and use them appropriately based on the situation. | Therefore, it is best to select and use them appropriately based on the situation. | ||
=== 1. Using [[ | === 1. Using [[Relay Module En|Relay Module]] === | ||
==== Circuit Configuration ==== | ==== Circuit Configuration ==== | ||
| 96번째 줄: | 96번째 줄: | ||
</div> | </div> | ||
=== 2. Using [[MOSFET Driver Module (IRF520)|MOSFET]] === | === 2. Using [[MOSFET Driver Module(IRF520)|MOSFET]] === | ||
==== Circuit Configuration ==== | ==== Circuit Configuration ==== | ||
| 165번째 줄: | 165번째 줄: | ||
<youtube> 0Ue7LJmvt88 </youtube> | <youtube> 0Ue7LJmvt88 </youtube> | ||
</div> | </div> | ||
2025년 3월 27일 (목) 21:35 기준 최신판

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