KS0320 Keyestudio Electromagnet Module (Black and Environmental-friendly): Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:


== Keyestudio Electromagnet Module(Black and Environmental-friendly) ==


<br>[[File:KS0320 图片1.png|500px|frameless|thumb]]<br>
<br>[[File:KS0320 图片1.png|600px|right|thumb| Keyestudio Electromagnet Module ]]<br>


<br>
== Description ==
== Description ==
This module mainly contains an electromagnet. A magnet that generates a magnetic field from an electric current. <br>
This module mainly contains an electromagnet. A magnet that generates a magnetic field from an electric current. <br>
It uses the principle of electro-magnetic. With a straight metal wire passing through the current, the space around the wire will produce a circular magnetic field. In order to concentrate the magnetic field, the coil inside the electromagnet is wound into a coil, and many lines are arranged side by side, so that all the magnetic fields of the coil pass through the center of the coil, forming a strong magnetic field there, which can make it absorb a 1kg ferromagnetic.  <br>
It uses the principle of electro-magnetic. With a straight metal wire passing through the current, the space around the wire will produce a circular magnetic field. In order to concentrate the magnetic field, the coil inside the electromagnet is wound into a coil, and many lines are arranged side by side, so that all the magnetic fields of the coil pass through the center of the coil, forming a strong magnetic field there, which can make it absorb a 1kg ferromagnetic.  <br>
When using this module, you can control the electromagnet on and off by controlling the High or Low level on its Signal end.<br>
When using this module, you can control the electromagnet on and off by controlling the High or Low level on its Signal end.<br>
<span style ="color:red">When using, we can connect the module to the arduino MCU. After using 5V power supply, connect the SIG pin of the module to the PWM port of the arduino board, set the PWM value, and adjust the magnetic field of the module. The larger the PWM value, the larger the magnetic field.</span><br>


<br>[[File:KS0320 电磁铁模块 黑色 (6).jpg|500px|frameless|thumb]]<br>
<br>[[File:KS0320 电磁铁模块 黑色 (6).jpg|500px|frameless|thumb]]<br>
<br>


== Features ==
== Features ==
Line 16: Line 25:
*Electromagnet electric iron shell, less remanence, integrated molding, strong magnetic conductivity.
*Electromagnet electric iron shell, less remanence, integrated molding, strong magnetic conductivity.


<br>
== Parameters ==
== Parameters ==
* Working Voltage: 3.3-5V   
* Working Voltage: DC 5V
* Wiring Type: 3PIN  
* Working current: 0.3A (maximum) 
* Maximum power: 3W 
* Interface Type: 3PIN (pin pitch of 2.54mm)
<br>


<br>[[File:KS0320 图片2.png|500px|frameless|thumb]]<br>
== PINOUTS==
<br>[[File:KS0320 图片2.png|600px|frameless|thumb]]<br>


<br>
== Connection Diagram ==
== Connection Diagram ==
Connect up this module and UNO board like this: SIG pin to Digital port 3, VCC pin to 5V, GND pin to the ground port. Shown as below.
Connect up this module and UNO board like this: SIG pin to Digital port 3, VCC pin to 5V, GND pin to the ground port. Shown as below.<br>
 
<br>[[File:KS0320 图片3.png|500px|frameless|thumb]]<br>  
<br>[[File:KS0320 图片3.png|500px|frameless|thumb]]<br>  


 
<br>
== Example Code ==
== Example Code 1 ==
Now, open up the Arduino IDE and type in the following code:
Now, open up the Arduino IDE and type in the following code: <br>
<pre>
<pre>
int Solenoid = 3;    //define digital port 3
int Solenoid = 3;    //define digital port 3
Line 44: Line 59:
}
}
</pre>
</pre>
<br>


== Example Code 2 ==
<pre>
int Solenoid = 3;    //define digital port3
void setup() 
{       
  pinMode(Solenoid, OUTPUT);  //set Solenoid as OUTPUT
}
void loop()                   
{
  analogWrite(Solenoid, 250);
  delay(2000); //delay 2S
  analogWrite(Solenoid, 10);
  delay(2000); //delay 2S
  analogWrite(Solenoid, 150); 
  delay(2000);  //delay 2S 
  analogWrite(Solenoid, 50);
  delay(2000); //delay 2S 
}
</pre>


