esp8266 pixel contr...
 
Notifications
Clear all

esp8266 pixel controller

9 Posts
3 Users
0 Reactions
5,668 Views
Posts: 313
Topic starter
(@ee351)
Reputable Member
Joined: 13 years ago
[#36490]

This looks interesting:

http://www.esp8266.com/viewtopic.php?f=6&t=1441

Apparently someone has been working on a pixel controller with the esp8266 WiFi module that doesn't require a separate microcontroller. Unfortunately, this code only reads Tpm2.net protocol, which I don't think any of the free, more common sequencers use. I've been meaning to learn how to use the sdk for this module, this is as good of a reason as any to give it a try.


8 Replies
Posts: 1133
(@toozie21)
Noble Member
Joined: 19 years ago

I hadn't heard of the 8266. A $5 TTL to WiFI module? That is pretty sweet in its own right!!


Reply
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago

I've also been working on a controller with this module. It works with sACN too. The biggest challenge with it is that it doesn't scale well when used as a standard wifi device. And because of this it has a very high likelihood of people getting themselves in trouble with it. It does work well, but only in isolation in a controlled environment. IMO it needs to be packaged as a complete system solution to become a viable product around here.
Also, developing for this board isn't for the faint of heart. It's one of the most difficult toolchains I've ever had to put together.

--Jon Chuchla--

Sent from my iPhone using Tapatalk


Reply
Posts: 1133
(@toozie21)
Noble Member
Joined: 19 years ago
jchuchla wrote:I've also been working on a controller with this module. It works with sACN too. The biggest challenge with it is that it doesn't scale well when used as a standard wifi device. And because of this it has a very high likelihood of people getting themselves in trouble with it. It does work well, but only in isolation in a controlled environment. IMO it needs to be packaged as a complete system solution to become a viable product around here.
Also, developing for this board isn't for the faint of heart. It's one of the most difficult toolchains I've ever had to put together.

--Jon Chuchla--

Sent from my iPhone using Tapatalk

Some good info there, thanks for the insight Jon.

Out of curiosity, are you saying that you are trying to come up with a new controller for our market?


Reply
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago

Maybe. I really don't want to get myself into the hardware support business. But if I put the effort into making it a turnkey package, it may be something I'll put out there. If I do, it will be thru one of the existing sellers.
Right now it works well, but is very sensitive to a lot of variables. The key to making it widely available will be securing the wireless network and keeping other devices completely off of it. I haven't really gone this far yet, but it will probably involve a dedicated access point running custom software.

--Jon Chuchla--

Sent from my iPhone using Tapatalk


Reply
Posts: 1133
(@toozie21)
Noble Member
Joined: 19 years ago

Very cool, good luck! I love homegrown products (and wish I had more time to help out with them).

Is there anything that can be done to tweak the WiFi just enough that it functions fine, but only with other tweaked units? This way they don't get interfered with by normal running WiFi? I am thinking changing a preamble, or a clock rate, or something of that ilk? Just enough of a change that they still function fine, but can't interact with unchanged units.


Reply
Posts: 313
Topic starter
(@ee351)
Reputable Member
Joined: 13 years ago
jchuchla wrote:Maybe. I really don't want to get myself into the hardware support business. But if I put the effort into making it a turnkey package, it may be something I'll put out there. If I do, it will be thru one of the existing sellers.
Right now it works well, but is very sensitive to a lot of variables. The key to making it widely available will be securing the wireless network and keeping other devices completely off of it. I haven't really gone this far yet, but it will probably involve a dedicated access point running custom software.

--Jon Chuchla--

Sent from my iPhone using Tapatalk

Would you mind sharing your work? I'd like to try it, even if it isn't 100% complete.


Reply
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago

This device (like most wireless devices) really works best in a broadcast or multicast mode. It's far more efficient on the network and the radio waves. This also helps to keep timing in sync and deterministic. In wifi, multicast operation will always automatically cause the network to configure itself to use the lowest common denominator. This brings into play things like power saving mode and link speed. What I've been finding is that if a device that prefers power savings mode even attempt to join the wifi network, the access point will switch to a much slower mode to accommodate this device. This includes pretty much every smartphone or battery powered wifi device. When this happens the wifi access point will throttle down and you get visible artifacts on the lights. It's not really lag but rather dropped frames. If you configure the network to only accept connection attempts to certain devices, it works. This of course requires an access point that allows such restriction. I've been doing it with dd-wrt. My strategy has been using a hidden ssid and Mac restrictions this keeps rough devices from seeing the AP ant attempting connections. The ssid can be hard coded into the receiver modules and the Mac range controlled to a range allowed by the AP. This keeps the wifi network working at a consistent rate.
Due to the low price and small size, these modules lend themselves well to individual string control, and as such you're likely to use less than a universe per receiver. This further begs for multicast operation. In wifi, multicast is more like broadcast, but in a selective manner. If any client wants to receive the stream, it is broadcast. If none requests it, it's not sent at all. The access point really needs to act as a multicast router to manage this. That's not a big deal. Such functionality can easily be added to a Linux based access point.
I'd also like to build a mechanism for the access point to act as a reflection server for the data stream. In this way it could receive the data in various formats (sACN multicast, unicast, ArtNet) and then condense and rebroadcast it over the wifi segment. This would allow it to compact the incoming streams so that the wifi packets are packed with minimal overhead. It also allows the AP to act as a bridge/translator giving the system a wider variety of protocol support and flexibility for the end user's preferences from the sequencer side.
The tool chain for programming these modules is not yet a well packaged solution. There's a bunch of steps required to gather all of the pieces and put them together so you can compile and load code to these modules. A network based bootloader is really needed to make them easy enough to configure and upgrade.
I'd really like to see a system where the end points themselves are not directly configured, but rather the access point serves as the configuration portal/proxy. It would incorporate auto discovery of the nodes and present it as a list of devices that can be configured and used. If the access point is part of the solution, this can all be done with scripting.

--Jon Chuchla--

Sent from my iPhone using Tapatalk


Reply
jchuchla
Posts: 8698
(@jchuchla)
Illustrious Member
Joined: 15 years ago
EE351 wrote:Would you mind sharing your work? I'd like to try it, even if it isn't 100% complete.

This is a project I'm not likely to open source.


Reply
Share: