Huskylens blocly

Hi all,

Last year i used microbit maqueens for my students to learn about vision. My students are 15 years old and like the blockly environment very much. The XRP robot is more advanced as the maqueen, but i don’t see a place for addons in the programming environment. Is it possible to connect huskylens to xrp and program via blockly?

Thanks for the help

We are working on a version of XRPCode that will allow vendors like Huskylens or Sparkfun to make the drivers easy to install and allow the 3rd party to add blocks to the system. We expect to go into beta at the beginning of November and release in December.

Hi there! Sorry for not responding sooner, I’ve been out for a bit!

The HuskyLens can be used with the XRP right now with our drivers, however only in MicroPython, not Blockly yet. As mentioned above, XRPCode doesn’t yet have a built-in way to install those drivers onto the XRP, so it’s a manual process:

  1. Download our qwiic_huskylens driver here (just the qwiic_huskylens.py file)
    1. Optionally download the examples here
  2. Download our qwiic_i2c driver here (all files within the qwiic_i2c folder)
  3. Go to XRPCode and connect your XRP
  4. In the file browser on the left, right-click the lib directory → New Folder → name it qwiic_i2c exactly
  5. Click File → Upload to XRP → select qwiic_huskylens.py you downloaded in step 1 → click the lib directory → click OK to upload the file
  6. Click File → Upload to XRP → select all files in theqwiic_i2c folder you downloaded in step 2 → click the lib/qwiic_i2c directory → click OK to upload the files
  7. If you downloaded the examples, click File → Upload to XRP → select the example files you downloaded in step 1.1 → click the \ directory at the top → click OK to upload the files

If you installed the examples, you can run them to see how to get data out of the HuskyLens, and use more of the advanced features. Again, only MicroPython support right now; no Blockly support right now, but it will become possible with the upcoming XRPCode update.

Hope this helps!