We are using the UC2 Controller boards, the LED Matrix and a motorized Z-stage, but I am running into a problem. Everytime within a notebook or running a script I turn on the LED Matrix and move the motor I get a permission denied error. I can control them separately but not at the same time.
The error is:
‘Failed to read the line in serial: ClearCommError failed (PermissionError(13, ‘Access is denied.’, None, 5))’
I think this is due to a bad power management on the old UC2v2 board. The USB doesn’t provide enough current, hence the voltage drops and disconnects from the OS for a short time. The only way to mitigate it is side-power the 5V from a power supply or use lower intensities from the LED matrix.
Thank you for your answer, sadly I was using the power supply. However today I tried a fresh start, including reflashing the boards and now they all consistently work?
Was that a question mark or a explanation mark?
The old board do not have a power converter, so only 12V for the motors will be deliverd. If the USB doesn’t provide enough juice, the Neopixel array may eat up everything and the ESP32 may brown out…but if this is not the case - perfect!
Both since I was confused why it now worked haha. Did not know about the power only providing the motors but makes sense and good to keep in mind. Luckily it works now!