邻域宽同步LED

Introduction: Neighborhood Wide Synchronized LEDs

简介:一个从小就有各种典型症状的制造商,一个机器人制造者,一个互联网软件CTO/技术产品经理。

我有一些无线LED酒吧that I thought I could put out for the holidays. But, in my yard, they could also just as well have been wired. So, what is the cooler challenge? LED decorations at all the houses on my block with a synchronized display! In this crazy year, it's a way to connect us together.

这些是ESP8266电源LED股线,它们是连接的WiFi网格,因此它们同时显示了动画序列中的相同步骤。由于它们使用网格代码来连接,因此它们可以分开几个房屋,并且消息将从节点传递到节点。

他们在5伏特上运行,我用了电力适配器,但它们也可以在USB电池上运行一段时间。因此,它们是便携式的,运行自己的WiFi网络未连接到Internet,并且可以运行网格。

我们所有的邻居都很高兴能够拥有这种共同的装饰,并且真的很好,你如何看到所有这些都在沿着街道走路时显示同样的展示。我在我家前面有一些照片进行测试,但真的很难在街上拍摄它们。

第一步:零件

ESP8266 D1迷你- 我使用了D1迷你模块,因为我所需要的只是LED的一个数据线。可以使用使用焊接来完成这个项目终端屏蔽如此和一个不同的esp8266模块。

WS2811 LED Strands- I used WS2811 strands since they are waterproof (except for the JST connectors) and easy to work with. WS2812b strips would use exactly the same code etc. I used 5v ones, but you can get them in 12v (use less current) - you would need a voltage converter for the ESP8266s, then. You can also get WS2811 LED strands with waterproof connectors if you would like. The LED strands I used have JST SM connectors on both ends - the female one is the input, though I have seen them wired the other way (male as input). The direction is also marked on the LEDs themselves. There are also power injection wires - I snipped the ends off so the tinned parts cannot short out. You can also buy them in包装10

330欧姆1/4瓦电阻器- 这是在ESP8266上的数据引脚上使用,以防止LED的任何闪烁。

JST SM 3 PIN阳连接器- 这些是连接到LED条。请注意,“男性”连接器有一块罩。

2.1mm CCTV Female Connector- 这些用于电源连接器。如果需要,您可以使用其他其他连接系统系统。

5V电源- AMP评级取决于您将有多少LED。对于50个或100个LED可能无法完全开启(有关详细信息,请参阅接线步骤)。

JST SM 3 Pin Extension Wire或者2.1mm延长线- since the JST connector on the D1 Mini is close to the LEDs, you generally want an extension to allow the LEDs to be placed further away from the CPU. In my case, I ended up putting the CPU higher up in the decoration to get better WiFi range, so I kept the CPU near the LEDs and used a 2.1mm extension wire instead.

USB to 2.1mm Cable-这是可选的-允许您从任何USB电源或电池供电。

3mm Heat Shrink Tubing- 您只需要大约1“以覆盖D1迷你的电阻。

20mm透明热缩管-这部分是可选的,以保护D1 Mini上的接头。如果管路压缩开关,则确保在应用后夹住复位开关。

防水箱- to protect the power supply and CPU outside. Most of my neighbors just used plastic bags.

1/2" EMT conduit- 一件29英寸贴合糖果甘蔗形状 - 我使用了4拉链链条to hold it on. I tried 1/2" PVC, and it fits, but touches the LEDs on both sides.

3/8“x 3”钢筋- once the EMT is attached to the shape, you can pound the rebar in the ground and put the EMTpipe over it. 1/2" rebar will fit, but you will need to cut off any bent parts, and it is close - if it gets flattened or anything when pounding it in, it will be very tight. So, the 3/8" is more likely to easily clear the inside diameter of the EMT pipe.

柺杖糖形状- 看到这些上的一步,你可以像灌木丛一样覆盖它们,或者使用这样的形状。

第2步:控制器组件

该控制器包括D1迷你(ESP8266),2.1mm CCTV母电源插孔,330欧姆电阻和3针JST公连接器。

The assumption for this project is that you will use 50-100 LEDs. If you want to use more, you will need to use power injection to power all the LEDs. See this其他可指示的更深入的讨论。

全白色50个LED,它们会绘制50 x 0.06a = 3amps。因此,使用2A适配器,我们假设他们永远不会完全打开。对于100个LED,最大值为6A,所以甚至不应在一次只有一些内容。即使有100个LED,每个LED都有0.02A,我们也使用了2安培。因此,建议使用较高的电流供应,但我调整了显示器,不要立即使用所有LED或颜色,使它们降低了很多,并且已经开始使用2A的储备提供更大的电源。这是一篇很棒的文章on reducing power requirements.

