Hello! I'm posting here because I can't find a satisfying answer elsewhere (I could be using bad search terms).
I am in early stages of making my own lightsaber. I am looking into using an arduino nano but the hardware could be changed if needed (my thinking for this question is that most controllers have a usb connection and might operate similarly). I am going through ideas of how to make the light part detachable and I thought of using the magnet detachable usb heads that can rotate (You might find them if you google "magnetic usb cable"). This would allow me to send power and data to the light-rod which would allow me to animate it while not worrying as much of the connection between handle and rod. Using a breakoutboard or pcb female side to connect power and data to the controller is easy enough, but I had an idea of maybe this connection could double as debugging (or updating) the controller. You would just plug in a usb cable to the same connection and your computer instead of the light-rod. This would however mean you'd have to be able to send the data to the LED-strip in the light-rod through one of the USB-leads. I'm not sure this is possible without it messing with the usb-protocol and similar. Could you have wiring for both functions that are physically switched? Could you through software let the controller take manual control of one of the usb-leads? I know you can send data back that's serialized but I have a sneaking suspicion that manual control of the data is harder (or impossible). Is there any clever solution around this were I can still have double functionality through the same connection?
I do realize this is a broad question and I apologize for that. If there's an obvious solution that I'm not seeing I would be happy to hear about that too. Thanks for any and all help!