极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 101042|回复: 33

arduino控制WS2812灯条!

[复制链接]
发表于 2013-9-16 22:39:44 | 显示全部楼层 |阅读模式
本帖最后由 XANK 于 2013-9-16 22:40 编辑

最近入手了卷WS2812的LED灯条,可以控制到每一盏灯,而且只需要一根数据线!和大家分享下

WS2811 LED的WIKI :
http://wiki.hacdc.org/index.php/WS2811_Digital_RGB_LED#Individual_LEDs
库下载:
https://github.com/adafruit/Adafruit_NeoPixel

连接方法很简单:
一根数据线和接地即可
灯条每米9W,需要单独供电






----------------
下一步打算做随音乐变化的效果,请大神们指点指点哈!!


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

发表于 2013-9-16 23:01:26 | 显示全部楼层
本帖最后由 hisky 于 2013-9-16 23:21 编辑

外接的电源是什么方法呢?用三极管扩流吗?看了下楼主提供的网页,直接下图这样接线就可以了吧?

On the ATX power supply, short the green wire on the 24 pin connector to one of the black wires on the same connector, and that will make the power supply turn on. Plug it in and test that it comes on.

Check the voltage across a red and black line coming out of the power supply, it should provide +5v dc. Turn off your power supply. Connect the above-mentioned lines to the red and black wires on the light strip, (which are labeled +5V and GND where it connects to the light strip, in tiny typeface.)

Connect the blue line from the light strip, (which connects to the LED strip at the point labeled DIN), to pin 6 on your Arduino. Connect the black line from the LED strip to the Ground pin on your Arduino.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2013-9-16 23:26:42 | 显示全部楼层
请问这样接线可以吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-16 23:28:28 | 显示全部楼层
hisky 发表于 2013-9-16 23:26
请问这样接线可以吗?

对的!图画的不错哦,用什么画的?
回复 支持 反对

使用道具 举报

发表于 2013-9-16 23:31:11 | 显示全部楼层
powerpoint画的,这里还有一个ws2811的库据说也不错。

http://funkboxing.com/wordpress/?p=1761
回复 支持 反对

使用道具 举报

发表于 2013-9-17 02:21:27 来自手机 | 显示全部楼层
2812和2811有什么区别?
回复 支持 反对

使用道具 举报

发表于 2013-9-17 08:38:05 | 显示全部楼层
这是个好东西
回复 支持 反对

使用道具 举报

发表于 2013-9-17 18:43:12 | 显示全部楼层
这一米得50左右吧
回复 支持 反对

使用道具 举报

发表于 2013-9-17 20:00:29 | 显示全部楼层
关注中,之前试过hl1606
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-19 11:12:33 | 显示全部楼层
hisky 发表于 2013-9-16 23:31
powerpoint画的,这里还有一个ws2811的库据说也不错。

http://funkboxing.com/wordpress/?p=1761

不错的库,WS2812也能用!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-19 11:13:42 | 显示全部楼层
____消失灬 发表于 2013-9-17 18:43
这一米得50左右吧

不用,35左右就够了
回复 支持 反对

使用道具 举报

发表于 2013-9-19 11:46:32 | 显示全部楼层
XANK 发表于 2013-9-19 11:13
不用,35左右就够了

是么  去看看   看过一个国外的网站  就用的W2812led  做的东西
回复 支持 反对

使用道具 举报

发表于 2013-9-19 20:30:03 | 显示全部楼层
做个流光溢彩吧,看起来真的很炫 http://v.youku.com/v_show/id_XMzU3MjU3OTI4.html
回复 支持 反对

使用道具 举报

发表于 2013-9-20 23:23:04 | 显示全部楼层
XANK 发表于 2013-9-19 11:13
不用,35左右就够了

淘宝嘛?给个地址看看的!
回复 支持 反对

使用道具 举报

发表于 2013-9-22 10:31:51 | 显示全部楼层
价格与每米的led数有关吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-20 01:30 , Processed in 0.040771 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表