How to Connect Pixetto to Arduino UNO

Today, we are going to show you how to set up VIA Pixetto for Arduino UNO.

This is just one of many ways to use VIA Pixetto for color detection. Right now, we are starting with a more introductory method, but in the future feel free to use Python for more advanced methods of color detection.

Before we start, make sure you have installed the ‘PixettoJunior4ColorDetection.sb3’ file downloadable from http://cdn.viaembedded.com/Pixetto/Demo/PixettoJunior4ColorDetection.sb3

Step 1

If not already available on your personal computer, please download VIA Pixetto Studio from www.pixetto.ai beforehand. In addition, connect your VIA Pixetto to your PC using a MicroUSB 2.0 cable.

Step 2

Open the Pixetto Utility application in Pixetto Studio.

In the upper right hand corner of the Pixetto Utility window, select ‘Color Detection‘ under ‘Function.’ Once that is done, click the ‘Apply’ button to confirm.

You can test out the color detection by hovering colored objects in front of the VIA Pixetto lens. When VIA Pixetto detects color, green boxes labeled with the corresponding color of each object should appear on the screen.

So, it will display a box with the label ‘blue‘ when it sees something that is blue and it will display a box with the label ‘red‘ when it sees something that is red. That means color detection is working!

Step 3

Now, connect VIA Pixetto to your Arduino board using a Grove connector.

Then, connect the Arduino board to your PC with a MicroUSB 2.0 cable. Unfortunately, Arduino UNO is not included as part of the Pixetto Set, but it can easily be purchased from online sources.

Arduino UNO

Step 4

Open the Pixetto Junior Application. This is included in VIA Pixetto Studio.

Now, in the upper left corner ‘Hardware’ option, select your hardware as ‘Arduino UNO.’ In the upper left corner next to the ‘Hardware‘ option, select your ‘Connection’ option. In this pop-up window, select ‘Connect‘ for the device you would like to connect, then click ‘Go to Editor.’

Step 5

In the upper middle part of the window, click on the ‘Project‘ option.

Click ‘Load Project,’ and select the ‘PixettoJunior4ColorDetection.sb3‘ file to upload. Give it some time to load.

Pixetto to Arduino UNO

Step 6

Now, we have trained VIA Pixetto to make the pin on the Arduino board light up when a red object is detected and turn off when a blue object is detected. Hover red and blue objects in front of VIA Pixetto to test if your project is successful.

Pixetto to Arduino UNO
Pixetto to Arduino UNO

And that’s it! We have demonstrated AI color detection using VIA Pixetto with these simple steps. It is your turn now!

Have fun and don’t forget to share your creations at with #VIAPixetto on your Facebook, Twitter, or Instagram for the chance to be featured on our official social media!

Share this blog post!

Share on linkedin
Share on twitter
Share on facebook

Leave a Reply