








Built a test jig for my home made USB to bench supply adapter
I have designed and built a test jig that will automatically test a small USB output for bench power supplies adapter called USBpwrME. The USBpwrME allows users to connect USB powered electronics to a power supply during test, evaluation troubleshooting etc.
The test jig is built around the PIC18F27K22. This is my goto chip at the moment. It has a lot of configurable peripherals, ADC with really high resolution and a huge amount of memory for being a small MCU. And wide supply voltage range!
Test sequence will cover all the functions of the USB adapter with as few operator interactions as possible. One "funny" mistake i made during the design was not noticing that the relays i use has actually polarized coil so the pos/neg has to be connected in correct way to make the relay click. I missed this so i needed to hand modify all three relays.
Second mistake i made was actually a bit harder to foresee. One test that is performed is to invert the the input polarity to the USBpwrME to see that the polarity protection works. Well the design mistake was that the GND between the jig and the adapter is connected together thru the GND shield of the USB cables. So when the polarity switches the test jig short-circuits itself and restarts.
I solved this by adding in the test sequence when to actually connect the USB cables and performing the polarity test just before.
Even my eight year old son can operate it :) :)
Quite happy although with the result