Introduction: Identifying Objects With Neural Networks and AI | UnitV2 M5Stack

About: I'am an Electronics student that really enjoy making new things from garbage, and DIY projects. I am here to share my knowledge with you, and learn with you too.

Hello to everyone, here I show a interesting project I made, it consist on a soldered and not soldered PCB identifier based on the UnitV2 AI camera from M5Stack, I used my JLCPCB boards to test it and works, this device is created for machine learning, object detection and tracking applications, so I invite you to test it and make an awesome project with it.

Here I leave you a tutorial with all the information so you can make your own version. If you are a visual learner I know that a video worth more than 1000 words, so here is a Tutorial video. (I am a Spanish speaker, so please consider turning on English subtitles):

Step 1: Skills Required

For this implementation you will need to know how to:

  • PCB designing (optional).
  • Coding in Python (optional).
  • Basic computer skills.

By the way I will teach you what you need to deploy your own classifier model, not just for PCB's.

Step 2: Components and Part Lists

For this project we have a lot of the hard work done by using this powerful and tiny camera, so because of that, for this project we will need:

Features of the camera:

  1. -Reading QR codes
  2. -Object recognition
  3. -Color tracking
  4. -Object tracking
  5. -Face identification
  6. -Learning with neural networks
  7. -And many more.

If you want more information you can visit the documentation.

For the implementation of a good project we need a reliable assembly for the circuit that makes it up, and there is no better way to do it than with a good PCB.

I suggest JLCPCB:

$2 for 1-4 Layer PCBs⚡, Get SMT Coupons🎫

If you want to implement this model recognizing other things, well you can easily adapt it.

Step 3: Camera Setup and Driver Installation

First you need to:

  1. Download the driver
  2. Copy the directory location of the files in the browser.
  3. Go to Device administrator
  4. Find the unrecognized device.
  5. Click on update driver and select local drivers.
  6. Paste the address of the driver directory.
  7. Click next.

Step 4: Testing the Camera Plug and Play Ready Features

Once we connect the camera to our PC and install it drivers, it should be ready for work.

Browse for: or IP:

Then you should see a web based app with the different options ready to be tested:

  • Video streaming, a 480p video live view.
  • QR code reading and recognition, deploy the content of codes.
  • Color tracking, select a color from the scene and it will follow it.
  • Target tracking, select an object of the scene and it will follow it.
  • Movement detection, it will react to every scene change.
  • Online classifier, train, teach and deploy neural network models.
  • Face recognition, train known faces and detect them later.
  • Face detection, detect faces without training them.
  • Shape detection, detect known shapes.
  • Shape matching, upload a shape and detects forms that match.
  • Audio FFT, analyze audio inputs.
  • And more.

Step 5: Soldered and Unsoldered PCB Detection Training

For this educative implementation that can be used on production lines, door entry systems detecting facemasks, or uniforms, safety wear etc.

We will make an example with PCB's.

  1. Go to Online classifier.
  2. Create 3 classes: unsoldered, soldered, place PCB.
  3. Select a clase and place a corresponding PCB and take pictures.
  4. Repeat it with the other states.
  5. Run and save.

Now you are able to place the PCB's and it will tell you if they are soldered or not.