Ks0224 keyestudio EASY plug Red LED Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
<br>
<br>
== Introduction ==
== Introduction ==
This is a special EASY plug red LED module. When connecting to ARDUINO, after programming, it can emit red light.  
This is a special EASY plug red LED module. When connecting to ARDUINO, after programming, it can emit red light. <br>
For easy use, the module’s 3pin are brought out as a crystal head socket. The socket is compatible with EASY plug Control board V2.0
For easy use, the module’s 3pin are brought out as a crystal head socket. The socket is compatible with EASY plug Control board V2.0
You should connect the LED module to control board for communication using an RJ11 cable.
You should connect the LED module to control board for communication using an RJ11 cable.<br>
You can combine with other sensors to do various interactive experiments.  
You can combine with other sensors to do various interactive experiments.  
You can also choose other LED modules to emit different light color like blue, green, yellow and white.
You can also choose other LED modules to emit different light color like blue, green, yellow and white.


<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>


<br>
<br>
== Features ==
== Features ==
* Interface: Easy plug
* Interface: Easy plug
Line 34: Line 37:
<br>
<br>
== Upload the Code ==
== Upload the Code ==
Copy and paste below code to Arduino IDE and upload.   <br>
Below is an example code for LED blinking. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<pre>
<br>[[File:ks0398 2.2.png|500px|frameless|thumb]]<br>
int led = 9;
 
void setup()
<br>
{
==What You Should See==
pinMode(led, OUTPUT);//Set Pin9 as output
<br>[[File:ks0398 2-2.png|600px|frameless|thumb]]<br>
}
<br>
void loop()
The LED will flash on for one second, then blink off for one second. <br>
{
<br>[[File:ks0398 2-3.png|600px|frameless|thumb]]<br>
digitalWrite(led, HIGH);//Turn led on
<br>
delay(1000);
If it doesn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board.<br>
digitalWrite(led, LOW);//Turn led off
delay(1000);
}
</pre>


<br>
<br>
== What You Should See ==
<span style="color: red">'''Little Knowledge:'''</span> <br>
The LED will flash on for one second, then off for one second. <br>
If you want to make the LED flash on and off more quickly or slowly, you can modify the Delay time here.<br>
If it doesn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board. <br>
<br>[[File:ks0398 2-4.png|500px|frameless|thumb]]<br>
 


<br>
<br>


==Resources ==
==Resources ==
'''Download the PDF:'''<br>


https://fs.keyestudio.com/KS0224


<br>


<br>
==Buy from ==
==Buy from ==



Latest revision as of 08:23, 8 January 2021


Keyestudio EASY plug Red LED Module


Introduction

This is a special EASY plug red LED module. When connecting to ARDUINO, after programming, it can emit red light.
For easy use, the module’s 3pin are brought out as a crystal head socket. The socket is compatible with EASY plug Control board V2.0 You should connect the LED module to control board for communication using an RJ11 cable.
You can combine with other sensors to do various interactive experiments. You can also choose other LED modules to emit different light color like blue, green, yellow and white.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Features

  • Interface: Easy plug
  • Sensor type: Digital
  • Working voltage: 5V
  • LED color: red
  • Easy to use
  • Useful for light projects


Technical Details

  • Dimensions: 34mm*20mm*18mm
  • Weight: 3.8g


Connect It Up

Connect the EASY Plug LED module to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.

thumb


Upload the Code

Below is an example code for LED blinking. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See


thumb

The LED will flash on for one second, then blink off for one second.

thumb

If it doesn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board.


Little Knowledge:
If you want to make the LED flash on and off more quickly or slowly, you can modify the Delay time here.

thumb



Resources

https://fs.keyestudio.com/KS0224


Buy from