USB Component Tester

by baweja_akshay in Circuits > Electronics

6556 Views, 69 Favorites, 0 Comments

USB Component Tester

USB Component Tester | Sponsored by PCBWay

Being an electronics engineer, I always wanted to have a portable component tester, which could test every electronic component out there. In 2016, I built myself a Component Tester based on AVR TransistorTester by Markus F. and Karl-Heinz Kübbeler. Following that, I redesigned the Component Tester to size of a keychain.

Since makers, engineers and hobbyists have a computer around our work-desk always. So I thought to myself why not build a component tester that could be used as a USB accessory which allow us to test the components. I have designed a software to go along with the USB component tester that displays the required test parameters on display in a minimal design form. The test leads are colour coded and these colours indicate the pin configuration. The software supports three major OS platforms macOS, Windows and Linux.

Supported Components

  • Resistor
  • Capacitor
    • with ESR
  • Inductor
  • Diode
  • Transistor
    • BJT
    • UJT
    • PUT
  • FET
    • JFET
    • MOSFET
  • IGBT
  • TRIAC
  • Thyristor

A HUGE THANKS TO PCBWAY FOR SPONSORING THIS BUILD

PCBWay offered to step in and helped me to support this project. They also offered their PCB fabrication and assembly services for the build. They offer 10 custom PCBs for as low as $5 with a wide array of choices such as soldermask colors, surface finishes, and much more. The turnout time for PCBs was amazingly fast. They also examine each PCB design manually before manufacturing so you do not receive any defective PCBs. I recommend trying their PCB service if you need one.

Supplies

Bill of Material on GitHub (click the link to get a detailed BOM for the project)

Tools

  • Hot Air Rework Station
  • Magnifying Glass / Electronic Microscope
  • Soldering Iron
  • Solder Paste and Solder Wire
  • Tweezers
  • USBasp

GitHub Repository

Let's Get PCBs Fabricated Before We Start

6885281595542829056.png
8962491595542846362.png

The PCB is designed to be the size of a thumb drive with male USB-A connector. The 3 Test Pads are exposed for soldering the test leds onto them. The dimensions of PCB are approximately 34mm x 17mm.

A huge thanks to PCBWay's Prototyping and Assemble Service for getting my boards fabricated and assembled. They offer great quality boards for a very low and affordable price. They also offer a variety of solder mask options to try. Currently, they are running an amazing offer for assembly service, you can get 20 boards assembled for just $30 with free shipping.

Downloads

Soldering the Components 🤨

617871595570029230.jpeg
451361595569897659.jpeg
3662441595570089990.jpeg
1463851595570059938.jpeg
334981595570121189.jpeg
1521491595570445222.jpeg

Since I used the PCBWay's assembly service the PCBs look much cleaner and premium as compared to when I solder myself 😆

But if you are not using any assembly service you can solder it on your own using solder paste and hot reflow station. I'd recommend having a microscope or magnifying glass around since components used are 0603 packages and might be hard to solder without them.

Soldering the Test Clips

2100701595819756403.jpeg

Remember the color order since we'll be using that order in a moment, in my case TP1-TP2-TP3 are Black, Red Yellow.

Supported colors by the software are Black(B), Green(G), White(W), Yellow(Y), and Red(R) (more will be added soon). Our combination results in a color code BRY.

3D Printed Case (Optional)

USB Component Tester | 3D Case | Fusion 360
2617391595820232154.jpeg
1019681595820256919.jpeg
8198751595820273473.jpeg

I exported PCB design from Eagle to Fusion 360 and designed a case around it. The case is a 2 part design with snap-fit design. The tolerances are pretty tight so it cannot be opened easily.

You can download the files from Thingiverse.

Setting Probe Colors in Firmware

If you have not used the same probe colors then follow the following instructions else skip to next step.

In file variables.h in firmware files, edit line 133

const unsigned char probe_colors_str[] EEMEM = "BRY";

Edit "BRY" to your own color combination we set in STEP 3.

Open Terminal in the same folder and run the following commands

make clean
make all

Burning the Firmware

⚠️ REQUIRED:

  • You will need USBasp to burn firmware files to the tester.
  • You must have AVRDUDE installed in your system in order for following instructions to work.

In Terminal/Command Prompt, navigate to folder's location with firmware files and execute the following commands-

// Flashing .hex and .eep files to MCU

avrdude -c usbasp -B 20  -p m328p -P usb -U flash:w:./TransistorTester.hex:a -U eeprom:w:./TransistorTester.eep:a
// Setting fuses for MCU

avrdude -c usbasp -B 200  -p m328p -P usb  -U lfuse:w:0xe2:m -U hfuse:w:0xd9:m -U efuse:w:0xfc:m

Desktop Application 💻🖥

1.png
2.png
3.png
4.png
5.png
6.png
7.png
8.png

The application auto connects to the component tester when a right port is selected by the user. The application is available for macOS 10+, Windows 8, and above and Linux.

For macOS users, touchBar support is also provided.

Download Application from GitHub

HALLELUJAH! 🥳 Enjoy Your Component Tester

thumbnail.jpg

TAA DAA!! You just made yourself a USB component tester 🤩 Plugin 🔌 the components you wanna test.

CHEERS 🥂

You can also buy a fully assembled component tester from my Tindie Shop