与数据线的330欧姆电阻内联是为了防止电子振铃闪烁,因为数据是相当高的频率。这是一个具有很多LED的因素,但是添加它是一个很好的做法。

我直接向D1迷你焊接到D1迷你,但留下了大约1/8英寸的铅,所以我可以弯曲它们平坦。电阻上的3mm热收缩约1英寸的3mm热缩,以防止它留出来木板。

我用20毫米透明热缩保护D1迷你从接触金属等,一定要检查复位开关的一面-你可能需要削减热缩轻微,以确保它在不按下开关。我所有的衣服都需要这个。

请注意,我似乎没有从3.3V esp8266输出和运行时运行的LED级别换档器(因为LED芯片规格是数据线不低于供电的70%)。我确实需要一个二极管/牺牲LED以前的项目(步骤3)带有WS2812B条,但到目前为止,LED中的直接WS2811芯片似乎正常。

你不用焊接就可以做到!安ESP8266终端屏蔽with a different CPU would work just as well. The D1 Mini form factor is nice and small, but they all work about the same.

第3步:形状

LED股线可以是自由形式的,或者您可以将它们变成形状 - 无论是DIY,还是来自在线商店。我订购了一些形状HolidayCoro- some small LED trees, a stocking, and a candy cane. The stocking took 50 LEDs nicely - the length of one strand. The small tree takes 100 LEDs, but you can just do half of it if you want - facing the street. In the end the candy cane was the neighbor favorite since it was a bit larger. 99 LEDs, and I left the last one on the back with the idea it could be used for debugging.

Since the shapes came in white, we decided to paint red stripes on them so they look better in the day time. I masked them out, did a quick fine sand, a wipe with acetone (full strengthnail polish remover),并使用了两层spray paint对塑料起作用。它似乎粘得很好。我们主要是在一边做的,在另一边做了一些有两间房子的房子。

第4步:代码和WiFi

The D1 Mini uses an Espressif ESP8266 module. I programmed it using the Arduino IDE, so it feels like a powerful Arduino with WiFi built in. There are numerous instructions on the Internet on how to configure the Arduino IDE for the ESP8266 and D1 Mini so I will not repeat them here.

代码基于上一个可指示的。它使用无痛的网格库,让所有CPU彼此交谈。我使用了Fistled Library,因为我以前使用了网格库和Neopixel库的问题,并且我没有重新测试这次。

I am not sure what the maximum is on the number of nodes. Some posts indicate that it will be limited by the number of messages and CPU types and maybe the cap is around 30-60 nodes. This application does not send a lot of messages - just the animation change and the time messages.

您可以在编码时将LED连接到D1迷你,但如果您有超过50个,则可能需要外部电源,因为您可能超过计算机USB端口和D1迷你电源调节器的电源。那个说,通过我的代码没有全面打开LED,我能够在没有问题的情况下在USB连接上编程100个LED。

ESP8266模块具有板载WiFi。由于我们使用的mesh代码在每个模块上创建了一个访问点,因此邻域范围的范围非常重要。我用糖果棒的形状,把CPU放在顶端,以获得最佳的范围,它是大约50-100英尺-一码或两码在我的邻居。更高更好的视线(LOS)改善了情况。在某些情况下,该范围确实穿过街道(更多地取决于阻塞服务水平的车辆)。

There are D1 Mini and other ESP8266 chips with u.FL antenna ports so you can use a 2.4Ghz antenna for better range.

There were a couple WiFi gaps, where the lights looked fine, but were not synchronized. For those, I made a D1 Mini module on a solar USB battery (or extension cord) between them without the LED code - just a node in the mesh to pass the commands around. Make sure these do not have the lowest chip id since the other nodes would assume the commands are coming from that one! If you run the same code with no LEDs attached, that would be fine too.

Step 5: Final Assembly

Once you have the controller ready and programmed, all you need to do is connect the LEDs to the controller with the JST wires, and a 5v power supply on the 2.1mm jack.

JST扩展应该有助于使控制器和电源适配器始终远离led。或者,为了提高CPU的高度,我在上面放了一个小塑料袋,用一条2.1毫米的延长线连接电源。

防水盒将有助于保护适配器和CPU,但我的大部分邻居使用简单的塑料袋。

节日装饰速度挑战

这是一个条目
节日装饰速度挑战

Be the First to Share

    Recommendations

    • 电池供电竞赛

      电池供电竞赛
    • Plywood Challenge

      Plywood Challenge
    • 塑料竞赛

      塑料竞赛

    4讨论

    1
    ellygibson

    2天前

    Wow what a cool idea!

    0
    卡尔

    回复10小时前

    谢谢!

    1
    kenbob.

    1天前

    喜欢这个!清洁完全建立一个辉煌的想法。
    正在将此添加到我的项目列表:)

    0
    卡尔

    回复10小时前

    谢谢!