pybricks / support

Pybricks support and general discussion
MIT License
109 stars 7 forks source link

Getting Huskylens working on SPIKE Prime with Pybricks #1284

Open weichunmei opened 12 months ago

weichunmei commented 12 months ago

Hi All,

"I followed the steps in the post 'How to use the Huskylens with LEGO SPIKE Prime or Robot Inventor', to use Huskylens on Spike Prime V3.0. When I copied the script from 'Library/SPIKEInstaller.py' and ran it on LEGO Education Spike V3.3.1 software, it prompted 'no module named 'machine''. I later found that it seems to be missing the 'Pybricks' library. How can I use non-official LEGO sensors on the Spike Prime V3.0 device?"@laurensvalk @antonvh

antonvh commented 11 months ago

Hi, this is not a Pybricks issue, so it doesn't really belong here. The problem is that neither Pybricks firmware nor LEGO SPIKE3 support a protocol that Huskylens uses: you need UART or I2C. The best solution is to add an LMS-ESP32 board inbetween the Huskylens and the LEGO. That board is able to do voltage conversion, so the huskylens gets power. And the board is also abe to emulate the LEGO protocol, so the Huskylens can pose as a real LEGO sensor. https://www.antonsmindstorms.com/product/wifi-python-esp32-board-for-mindstorms/

Alternatively, you can downgrade to SPIKE2 or Inventor firmware.

datastormg commented 1 month ago

I purchased this item from this store https://www.antonsmindstorms.com/product/wifi-python-esp32-board-for-mindstorms/ and more than 20 days ago, and I still haven't received it.

laurensvalk commented 1 month ago

I would recommend contacting their customer service. They're really nice folks, so I'm sure they're happy to help you with their products.