Ks0225 keyestudio EASY plug Green LED Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 32: Line 32:
<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:Ks0225-图片1.png|500px|frameless|thumb]]<br>
int led = 9;
void setup()
{
pinMode(led, OUTPUT);//Set Pin9 as output
}
void loop()
{
digitalWrite(led, HIGH);//Turn led on
delay(1000);
digitalWrite(led, LOW);//Turn led off
delay(1000);
}
</pre>


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




<br>
<br>
==Resources ==
==Resources ==
'''Download the PDF and Code:'''<br>
'''Download the Arduino Code and datasheet:'''<br>
https://drive.google.com/open?id=1EJXC7qK9lSbyzXl3NCFqxzBGEmcb88y-
https://drive.google.com/open?id=1ZCRsMS-CT-9LYVoGhTi-28MEExiZ399H


'''Download the Mixly Code and datasheet:'''<br>
https://drive.google.com/open?id=1kWQN4RRNIakyprFz-S9GFYSFxzfVAtHx


<br>
<br>

Revision as of 11:55, 8 May 2019


Keyestudio EASY plug Green LED Module


Introduction

This is a special EASY plug green LED module. When connecting to ARDUINO, after programming, it can emit green 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, red, yellow and white.


Features

  • Sensor type: Digital
  • Working voltage: 5V
  • LED color: green
  • 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

Download the Arduino Code and datasheet:
https://drive.google.com/open?id=1ZCRsMS-CT-9LYVoGhTi-28MEExiZ399H

Download the Mixly Code and datasheet:
https://drive.google.com/open?id=1kWQN4RRNIakyprFz-S9GFYSFxzfVAtHx


Buy from