to arduino step-by-step guide

8
P ixetto Tutorials www.pixetto.ai Connect VIA Pi x etto to Arduino Board Step-by-Step Guide

Upload: others

Post on 02-Jul-2022

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: to Arduino Step-by-Step Guide

P i x e t t o T u t o r i a l s

www.pixetto.ai

Connect VIA Pixetto to Arduino Board

Step-by-Step Guide

Page 2: to Arduino Step-by-Step Guide

www.pixetto.ai

Connect VIA Pixetto to Arduino Board

Step-by-Step GuideToday, 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

Page 3: to Arduino Step-by-Step Guide

www.pixetto.ai

Step 1If 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 1

Page 4: to Arduino Step-by-Step Guide

www.pixetto.ai

Step 2

Step 2Open 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!

Page 5: to Arduino Step-by-Step Guide

www.pixetto.ai

Step 3

Step 3Now, 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.

Page 6: to Arduino Step-by-Step Guide

www.pixetto.ai

Step 4Open 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 4

Page 7: to Arduino Step-by-Step Guide

www.pixetto.ai

Step 5In 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.

Step 5

Page 8: to Arduino Step-by-Step Guide

www.pixetto.ai

Step 6

Step 6Now, 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.

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!