안녕하세요
참고하신 튜토리얼은 해당제품용 튜토리얼이 아니고 유사품인 RGB LED Chain 제품입니다.
사용법이 유사하지만 케이블 색상 배열등이 다를 수 있습니다.
해당 제품의 사용법은 링크된 예제소스의 상단주석에 안내되어 있으니 다시 확인해보시기 바랍니다.
아트로봇 드림
--이하 상단 주석 내용 일부 발췌 --
Nathan Seidle
SparkFun Electronics 2011
This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
Controlling an LED strip with individually controllable RGB LEDs. This stuff is awesome.
The SparkFun (individually controllable) RGB strip contains a bunch of WS2801 ICs. These
are controlled over a simple data and clock setup. The WS2801 is really cool! Each IC has its
own internal clock so that it can do all the PWM for that specific LED for you. Each IC
requires 24 bits of 'greyscale' data. This means you can have 256 levels of red, 256 of blue,
and 256 levels of green for each RGB LED. REALLY granular.
To control the strip, you clock in data continually. Each IC automatically passes the data onto
the next IC. Once you pause for more than 500us, each IC 'posts' or begins to output the color data
you just clocked in. So, clock in (24bits * 32LEDs = ) 768 bits, then pause for 500us. Then
repeat if you wish to display something new.
This example code will display bright red, green, and blue, then 'trickle' random colors down
the LED strip.
You will need to connect 5V/Gnd from the Arduino (USB power seems to be sufficient).
For the data pins, please pay attention to the arrow printed on the strip. You will need to connect to
the end that is the begining of the arrows (data connection)--->
If you have a 4-pin connection:
Blue = 5V
Red = SDI
Green = CKI
Black = GND
If you have a split 5-pin connection:
2-pin Red+Black = 5V/GND
Green = CKI
Red = SDI
*/
int SDI = 2; //Red wire (not the red 5V wire!)
int CKI = 3; //Green wire
int ledPin = 13; //On board LED
---------- Original Message ----------
RGB LED 32개 주문한사람입니다
RGB 모듈?
<어디가 시작이고 어디가 끝인지를 구분하시기 위해 모듈 밑면에 있는 화살표를 참고하시면 됩니다.
시작모듈에 케이블을 연결하시면 됩니다.>
이라고 적혀있는데 전혀 화살표표시도없고 어디가 시작하는선인지 끝인지 모르겠습니다.
그리고 처음 접해보는거라 인터넷에 올려와있는 설명으로는 이해가안갑니다.
RED , BLUE , GREEN , YELLOW 선이 2개 있고 RED , YELLOW 선이 1개있습니다
4가지색의 종류 선이 2개 인데 두개 연결하는건지 잘모르겠습니다..
회원에게만 댓글 작성 권한이 있습니다.