This extension enables you to use the DFRobot HuskyLens AI camera in your projects via a micro:bit running custom firmware.
- Download the latest
.hexfile: - To program your micro:bit:
- Connect via USB.
- Drag the
.hexfile into the MICROBIT drive that appears. - Wait for the LEDs to finish the flashing animation.
| HuskyLens | micro:bit Pin |
|---|---|
| SDA | Pin 20 (SDA) |
| SCL | Pin 19 (SCL) |
| VCC | 3.3 V |
| GND | GND |
Important: Both the HuskyLens and the micro:bit must share the same voltage level (3.3 V).
- Open SAM Scratch.
- In the Extensions panel, add the “HuskyLens” extension, it should automatically add the microbit more extension.
- Connect your micro:bit with the microbit more extension.
- Use the blocks to interact with the camera.
- The micro:bit acts as a bridge: It runs the custom firmware you flashed to translate Scratch blocks into I²C commands for the HuskyLens.
- Both the firmware and correct wiring are mandatory for the extension to function.
- Micro:bit not listed? Try reconnecting or restarting Scratch – your board should appear as a device.
- HuskyLens not responding?
- Recheck SDA/SCL and power connections.
- Ensure the firmware finished flashing properly.
- Make sure the HuskyLens is powered on after connecting to the micro:bit.