Ks0232 keyestudio Red Piranha LED Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
==Introduction==
==Introduction==
This is a special LED module. When you connect it to ARDUINO development board, after program, it can emit beautiful light. Of course, you can also control it using PWM. It will be like fireflies at night. Isn’t cool? We can also combine it with other sensors to do various interesting interactive experiments. <br>
This is a special LED module. When you connect it to ARDUINO development board, after program, it can emit beautiful light. Of course, you can also control it using PWM. It will be like fireflies at night. Isn’t cool? We can also combine it with other sensors to do various interesting interactive experiments. <br>
Note: You can also choose other LED to emit different color of light like blue, green, yellow and white.<br>
Note: You can also choose other LED to emit light of different colors like blue, green, yellow and white.<br>


==Specification==
==Specification==
Line 14: Line 14:


==Connection Diagram ==
==Connection Diagram ==
<br>[[File:KS0232-2.png|500px|frameless|thumb]]<br>
<br>[[File:KS0232-2.png|600px|frameless|thumb]]<br>


==Sample Code==
==Sample Code==
Line 30: Line 30:
}
}
</pre>
</pre>
==Resources ==
'''Datasheet'''
http://www.keyestudio.com/files/index/download/id/1499917984/
==Buy from ==
http://www.keyestudio.com/red-piranha-led-module.html
[[category:Module]]

Latest revision as of 08:49, 28 April 2021

Red Piranha LED Module


thumb

Introduction

This is a special LED module. When you connect it to ARDUINO development board, after program, it can emit beautiful light. Of course, you can also control it using PWM. It will be like fireflies at night. Isn’t cool? We can also combine it with other sensors to do various interesting interactive experiments.
Note: You can also choose other LED to emit light of different colors like blue, green, yellow and white.

Specification

  • Module type: digital
  • Working voltage: 5v
  • Distance between pins: 2.54mm
  • Size: 30*20mm
  • Weight: 3g

Connection Diagram


thumb

Sample Code

int led = 3; 
void setup()
{
  pinMode(led, OUTPUT);     //Set Pin3 as output
}
void loop()
{      digitalWrite(led, HIGH);   //Turn off led
          delay(2000);
          digitalWrite(led, LOW);    //Turn on led
          delay(2000);
}