Overview And Setup

Arduino IDE lets you code, compile, and upload sketches to boards like DFRduino UNO R3, which acts as a simple open-source I/O controller. It’s like a control tower coordinating sensors and cameras. Connect HUSKYLENS 2 to the UNO via I2C, power it separately over USB-C, then download and install the DFRobot HUSKYLENS V2 Arduino library into the IDE libraries folder.

1.1 Introduction to Arduino IDE

Arduino IDE is a programming software specifically designed for the Arduino open-source hardware platform. It is used to write, compile, and upload programs to Arduino main control boards (such as UNO, MEGA, Nano, ESP32, etc.). It is the core tool for the development of all Arduino projects.

Arduino IDE official website: https://www.arduino.cc/en/software/

1.2 DFRduino Uno R3 Introduction

DFRduino UNO R3 is an open-source Simple I/O platform, with a development environment similar to Java and C. It allows you to quickly create interactive projects using Arduino language and software like Flash or Processing...

Purchase link: click.

2.Hardware Connection

Required Materials

  • Hardware
    • DFRduino UNO R3 (or similar main board) x 1
    • Gravity:IO Expansion Shield for Arduino V7.1 x 1
    • USB Cable A-B for Arudino Uno/Mega x 1
    • HUSKYLENS 2 x 1
    • USB cable x 1
    • 4-pin jumper cable (or DuPont wires) x 1

Connect the HUSKYLENS 2 to Arduino board's corresponding I2C pins, and connect the Arduino Uno to your computer via a USB cable.
Power Supply Note: The voltage output from Arduino Uno's I2C pins is insufficient to power HUSKYLENS 2 properly. When connecting HUSKYLENS 2 to Arduino Uno, use an additional USB-C cable to connect its USB-C port to a power source to provide additional power. The I2C/UART wiring diagram can be referenced in the following figure.

Interface Diagram

HUSKYLENS 2 uses I2C as its default communication method. If your connection is via UART, please manually switch the protocol type under Protocol Selection in the system settings.

Interface Diagram

3.Load HUSKYLENS 2 Library

Step 1: Download the HUSKYLENS Arduino Library first.

Click here to download the library: https://github.com/DFRobot/DFRobot_HuskylensV2.

Step 2: Unzip the downloaded file to the directory of the "libraries" folder where Arduino IDE is located, and rename the file to HUSKYLENS 2.

Interface Diagram

Was this article helpful?

TOP