Engines/Motors with and without the LEGO logo; the latter works with Spike Prime, but not with PyBricks #2347
Replies: 5 comments 8 replies
-
|
We've had other folks do the same thing: #2305 If someone wants to do some reverse engineering and finds that there is a trivial way to support them, we would consider it. But personally, I'm not keen on supporting knock-off products. |
Beta Was this translation helpful? Give feedback.
-
|
Okay. I understand. Just for information: I also tested this with a small Spike Essential hub and a large Spike Prime: Same result. |
Beta Was this translation helpful? Give feedback.
-
|
Could you please try these instructions to help us gather a bit more information about these devices? This may help us fix it. Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
David
Really appreciate the reply. Here they are:
https://www.aliexpress.com/item/1005006913609638.html?spm=a2g0o.order_list.order_list_main.26.38041802J2PL05
Remote sensor (joystick), potentiometer and distance sensor (looks like Lego IR)
Any tips on how I’d go about modifying the class to support any protocol modifications required would be appreciated
|
Beta Was this translation helpful? Give feedback.
-
|
David,
For the Joystick I get:
{'id': 34, 'modes': (('LPF2-ANGLE', 2, 0), ('LPF2-TILT', 1, 0), ('LPF2-CRASH', 3, 0), ('LPF2-CAL', 3, 0))}
For the IR/distance sensor I get:
{'id': 35, 'modes': (('LPF2-DETECT', 1, 0), ('LPF2-COUNT', 1, 2), ('LPF2-CAL', 3, 1))}
For the potentiometer I get an error when using the PUPDevice command:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV:
A sensor or motor is not connected to the specified port:
…--> Check the cables to each motor and sensor.
--> Check the port settings in your script.
--> Check the line in your script that matches
the line number given in the 'Traceback' above.
Thank you!
Russ
From: David Lechner ***@***.***>
Sent: 26 October 2025 21:41
To: pybricks/support ***@***.***>
Cc: russm1981 ***@***.***>; Comment ***@***.***>
Subject: Re: [pybricks/support] Engines/Motors with and without the LEGO logo; the latter works with Spike Prime, but not with PyBricks (Discussion #2347)
I didn't see any technical documentation there. So you would just have to play around with it.
You should be able to do something like:
sensor = PUPDevice(Port.A)
print(sensor.info())
This will print out the available modes, etc. Then you can try to play around with reading data from the various modes until you find one that works.
—
Reply to this email directly, view it on GitHub <#2347 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BCWDYYXUS3KVSI3SUR5T23L3ZU5W7AVCNFSM6AAAAACGBQ5556VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINZYG4ZTANQ> .
You are receiving this because you commented. <https://github.com/notifications/beacon/BCWDYYTD6NHWIBCFATZW5Q33ZU5W7A5CNFSM6AAAAACGBQ5556WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQA4GROU.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Today I tried a simple program on the Technic hub with Lego Spike Prime motors. I have the original motors and a dozen or so purchased on AliExpress (without the LEGO logo, but they work perfectly in Spike Prime). When I connect the ones without the logo in Pybricks, I get a hangup next to: a = Motor(Port.A) or a message that there's no motor connected to Port A at all. Is there a way to fix this? It would be great if they worked here too.
Beta Was this translation helpful? Give feedback.
All reactions