== Example Result ==
== Example Result 1 ==
After wiring, upload the above code to the board, if put an iron screwdriver close to the electromagnet module, they should be available to attract together for two seconds, then lose its magnetic attraction for two seconds, circularly.
After wiring, upload the above code to the board, if put an iron screwdriver close to the electromagnet module, they should be available to attract together for two seconds, then lose its magnetic attraction for two seconds, circularly.
<br>[[File:KS0320 图片4.png|500px|frameless|thumb]]<br>  
<br>[[File:KS0320 图片4.png|600px|frameless|thumb]]<br>  


<br>
== Example Result 2 ==
After uploading code 2, the magnetic field strength of the electromagnet on the module changes continuously and circulates alternately.
<br>


== Resources ==
== Resources ==


[https://drive.google.com/open?id=13uK39ObCEFyimm_VRRe6UO5V7PYpzfmS  File Download ]
*[https://fs.keyestudio.com/KS0320  Click here to download the datasheet and code]
 
<br>


== Buy From ==
== Buy From ==


http://www.keyestudio.com/ks0320.html
*[https://www.keyestudio.com/new-keyestudio-electromagnet-module-for-arduino-diy-projects-p0057.html    Official website ]
 
*[https://www.aliexpress.com/store/product/NEW-Keyestudio-Electromagnet-Module-For-Arduino-DIY-Projects/1452162_32890500288.html?spm=2114.12010615.8148356.1.2c2e51daooADFt  Shop on aliexpress ]
 
*[https://www.amazon.com/KEYESTUDIO-Electromagnet-Module-Arduino-Environmental-Friendly/dp/B07H3V8N2Q?ref_=w_bl_hsx_s_pc_web_13497667011      Shop on  amazon]








  [[Category:Module ]]
[[Category: Module]]

Latest revision as of 11:41, 25 March 2021



Keyestudio Electromagnet Module



Description

This module mainly contains an electromagnet. A magnet that generates a magnetic field from an electric current.
It uses the principle of electro-magnetic. With a straight metal wire passing through the current, the space around the wire will produce a circular magnetic field. In order to concentrate the magnetic field, the coil inside the electromagnet is wound into a coil, and many lines are arranged side by side, so that all the magnetic fields of the coil pass through the center of the coil, forming a strong magnetic field there, which can make it absorb a 1kg ferromagnetic.
When using this module, you can control the electromagnet on and off by controlling the High or Low level on its Signal end.

When using, we can connect the module to the arduino MCU. After using 5V power supply, connect the SIG pin of the module to the PWM port of the arduino board, set the PWM value, and adjust the magnetic field of the module. The larger the PWM value, the larger the magnetic field.





thumb


Features

  • Small electromagnet induction, with high strength suction.
  • Electromagnet built-in pure copper coil, strong conductivity, low power consumption.
  • Electromagnet electric iron shell, less remanence, integrated molding, strong magnetic conductivity.


Parameters

  • Working Voltage: DC 5V
  • Working current: 0.3A (maximum)
  • Maximum power: 3W
  • Interface Type: 3PIN (pin pitch of 2.54mm)


PINOUTS


thumb


Connection Diagram

Connect up this module and UNO board like this: SIG pin to Digital port 3, VCC pin to 5V, GND pin to the ground port. Shown as below.

thumb


Example Code 1

Now, open up the Arduino IDE and type in the following code:

int Solenoid = 3;    //define digital port 3
 void setup()  
 {        
  pinMode(Solenoid, OUTPUT);  //set Solenoid as OUTPUT
}
 void loop()                     
{
  digitalWrite(Solenoid, HIGH);// Solenoid is effective
  delay(2000); // delay 2S
  digitalWrite(Solenoid, LOW);  // Solenoid is non-effective
  delay(2000);  //delay 2S      
}


Example Code 2

int Solenoid = 3;    //define digital port3
 void setup()  
 {        
  pinMode(Solenoid, OUTPUT);  //set Solenoid as OUTPUT
}
 void loop()                     
{
  analogWrite(Solenoid, 250);
  delay(2000); //delay 2S
  analogWrite(Solenoid, 10);
  delay(2000); //delay 2S
  analogWrite(Solenoid, 150);  
  delay(2000);  //delay 2S   
  analogWrite(Solenoid, 50);
  delay(2000); //delay 2S  
}

Example Result 1

After wiring, upload the above code to the board, if put an iron screwdriver close to the electromagnet module, they should be available to attract together for two seconds, then lose its magnetic attraction for two seconds, circularly.
thumb



Example Result 2

After uploading code 2, the magnetic field strength of the electromagnet on the module changes continuously and circulates alternately.


Resources


Buy From