So I bought one of their "Power Up cable" and tested. Future internet travellers, please read below and be warned.
TL;DR
The Power Up cable from Light My Bricks is not compatible with the Raspberry Pi Build HAT.
When trying to use the cable with nothing connected to its female plug and instantiating it as a Light (88005), it detects it as a Passive Motor (and fails to instantiate):It is indeed possible to instantiate it as a PassiveMotor:However, the lights don't work properly. Even by increasing the power limit and playing with the speed parameter, the lights will always be dimmed (at various intensity) and in some cases blinking.
I have also tried to use the cable with a Lego motor (88013) connected to its female plug, but here also it detects it only as a PassiveMotor:
Instantiating it as a PassiveMotor in this setup, the lights behave exactly like in the first case above. Note that the motor connected is completely non-reactive to any commands.
Thus, my conclusion is that the Light My Bricks Power Up cable is not compatible with the Raspberry Pi Build HAT.
TL;DR
The Power Up cable from Light My Bricks is not compatible with the Raspberry Pi Build HAT.
When trying to use the cable with nothing connected to its female plug and instantiating it as a Light (88005), it detects it as a Passive Motor (and fails to instantiate):
Code:
>>> from buildhat import Light>>> light = Light('A')Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pi/.local/lib/python3.9/site-packages/buildhat/light.py", line 22, in __init__ super().__init__(port) File "/home/pi/.local/lib/python3.9/site-packages/buildhat/devices.py", line 68, in __init__ raise DeviceError(f'There is not a {type(self).__name__} connected to port {port} (Found {self.name})')buildhat.exc.DeviceError: There is not a Light connected to port A (Found PassiveMotor)
Code:
>>> from buildhat import PassiveMotor>>> motor = PassiveMotor('A')
I have also tried to use the cable with a Lego motor (88013) connected to its female plug, but here also it detects it only as a PassiveMotor:
Code:
>>> from buildhat import Motor>>> motor = Motor('A')Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/pi/.local/lib/python3.9/site-packages/buildhat/motors.py", line 108, in __init__ super().__init__(port) File "/home/pi/.local/lib/python3.9/site-packages/buildhat/devices.py", line 68, in __init__ raise DeviceError(f'There is not a {type(self).__name__} connected to port {port} (Found {self.name})')buildhat.exc.DeviceError: There is not a Motor connected to port A (Found PassiveMotor)
Thus, my conclusion is that the Light My Bricks Power Up cable is not compatible with the Raspberry Pi Build HAT.
Statistics: Posted by achevall — Wed Mar 06, 2024 8:21 pm