기술문의 :)

기술문의 게시판 입니다.

뒤로가기
제목

연결방법 문의드립니다.

작성자 아트로봇(ip:)

작성일 2014-04-11 12:02:25

조회 130

평점 0점  

추천 추천하기

내용

안녕하세요

 

소스코드는 아래의 페이지에서 다운로드 하시면됩니다.

https://github.com/adafruit/Adafruit_NeoPixel

 

 

아래와 같이 안내되어 있습니다.

Arduino library for controlling single-wire-based LED pixels and strip such as the Adafruit 60 LED/meter Digital LED strip, the Adafruit FLORA RGB Smart Pixel, the Adafruit Breadboard-friendly RGB Smart Pixel, the Adafruit NeoPixel Stick, and the Adafruit NeoPixel Shield.

After downloading, rename folder to 'Adafruit_NeoPixel' and install in Arduino Libraries folder. Restart Arduino IDE, then open File->Sketchbook->Library->Adafruit_NeoPixel->strandtest sketch.

 

 

위와 같이 설치하신뒤,   strandtest 예제를 여시면됩니다.

 

소스코드 상단에  안내된내용에 따라 일부 값을 변경해주시면됩니다.

또한 아두이노와 연결시  DIN 핀에는  아래소스코드에서 정의해주신 핀(여기선 D6) 연결하시면됩니다.

 

 

특히 이부분을 변경해주시면됩니다.

Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);

 

픽셀수만 아래와 같이 바꾸시고  나머지는 그대로 두시면될것 같습니다.


Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, PIN, NEO_GRB + NEO_KHZ800);

 

#include <Adafruit_NeoPixel.h>

#define PIN 6

// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, PIN, NEO_GRB + NEO_KHZ800);

// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel. Avoid connecting
// on a live circuit...if you must, connect GND first.

 

 

아트로봇 드림


---------- Original Message ----------

 아래 질문을 보았는데 홈페이지 링크를 따라서 코딩을 해봤지만 영 동작이 되질않네요

 좀 부탁드리겟습니다.

 https://github.com/adafruit/Adafruit_NeoPixel/commit/a4c78e6e1f2d40e8b96a0f79204c752dbed40f71

이쪽에 들어가서 프로그램을 보았는데

LED를 어느 Port 에 연결이 되어있는지를 모르겠습니다.

제발 부탁드리겠습니다.


첨부파일

비밀번호
수정

비밀번호 입력후 수정 혹은 삭제해주세요.

댓글목록

등록된 댓글이 없습니다.

댓글 수정

이름

비밀번호

내용

/ byte

수정 취소

비밀번호 :

확인 취소

댓글 입력

이름

비밀번호

내용

/ byte

평점

왼쪽의 문자를 공백없이 입력하세요.

회원에게만 댓글 작성 권한이 있습니다.

관련 글 보기

  • 반응속도 질문입니다. 김세용 2014-06-23 14:33:14 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 반응속도 질문입니다. 아트로봇 2014-06-23 18:06:42 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 연결방법 문의드립니다. 김주호 2014-04-10 20:22:48 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 연결방법 문의드립니다. 아트로봇 2014-04-11 12:02:25 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 입고문의 전재열 2013-12-27 16:07:16 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 입고문의 아트로봇 2013-12-28 07:20:58 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 연결법에 및 예제소스에 대해서 질문입니다. 이윤구 2013-11-17 21:10:47 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 연결법에 및 예제소스에 대해서 질문입니다. 아트로봇 2013-11-18 18:31:22 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 개별색상제어 윤성재 2013-09-13 02:48:53 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

  • 개별색상제어 아트로봇 2013-09-23 09:32:33 0점 [TA1426] RGB 칼라픽셀 - LED 8개 스틱형 - 개별색상제어 가능( NeoPixel Stick - 8 x WS2812 5050 RGB LED with Integrated Drivers)

follow us