I have multiple neo-pixel light fixtures which are each driven by their own Arduino Uno. The lights have their own 5v power supply which is also powering the Arduino via the Vin pin. The light fixtures all need to be centrally controlled (animation, color, brightness etc.) and the way I'm doing that is to send serial data over USB to each of the Arduino from a central computer (in this case a Raspberry Pi). The exact configuration I'm looking to achieve is in this crude diagram.
I have a few questions about a configuration like this:
Does providing 5v to the Vin of an Arduino Uno also provide 5v to the rest of the USB hub or chain it is attached to?
Given that each Arduino is externally powered in this way, is the signal likely to degrade over the distance of the extensions?
I know there are depth limits to the extent you can daisy chain USB hubs, but in this configuration is there any limit to the length I can extend the signal from the raspberry pi. Presumably I could comfortably get to a total of 5m from the raspberry pi but am I likely to need an active extension to get further, or will the USB hubs serve this purpose?
I have a LED strip project running on a ESP32 and communicates with a RPi through MQTT.
On the RPi I run a Python program that connects the 12 ESP32's together. From my web site I can view the ESP32's data and change the ESP32's setting, the RPi serves as the go between my website and the ESP32's. Anyways, I can change the gain of the sound modules on the LED strip project.
Oh, IF you use powered hubs you should be good to go.
IIRC there is a limit to the amount of hubs that can be chained.
It is a while since I did it here but each needs it's own PSU and each PSU needs to be capable of supplying the whole load to that one single hub.
Hey, Thanks for replying. This project I'm asking about is really one small part of a much larger project which needs to be very modular and involves very many parts. ultimately we'll be dealing with dozens of Raspberry pis connected to hundreds of Arduinos. All the other elements I have working so far work with Arduinos connected to the Pis through USB which makes it simple to get sensor info, give serial commands, or update the sketches on the Arduinos (which all have different roles throughout the project) and I am hoping that I can also control the lighting in a similar way. From my perspective it would make more sense to extend the maximum length of the USB line with an active extender before I try to add another layer of complexity with a different protocol or hardware. The point is that it's a good idea but I'm trying to make it work with USB
Yes I believe you're right about the limit. It would be possible for me to use active powered hubs at each lighting fixture I'm just hoping the quality of the serial command signals from the Pi will not degrade over the length of the cables. I will probably be able to do something of a test soon. Thanks for replying
Yeah I'm certainly trying to avoid a repeater. the question is ultimately if I'll be able to if I want to extend the signal further than 5m from the Pi with self powered hubs every 1.5m or so. If not I'll end up having to do some kind of wireless control. Thanks for your help so far