AI Camera for Arduino | Connecting HuskyLens to Arduino Tutorial

HuskyLens Arduino Tutorial

Hey guys welcome back. In the previous post, I showed you everything you need to know about HuskyLens,  what is a HuskyLens, what a HuskyLens can do on its own and how to upgrade the firmware of HuskyLens. Check out the link below to know more about Huskylens.

In this post, I am going to show you how you can connect HuskyLens with Arduino and read data from it. Now let’s get started.

HuskyLens Getting Started Video

Things Needed to Connect Arduino – Huskylens

For this project, you will need an Arduino board, here I’ll be using an Arduino Nano,  a USB data cable, a Husky lens and some connecting wires.

Arduino HuskyLens Setup Video Tutorial


Why not make a PCB for your Project?

Making a PCB for your DIY project is not hard nowadays. PCB helps to get rid of all messy wires and stuff and gives your project an awesome look. And it’s cool to make your own PCB for your project right?

I use Altium Designer to draw the circuit and design the PCB. It is a powerful tool that can be used to design and create your own PCBs for your project as well as complex and multiplayer PCBs for industrial use. Here is the link to the Altium trial version. So make sure you check it out.

I use Altium Designer to draw the circuit and design the PCB. It is a powerful tool that can be used to design and create your own PCBs for your project as well as complex and multiplayer PCBs for industrial use. Here is the link to the Altium trial version. So make sure you check it out.


Steps to get data from Arduino to HuskyLens

Step 1 – Download Arduide IDE

First thing to do is download and install the latest version of Arduino IDE from this page.

Arduino Husky Lens Library

Once it is done we can now download and set up the HuskyLens library.

Step 2 – Download Arduino library for HuskyLens

To do that, first click on this link and go to this website from where you can download the Arduino library for Huskylens.

This is the HuskyLens Arduino Master, which is the library which we will be using to connect HuskyLens with audino. Now you can go ahead and  download HuskyLens Arduino Master.

Step 3 – Installing the Library

Once the download is completed, right click and extract. Once the file is extracted you will see all these files. The folder HuskyLens contains Arduino Huskylens library files.

Huskylens library for Arduino

You can install it in multiple ways. An easy way to do is right-click and copy this folder and paste it in the Arduino library folder.

Step 4 – Connections

The connections are very simple,  all you have to do is connect 5 volt to 5 volt ground to ground TX to pin 10 and RX to pin 11.

Step 5 – Testing

Now, you can start Arduino IDE. In the IDE, 

Go to Files > Example > Huskylens and select “Get Started”.

This library will do all the hard work for you, this library makes use of a ‘software serial’ library which will add an extra serial port to your board.  

Now select the right boat and Port and click on  compile, Once it is compiled you can go ahead and click on upload. Now start the serial monitor. 

arduino huskylens serial monitor output

You can set various modes in HuskyLens, such as a line tracking object tracking face detection and save various outputs that are being displayed on the serial monitor.

Application

So now you know what do you do with it when you recognize color or an object. So let’s check that out. In the next video, I am going to show you how you interface this board with Arduino to make cool robots and other projects and do some fun stuff! Stay tuned guys!


Learn Arduino the Easy Way

Are you new to Arduino? Do you want to improve your skills in Arduino programming? You are in the right place. We have a complete beginner-level tutorial for Arduino which covers everything from scratch. In this free Arduino Tutorial for Beginners guide, we will be taking a look at Introduction to Arduino platform, getting started with Arduino IDE, different types of Arduino boards, and a lot of DIY projects using Arduino. Check it Out!

arduino tutorial for beginners
Arduino Tutorial for Beginners

Lets start learning Arduino



Awesome Arduino Projects you DONT WANNA MISS!

Here is a list of the creative Arduino Projects implementing newer sensors and boards, which can be followed easily and are really interesting to implement. Even if you are a beginner and just started learning Arduino-based projects, following these tutorials will be easy. All of the below Arduino-based projects are well-explained step by step, with detailed tutorials on how to get started from scratch.

A Kid about to Program Digispark with DigiKeyboard Commands

DigiSpark as HID Keyboard – Complete DigiKeyboard Commands Explained

Digispark HID Keyboard functionality fully explained with step by step tutorial, examples and complete DigiKeyboard…
Read More
Building a Smart Home using Arduino UNO

Building a Home Automation using Arduino and Arduino IOT Cloud | Arduino IOT Projects

Build your very own home automation system using an Arduino Board, Arduino IoT Cloud, and…
Read More
Arduino UNO R4 Minina Specifications and Pin Mapping

We Have the New Arduino UNO R4 Minima | Everything You Need to Know

Everything you need to know about Arduino UNO R4 Minima – Specifications, Release Date, Projects…
Read More

Let’s Use Arduino To Take Charge Of The Bittle| Petoi Bittle The Arduino Programmable Robot

Hey, guys welcome back. How about making a DIY Arduino robot dog? What if the…

Read More

DIY Motion Triggered Halloween Prop using Arduino/Digispark | Halloween Project 2022

DIY Motion Sensor Trigger for your Halloween Prop – Complete Step by Step Instructions to…
Read More

Control your Home Devices using Arduino and your Favorite Personal Assistant!

Introduction In the previous video, we build an Alexa-controlled Door Locking System. So many people…

Read More

Give me more Awesome Projects!


Similar Posts

One Comment

  1. Les than comment. Questions. Library as you stated doesn’t do anything for me.
    I cant see any data on my Serial Monitor just number 1. No way to change baud because Arduino can’t debug code, giving me error when I save to Library or run rune the code.
    I am new to this and can’t sleep a night.
    Thanks
    Janusz

Leave a Reply

Your email address will not be published. Required fields are marked *